Page cover

πŸ“²Selling

  • 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 attempt

  • The cash symbol used in your server

CashSymbol = '$', -- cash symbol used in your server

  • You can set an item to be required in order to start selling

  • If RequiredItemis set to true you must define the item name in RequiredItemName

  • The RequiredItemName becomes 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 here

  • Setting SellAnywhereto true will skip the zone checks when players toggle selling drugs and allows them to sell to locals anywhere instead of specific zones

  • If you want to restrict players to selling in zones only then set SellAnywhere to false and then define your zones in the Zones table - This is covered in more detail below!


  • These are string values to start and stop selling

  • You can set these to whatever you wish and then type them in chat


  • Define target settings for the peds when selling

  • When setting the maximum target distance please bare in mind the value you set for MaxDistance in Config.CoreSettings.Security to prevent false kicks


  • 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


  • Define chances for accepted sales and a police notification for rejected sales


  • Define ped models that will spawn and interact with the player when toggling selling


  • 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


  • If SellAnywhere is set to false then you must define zones that players can toggle selling inside

  • the key is the zone name

  • the 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 MUST be vec3 values

Last updated