
π²Selling
Cooldown
A cooldown in seconds is set to prevent players from exploits and abuse with sales
This adds a short delay before players are able to sell again once a transaction has been completed
Don't set this value too high, 5 seems reasonable
Cooldown = 5, -- seconds between each sell attemptCash Symbol
The cash symbol used in your server
CashSymbol = '$', -- cash symbol used in your serverRequired Item
You can set an item to be required in order to start selling
If
RequiredItemis set to true you must define the item name inRequiredItemNameThe
RequiredItemNamebecomes a useable item giving players the option to use the item instead of the chat command
RequiredItem = true, -- set to true to require an item to start selling
RequiredItemName = 'burnerphone', -- if RequiresItem is set to true define the item name required to start selling hereSell Anywhere
Setting
SellAnywhereto true will skip the zone checks when players toggle selling drugs and allows them to sell to locals anywhere instead of specific zonesIf you want to restrict players to selling in zones only then set
SellAnywhereto false and then define your zones in the Zones table - This is covered in more detail below!
Commands
These are string values to start and stop selling
You can set these to whatever you wish and then type them in chat
Target Settings
Define target settings for the peds when selling
When setting the maximum target distance please bare in mind the value you set for
MaxDistanceinConfig.CoreSettings.Securityto prevent false kicks
Payment Types
You can choose between a clean cash payment or an item (like dirty cash for example)
If you are using 'item' then make sure you define the item name correctly and ensure it is in your items.lua file
ox_inventory users wanting clean cash leave the payment type as 'cash' - this is due to ox_inventory handling money as an item instead
Chances
Define chances for accepted sales and a police notification for rejected sales
Ped Models
Define ped models that will spawn and interact with the player when toggling selling
Items
Define items available for sale
Set minimum and maximum quantities that a ped can request to buy at once
Set minimum and maximum prices that a ped will pay for that item
Zones
If
SellAnywhereis set to false then you must define zones that players can toggle selling insidethe
keyis the zone namethe info table is for debugging purposes - setting the zone thickness and debug values
The points table is for coordinates of where your zone will be - these
MUSTbevec3values
Last updated