{"id":149657,"date":"2024-08-08T11:47:07","date_gmt":"2024-08-08T09:47:07","guid":{"rendered":"https:\/\/hifivem.com\/?post_type=product&#038;p=149657"},"modified":"2025-12-24T07:29:52","modified_gmt":"2025-12-24T06:29:52","slug":"vip-verkauft-medikamente","status":"publish","type":"product","link":"https:\/\/fivemx.com\/de\/vip-sell-drug\/","title":{"rendered":"VIP-Medikamentenrezept verkaufen"},"content":{"rendered":"<p><iframe title=\"Drug Sales - FiveM Script [QBCore, QBox, ESX]\" width=\"1290\" height=\"726\" src=\"https:\/\/www.youtube.com\/embed\/_LyP7cxKvA8?feature=oembed\" loading=\"lazy\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h2>How to install<\/h2>\n<h2>Step 0 &#8211; First Steps<\/h2>\n<ol>\n<li><strong>Download Resources<\/strong>: Download your resource from FiveM&#8217;s Keymaster and <code>is_lib<\/code> from GitHub.<\/li>\n<li><strong>Unzip Files<\/strong>: Unzip the <code>is_selldrugs<\/code> and <code>is_lib<\/code> folders and place them in your server&#8217;s resource folder.<\/li>\n<li><strong>Add to Server Config<\/strong>: Add the resource to your server start config (<code>server.cfg<\/code>). It is best to place these scripts above all scripts that may use them.\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>plaintext<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Code kopieren<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-plaintext\">ensure is_lib<br \/>\nensure qb-core<br \/>\nensure is_selldrugs<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<\/ol>\n<h2>Step 1 &#8211; Configure Resource<\/h2>\n<p>Read and configure all options in the <code>is_selldrugs\/config.lua<\/code> and <code>is_lib\/config.lua<\/code> files to suit your server&#8217;s needs.<\/p>\n<h2>Step 2 &#8211; Adding Items<\/h2>\n<h3>Adding a Phone Item<\/h3>\n<p>To use the Trap Phone and receive wholesale orders, you first need to add the phone to your engine (QBCore\/ESX). The item name for the Trap Phone should match the one specified in <code>config.lua<\/code> (default <code>trap_phone<\/code>). You can <a href=\"https:\/\/fivemx.com\/shop\/\" data-wpil-monitor-id=\"1199\">download<\/a> the image for the Trap Phone from here.<\/p>\n<h4>Adding a Trap Phone to ESX Framework<\/h4>\n<ol>\n<li><strong>Access the Database<\/strong>: Log in to your server&#8217;s <a href=\"https:\/\/fivemx.com\/heidisql-vs-navicat\/\" data-wpil-monitor-id=\"1248\">database management tool<\/a> (like phpMyAdmin).<\/li>\n<li><strong>Navigate to the <code>items<\/code> Table<\/strong>: Find the <code>items<\/code> table where all game items are defined.<\/li>\n<li><strong>Insert New Item<\/strong>: Add a new entry for the <code>trap_phone<\/code>. You can do this manually using the tool&#8217;s interface or run the following SQL command:\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>sql<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Code kopieren<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">INSERT<\/span> <span class=\"hljs-keyword\">INTO<\/span> `items` (`name`, `label`, `weight`, `rare`, `can_remove`) <span class=\"hljs-keyword\">VALUES<\/span><br \/>\n(<span class=\"hljs-string\">'trap_phone'<\/span>, <span class=\"hljs-string\">'Trap Phone'<\/span>, <span class=\"hljs-number\">1<\/span>, <span class=\"hljs-number\">0<\/span>, <span class=\"hljs-number\">1<\/span>);<br \/>\n<\/code><\/div>\n<\/div>\n<ul>\n<li><code>name<\/code>: &#8216;trap_phone&#8217; (This is the identifier used in your script)<\/li>\n<li><code>label<\/code>: &#8216;Trap Phone&#8217; (The display name for the item)<\/li>\n<li><code>weight<\/code>: 1 (The weight of the item)<\/li>\n<li><code>rare<\/code>: 0 (Indicates the rarity, 0 for common)<\/li>\n<li><code>can_remove<\/code>: 1 (Whether the item can be removed from inventory)<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4>Adding a Trap Phone to QB-Core Framework<\/h4>\n<ol>\n<li><strong>Edit the QB-Core Shared File<\/strong>: Navigate to the <code>qb-core<\/code> folder and open the <code>shared\/items.lua<\/code> file.<\/li>\n<li><strong>Add New Item<\/strong>: Add a line for the new item in the items list:\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>lua<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Code kopieren<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-lua\">[<span class=\"hljs-string\">'trap_phone'<\/span>] = {[<span class=\"hljs-string\">'name'<\/span>] = <span class=\"hljs-string\">'trap_phone'<\/span>, [<span class=\"hljs-string\">'label'<\/span>] = <span class=\"hljs-string\">'Trap Phone'<\/span>, [<span class=\"hljs-string\">'weight'<\/span>] = <span class=\"hljs-number\">500<\/span>, [<span class=\"hljs-string\">'type'<\/span>] = <span class=\"hljs-string\">'item'<\/span>, [<span class=\"hljs-string\">'image'<\/span>] = <span class=\"hljs-string\">'trapPhone.png'<\/span>, [<span class=\"hljs-string\">'unique'<\/span>] = <span class=\"hljs-literal\">true<\/span>, [<span class=\"hljs-string\">'useable'<\/span>] = <span class=\"hljs-literal\">true<\/span>, [<span class=\"hljs-string\">'shouldClose'<\/span>] = <span class=\"hljs-literal\">true<\/span>, [<span class=\"hljs-string\">'combinable'<\/span>] = <span class=\"hljs-literal\">nil<\/span>, [<span class=\"hljs-string\">'description'<\/span>] = <span class=\"hljs-string\">'Maybe you will find more serious clients to talk to here.'<\/span>},<br \/>\n<\/code><\/div>\n<\/div>\n<p>This line defines the item&#8217;s properties like name, label, weight, and image file.<\/li>\n<li><strong>Add Image to QB-Inventory<\/strong>: Place the image for the item in the appropriate directory (usually in <code>qb-inventory\/html\/img<\/code>). Ensure the image file name matches the one specified in the shared file (e.g., <code>trapPhone.png<\/code>).<\/li>\n<\/ol>\n<h3>Adding a Drugs Item<\/h3>\n<p>In the <code>config.lua<\/code> file, configure the list of items that players can sell. Provide data such as the item name, wholesale price, and retail price. Obtain the item image (.png), name it the same as the drug name, and move it to <code>is_selldrugs\/html\/img\/inventory<\/code>.<\/p>\n<h2>Step 3 &#8211; SQL Database<\/h2>\n<p>Integrate the script with your database by adding the following SQL commands or import the provided SQL file:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>sql<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Code kopieren<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> `selldrugs_players` (<br \/>\n`player` <span class=\"hljs-type\">varchar<\/span>(<span class=\"hljs-number\">255<\/span>) <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-keyword\">NULL<\/span>,<br \/>\n`respect` <span class=\"hljs-type\">int<\/span>(<span class=\"hljs-number\">11<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">NULL<\/span> <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-number\">0<\/span>,<br \/>\n`sale_skill` <span class=\"hljs-type\">int<\/span>(<span class=\"hljs-number\">11<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">NULL<\/span> <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-number\">0<\/span>,<br \/>\n`mole` <span class=\"hljs-type\">varchar<\/span>(<span class=\"hljs-number\">1000<\/span>) <span class=\"hljs-keyword\">DEFAULT<\/span> <span class=\"hljs-keyword\">NULL<\/span><br \/>\n) ENGINE<span class=\"hljs-operator\">=<\/span>InnoDB <span class=\"hljs-keyword\">DEFAULT<\/span> CHARSET<span class=\"hljs-operator\">=<\/span>utf8mb3 <span class=\"hljs-keyword\">COLLATE<\/span><span class=\"hljs-operator\">=<\/span>utf8mb3_general_ci;<\/code><\/code><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> `selldrugs_phone` (<br \/>\n`player` <span class=\"hljs-type\">varchar<\/span>(<span class=\"hljs-number\">255<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">NULL<\/span>,<br \/>\n`settings` <span class=\"hljs-type\">varchar<\/span>(<span class=\"hljs-number\">255<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">NULL<\/span><br \/>\n) ENGINE<span class=\"hljs-operator\">=<\/span>InnoDB <span class=\"hljs-keyword\">DEFAULT<\/span> CHARSET<span class=\"hljs-operator\">=<\/span>utf8mb3 <span class=\"hljs-keyword\">COLLATE<\/span><span class=\"hljs-operator\">=<\/span>utf8mb3_general_ci;<\/p>\n<\/div>\n<\/div>\n<h2>Step 4 &#8211; Install Dependencies<\/h2>\n<p>To use the script, the following resources are required:<\/p>\n<ul>\n<li><code>is_lib<\/code> and resources compatible with this library, such as framework, inventory, target<\/li>\n<li><code>oxmysql<\/code><\/li>\n<\/ul>\n<h2>Using a Trigger Instead of a Command<\/h2>\n<p>In <code>config.lua<\/code>, set the value in the <code>cfg.commands.status<\/code> table to <code>nil<\/code> to disable the command. Once done, use a Trigger to activate\/deactivate retail sales.<\/p>\n<h3>Client-Side Trigger<\/h3>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>lua<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Code kopieren<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-lua\">TriggerServerEvent(<span class=\"hljs-string\">\"is_selldrugs:changeRetailStatus\"<\/span>)<br \/>\n<\/code><\/div>\n<\/div>\n<h3>Server-Side Trigger<\/h3>\n<p>To add to the Radial Menu, some scripts (like <code>qb-radialmenu<\/code>) require sending information about a table in the argument instead of the arguments or player ID we send. This can be solved by adding the following code to <code>config.lua<\/code>:<\/p>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<div class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">\n<p>lua<\/p>\n<div class=\"flex items-center\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center\">Code kopieren<\/button><\/span><\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-lua\">RegisterNetEvent(<span class=\"hljs-string\">\"is_selldrugs:radialMenu\"<\/span>, <span class=\"hljs-function\"><span class=\"hljs-keyword\">function<\/span><span class=\"hljs-params\">()<\/span><\/span><br \/>\nTriggerServerEvent(<span class=\"hljs-string\">\"is_selldrugs:changeRetailStatus\"<\/span>)<br \/>\n<span class=\"hljs-keyword\">end<\/span>)<br \/>\n<\/code><\/div>\n<\/div>\n<p>Follow these steps to properly install and configure the <code>is_selldrugs<\/code> resource for your FiveM server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Inside-Scripts-Skript zum Verkauf von Medikamenten (jedes Framework)<\/p>\n<p>ESX\/QBCore wird unterst\u00fctzt.<\/p>\n<p><strong>Keine Escrow-Verschl\u00fcsselung!<\/strong><\/p>","protected":false},"featured_media":149658,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[243,2332,96,1892,512,2907,511],"product_tag":[2690],"class_list":["post-149657","product","type-product","status-publish","has-post-thumbnail","product_cat-vrp-scripts","product_cat-crime-gang","product_cat-esx-scripts","product_cat-fivem-job-scripts","product_cat-qbcore-scripts","product_cat-qbox-scripts","product_cat-standalone-scripts","product_tag-drug","first","instock","sale","downloadable","virtual","sold-individually","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/product\/149657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/comments?post=149657"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/media\/149658"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/media?parent=149657"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/product_brand?post=149657"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/product_cat?post=149657"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/product_tag?post=149657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}