OLD POST NOW UPDATED
$31.99 Open source | $15.99 Escrow | $3.99 2 Week Trial
Tebex package
Drug selling with fluctuating prices
A 2.0 version of my previous script
Players take a gamble as they barter the prices for their drug sale while prices fluctuate across the city as certain drugs flood the street and demand drops. A dynamic price system and interesting reputation bonuses keeps players engaged.
Theres a bartering system with a custom UI (Source folder included, React+Vite)
Features
- Supports QBox, QB, ESX, or custom frameworks
- Custom UI: Bartering menu made in React that shows price fluctuation. Source is included in all versions
- Price fluctuation: Each drug price fluctuates over time with different prices in each zone. Prices still fluctuate without player interaction so city feels alive and players can wait for perfect time!
- Reputation system: Reputation can rise and fall and yields customizable benefits
- Configuration: Multiple configuration files totaling 700 lines that are easy to read and understand
- Animation and props: Props for each drug and various animations for each situation, all synced
- Zones: Zones across the map that have different selling conditions, police chances and prices
- Robbery: Different robbery chances per reputation and per zone. Can kill robbery and take drugs back
- Integrations: Auto detects integrations! Supports all major dispatch systems and all major notify resources. Skill system integration for charisma bonus.
- Police requirement: Require police or allow selling without police at reduced price. Option to increase selling price when more police above requirement are online
- Drug purity: Support for drug purity metadata to allow for bonuses in price or reputation when selling high quality product
- Logging: Logging functions setup with ox logger
Dependencies
- ox_lib
- The resource will auto detect your dispatch resource (All major supported, easily add custom)
- The resource will auto detect your notify resource (All major supported, easily add custom)
- The resource will auto detect your target resource (All major supported, easily add custom)
- The resource will auto detect your skills resource (ss_skills and src_skills, easily add yours)
Framework
- Works with QBox by default. Easily change to ESX, QB or custom by toggling the configuration option.
Details
Previously the script fluctuated the prices only according to player sales but this resulted in an quiet feeling market. Now the prices always fluctuate while still being able to drop when players sell a large number of drugs.
Download the excel sheet to chart historical data like above here Payout.xlsx (24.0 KB)
A reputation system is built in that allows you to gain or lose reputation. Different customizable abilities unlock as you reach higher levels.
Drug purity integration
If you have a drug system that implements purity as a metadata I’ve created functionality to allow this to affect the price and reputation you gain
This is how purity is read from the item using that config
This resource is protected by FiveM’s Escrow system.
Code is accessible | Partial + OS version available |
Subscription-based | No |
Lines (approximately) | 3600 |
Requirements | ox_lib, ox_inventory |
Support | Yes |