Settings guide
Getting lost in the settings? That's the place for you.
We decided to let the owners of the script the maximum amount of settings to be able to change almost everything in the script and something that can make you get lost, here we will define each setting and give you the full information that you need to know about it.
["drugsZones"] = false
In the future, we are planning on creating a DLC Script that will handle an alert to the gang members that are online if players that aren't from the gang are selling in the zone, for now, leave it false until you get access to the script.
["debugZones"] = false
As we learn in how to add a new corner guide, this will show you a real debug of the zones inside the game, when the server is open that needs to be false, when you configure the script make it true.
Attention that when this setting is TRUE it makes the script take more ms from the client, make sure that this setting is false.
["inventory"] = "qb-inventory"
The script currently supports qb-inventory / ox_inventory / ps-inventory / qs-inventory only so select your inventory script.
["currencySymbol"] = "$"
If you don't use dollars in your server you can set a custom symbol to fit your server.
["cooldown"] = 30
Cooldown between each order, when the player complete a order the cooldown starts and he can't open another order until the cooldown ends.
["madchance"] = 15
The NPC can get mad sometimes and break down the deal, what is the chance of it happening? 0 is the lowest 100 is the highest, if it is set to 100 it will make it every time.
["policechance"] = 7
What is the chance that the NPC calls the police, you can use our dispatch or set it by yourself in the client/open_client.lua
["maxstalls"] = 2
This one is our coolest feature in the script, how many stalls the player will have on each deal, when the player makes a stall he can check other NPCs to maybe find more attractive deal for his stuff, when a player hits 0 stalls he needs to decide Reject of Make a deal.
["openDealKey"] = 38
What is the key to open the order, by default it set to E
["previewItem"] = true
If the player hovers on the deal it will open a small popup on the right of it and show the image of the item that the NPC wants
["inventoryPath"] = "nui://qb-inventory/html/images/"
If the previewItem setting is true make sure that the path is right because it will load the image of the item from there.
Attention that the item needs to be as the item name in the config of the corner.
["spawnNPCS"] = false
THIS FEATURE IS ON BETA TESTING!
This setting make the script spawn NPCs near the player make then walk through the player to offer him a deal.
We added this to the script so servers with low NPC amount will be able to make it true, pay attention that it may be a bit buggy and we would like to get videos of bugs that happening with the feature.
["cancelProgress"] = false
Can the player cancel the deal when the progress bar is running?
["payoutMethod"] = "cash"
How the player will get the money? cash/bank
["itemName"] = false
Want to make the player get an item instead of money? alright, set the item name here, when this setting isn't false it ignores the money reward and it make the reward as item.
["successAnimDict"] = "misscarsteal4@actor",
["successAnimClip"] = "actor_berating_loop",
Those are the animations of the player when the progress bar running, you can change it
And if you want to change the synchronized animation with the NPC you can do it inside client/open_client.lua
["playerInteract"] = "DrawTextUI"
How the player will be able to open the order?
we have 2 choices:
Help - will make a notification in the top left side
DrawTextUI - Will use the draw text of the ox_lib that require to run this script.
["sellInVeh"] = false
If the player is in the vehicle will he be able to open an order? true or false
We suggest making it false, for the roleplay and to avoid bugs with the animations.
["scriptAlert"] = true
Use the base script dispatch or use a custom export, you can set the custom export in the client/open_client.lua
["jobAlert"] = {"police", "ambulance"}
When the script alert is true here you can set the jobs that will get a notification.
["sellingProgressbarLength"] = 7500
Set the length of the progress bar when the player make a deal, each 1000 equals 1 second.
["onlyHaveDrugs"] = true
If you want the player to get deals only for drugs that he has on him make it true, if the player doesn't have any drugs it will return a notification to him, if you want it to give deals for all of the drugs that sell in the corner make it false.
If you find yourself here and you didn't get an answer open a ticket we will help you!
Last updated