{"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":"2026-08-06T12:39:03","modified_gmt":"2026-08-06T10:39:03","slug":"vip-vende-drogas","status":"publish","type":"product","link":"https:\/\/fivemx.com\/es\/vip-vende-drogas\/","title":{"rendered":"Venta VIP de recetas de medicamentos"},"content":{"rendered":"<div class=\"video-container\"><iframe title=\"Drug Sales - FiveM Script [QBCore, QBox, ESX]\" width=\"1170\" height=\"658\" src=\"https:\/\/www.youtube.com\/embed\/_LyP7cxKvA8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\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 data-no-translation=\"\">is_lib<\/code> from GitHub.<\/li>\n<li><strong>Unzip Files<\/strong>: Unzip the <code data-no-translation=\"\">is_selldrugs<\/code> and <code data-no-translation=\"\">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 data-no-translation=\"\">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 data-no-translation=\"\" 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 data-no-translation=\"\">is_selldrugs\/config.lua<\/code> and <code data-no-translation=\"\">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 data-no-translation=\"\">config.lua<\/code> (default <code data-no-translation=\"\">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 data-no-translation=\"\">items<\/code> Table<\/strong>: Find the <code data-no-translation=\"\">items<\/code> table where all game items are defined.<\/li>\n<li><strong>Insert New Item<\/strong>: Add a new entry for the <code data-no-translation=\"\">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 data-no-translation=\"\" 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 data-no-translation=\"\">name<\/code>: &#8216;trap_phone&#8217; (This is the identifier used in your script)<\/li>\n<li><code data-no-translation=\"\">label<\/code>: &#8216;Trap Phone&#8217; (The display name for the item)<\/li>\n<li><code data-no-translation=\"\">weight<\/code>: 1 (The weight of the item)<\/li>\n<li><code data-no-translation=\"\">rare<\/code>: 0 (Indicates the rarity, 0 for common)<\/li>\n<li><code data-no-translation=\"\">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 data-no-translation=\"\">qb-core<\/code> folder and open the <code data-no-translation=\"\">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 data-no-translation=\"\" 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 data-no-translation=\"\">qb-inventory\/html\/img<\/code>). Ensure the image file name matches the one specified in the shared file (e.g., <code data-no-translation=\"\">trapPhone.png<\/code>).<\/li>\n<\/ol>\n<h3>Adding a Drugs Item<\/h3>\n<p>In the <code data-no-translation=\"\">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 data-no-translation=\"\">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 data-no-translation=\"\" class=\"!whitespace-pre hljs language-sql\"><code data-no-translation=\"\" 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 data-no-translation=\"\">is_lib<\/code> and resources compatible with this library, such as framework, inventory, target<\/li>\n<li><code data-no-translation=\"\">oxmysql<\/code><\/li>\n<\/ul>\n<h2>Using a Trigger Instead of a Command<\/h2>\n<p>In <code data-no-translation=\"\">config.lua<\/code>, set the value in the <code data-no-translation=\"\">cfg.commands.status<\/code> table to <code data-no-translation=\"\">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 data-no-translation=\"\" 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 data-no-translation=\"\">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 data-no-translation=\"\">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 data-no-translation=\"\" 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 data-no-translation=\"\">is_selldrugs<\/code> resource for your FiveM server.<\/p>\n<div class=\"video-container\"><iframe title=\"Drug Sales - FiveM Script [QBCore, QBox, ESX]\" width=\"1170\" height=\"658\" src=\"https:\/\/www.youtube.com\/embed\/_LyP7cxKvA8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>El gui\u00f3n de venta de drogas VIP es un gui\u00f3n de crimen FiveM donde los jugadores venden drogas y usan un art\u00edculo de tel\u00e9fono trampa para recibir pedidos al por mayor.<\/p>","protected":false},"featured_media":149658,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[2332,96,3204,1892,512,511,3086],"product_tag":[],"class_list":["post-149657","product","type-product","status-publish","has-post-thumbnail","product_cat-crime-gang","product_cat-esx-scripts","product_cat-drug-scripts","product_cat-fivem-job-scripts","product_cat-qbcore-scripts","product_cat-standalone-scripts","product_cat-vrp-scripts","first","instock","sale","downloadable","virtual","sold-individually","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/es\/wp-json\/wp\/v2\/product\/149657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/es\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/es\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/es\/wp-json\/wp\/v2\/comments?post=149657"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/es\/wp-json\/wp\/v2\/media\/149658"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/es\/wp-json\/wp\/v2\/media?parent=149657"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/es\/wp-json\/wp\/v2\/product_brand?post=149657"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/es\/wp-json\/wp\/v2\/product_cat?post=149657"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/es\/wp-json\/wp\/v2\/product_tag?post=149657"}],"curies":[{"name":"gracias","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}