VIP Sell Drug Script - professional ESX script with custom features and optimized performance for FiveM servers Compatible with ESX framework.
14 Tage Rückgaberecht
Kostenlose Updates für immer
Code einsehen & anpassen
Klicke, um das Video von YouTube zu laden. Mit dem Ansehen stimmst du deren Datenschutzrichtlinie zu.
is_lib from GitHub.is_selldrugs and is_lib folders and place them in your server's resource folder.server.cfg). It is best to place these scripts above all scripts that may use them.
ensure is_lib
ensure qb-core
ensure is_selldrugs
is_selldrugs/config.lua and is_lib/config.lua files to suit your server's needs.
config.lua (default trap_phone). You can download the image for the Trap Phone from here.
items Table: Find the items table where all game items are defined.trap_phone. You can do this manually using the tool's interface or run the following SQL command:
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('trap_phone', 'Trap Phone', 1, 0, 1);
name: 'trap_phone' (This is the identifier used in your script)label: 'Trap Phone' (The display name for the item)weight: 1 (The weight of the item)rare: 0 (Indicates the rarity, 0 for common)can_remove: 1 (Whether the item can be removed from inventory)qb-core folder and open the shared/items.lua file.['trap_phone'] = {['name'] = 'trap_phone', ['label'] = 'Trap Phone', ['weight'] = 500, ['type'] = 'item', ['image'] = 'trapPhone.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Maybe you will find more serious clients to talk to here.'},
qb-inventory/html/img). Ensure the image file name matches the one specified in the shared file (e.g., trapPhone.png).config.lua 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 is_selldrugs/html/img/inventory.
CREATE TABLE `selldrugs_players` (
`player` varchar(255) DEFAULT NULL,
`respect` int(11) NOT NULL DEFAULT 0,
`sale_skill` int(11) NOT NULL DEFAULT 0,
`mole` varchar(1000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;CREATE TABLE `selldrugs_phone` (
`player` varchar(255) NOT NULL,
`settings` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
is_lib and resources compatible with this library, such as framework, inventory, targetoxmysqlconfig.lua, set the value in the cfg.commands.status table to nil to disable the command. Once done, use a Trigger to activate/deactivate retail sales.
TriggerServerEvent(is_selldrugs:changeRetailStatus)
qb-radialmenu) 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 config.lua:
RegisterNetEvent(is_selldrugs:radialMenu, function()
TriggerServerEvent(is_selldrugs:changeRetailStatus)
end)
is_selldrugs resource for your FiveM server.0 Fragen
Noch keine Fragen
Stellen Sie die erste Frage zu diesem Produkt!