Documentation
All information you need foredit and use the script
Setup your framework
Setup your inventory system
Config
Money type
After each sell you get $$, chose your
It's 'money' by default
Use ox_target
This script can works with ox_target
If you don't use ox_target, you can configure IN-GAME, the keybind. By default T
Cops required and Count
Ped reject and Ped Call Cops
You can configure the percentage of chance that the ped will refuse your drugs and the percentage that he will call the police after the refusal
BlacklistedJobs and CallCopsJobs
BlacklistestJobs are not allowed to sell drugs
CallCopsJobs will receive alerte after peds call him
Max drugs to sell
Tha maxium amount of drugs you can sell at once
Drugs amount for price variation and PriceVariation
drugsSellQttyForVariation represents the amount of drugs that all players must sell for a price variation to occur drugsPriceVariation represents the variation in % which will be applied to the current price
Drugs
Here you can add your own drugs
The array must be the name item name in your database (Not the label)
price : The default price of the item
min : The minimum price of the item (cannot go under after variation)
max : The maximum price of the item (cannot go upper after variation)
variation : The list of other drugs which impacted by the variation (see exemple above)
Client : Notify.lua
Notify
You can change the lib.notify by your own notification system
Call cops event
You can implemente your system for cops notification after peds calling them
Client : inventory.lua
Si vous n'utilisez pas les inventaires ESX ou QB par default, vous pouvez configurer le votre ici
You must respect the format indicated in the file
Server : functions.lua
removeItemAndGiveMoney
Here is the function call for remove the item from player inventory and give him money after selling drugs You can change for your own system with the param
call Cops Event
This event is trigger when a ped call the cops
Last updated