G-DrugSelling is a script for FiveM QBCore for selling drugs (or any items) from the player's inventory via vehicle and/or walk up, or target, at configurable coordinates.
- Drop the g-drugselling folder into your [standalone] folder (or whichever other ensured folder you want to use)
- Create locations anywhere for selling items and choose sellable items and rewards for each location
- Enable/disable locations, blips, markers, NPCs, and notifications
- Configure means of selling by location
- Examples include walk up, drive up, both, or target
- Configure sellable quantities and reward amounts per item
- Configure police required to sell and chance of police alert per location
Code excerpts for NPC spawning and the concept of NPC render distance were repurposed and refactored from pickle_farming. Code excerpts for caching current police count were repurposed from qb-jewelery.