This is where you will find all the documentation covering the configuration for our script, if you need anything that is not a configurable option do not hesitate to reach out to use via discord!
For easier to read reasons both the ranks & drug configuration have there own category.
Make sure to configure the server.lua config too, scroll down to view the configuration guide for that.
Here is where you can decide what framework you want to use. Note: If you choose “custom framework” you need to setup the framework and it’s functions in via “frameworks/custom.lua”.
Copy
0 = ESX1 = QBCore2 = Custom Framework
Config.lua
Copy
config.framework = 0 -- (type: integer)
Here is where you can add/remove the commands that will start the selling process.
Here is where you can configure the notification texts of when a ped declines a sale. (it will automatically select one from this list)
Config.lua
Copy
Config.DenyStrings = { 'This stuff is shitty!', 'I want the real shit, what is this?!', 'This shit wack.',}
Here is where you can change all the text/notifications (support for other languages)
Config.lua
Copy
Config.Strings = { ['NoDrugs'] = 'You have no drugs to sell!', ['MenuTitle'] = 'Select Drug Option', ['NoClientFound'] = 'No clients were found, try moving around.', ['ClientFound'] = 'Client found, they\'re approaching now.', ['ClientScared'] = 'The client got scared and ran away.', ['NoInVeh'] = 'You can\'t sell drugs while in a vehicle.', ['SoldDrug'] = 'You sold {DRUG_NAME} for ${DRUG_PRICE}.', ['RankUp'] = 'Congrats! You have sold a total of {TOTAL_DRUGSALE} drugs and ranked up to {RANK_LABEL}!', ['SellIncrease'] = 'You got a {DRUG_MULTI}% sell increase due to your rank!', ['SellIncreaseDiscord'] = 'You got a {DRUG_MULTI}% sell increase due to being a donator!', ['AlertPolice'] = 'A suspect spotted selling drugs!', ['BlacklistedJob'] = 'You are not allowed to sell drugs with this job!', ['CantSellHere'] = 'You cannot sell drugs here!', ['CurrentlyDrugRank'] = 'You are currently rank {DRUG_RANK}, and have sold a total of x{DRUG_TOTALSOLD} drugs!', ['NotNight'] = 'You can only sell drugs during night time!',}
Here is where you can add/replace/remove the ped models that are spawned to come and collect the drugs.
The ped model must start with the back tick (`) otherwise it will not work properly.
This is where you can enable/disable the option to use discord benifits, you can make where people with a specific discord role gets a increased sell price. (Requires trase_discord)
server.lua
Copy
Config.Discord = { Enabled = false, -- Requires: https://github.com/ImTrase/trase_discord ResourceName = 'trase_discord', -- In case you renamed the resource. Roles = { [1] = { RoleID = 1094982744133619782, SellPrice = 25 -- Sell 25% more (adds on to the rank) } }}