Drug selling with fluctuating zone based prices

Tebex package here

Support available on discord!

Drug selling with fluctuating prices

A 2.0 version of my previous script: Old version

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.

Features

  • Supports QBox, QB, ESX, or custom frameworks
  • Custom UI: Bartering menu made in React that shows price fluctuation
  • 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
  • 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

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.

Tebex package here

Support available on discord!

More technical information

Price fluctuates for each drug, specific to each zone. So price of coke in Sandy will likely be different than in Hollywood. When players sell large amounts of drugs they can tip the momentum of the price and cause it to drop.

View configuration files here:
Config
Advanced config
Reputation config

The reputation system allows reputation to rise and fall according to player actions. Killing customers or getting arrested will result in lost reputation while selling high quality product consistently will build reputation.

Reputation levels have various bonuses

Code is accessible Yes (Some escrowed, but source version available)
Subscription-based No
Lines (approximately) 3500
Requirements ox_lib
Support Yes

Hi, your discord link isn’t available now. Please update it.

Thanks for letting me know! The link is updated. Here is it for your reference as well Jacks Scripts

DRUG SELLING Update Version 2.1.3

Fix list!

2.1.3

  • Added missing ESX functions in client bridge

Previous updates…

2.1.2

  • Police requirement had incorrect logic resulting in some cases where cannot sell drugs even though enough cops are online
  • Heroin now baseline more profitable than cocaine
  • ss_skills integration now rounds the xp number so no decimals (caused issues for ss_skills)
  • Finding current market zone logic was not correct
  • Removed some debug prints
  • Make ped turn to face player before sale
  • Correctly setup the NoPoliceDecreasesPrices option

2.0.2

  • Fix some issues involving creating the drug/cash props
  • Fix issue with reputation multiplier getting to very high extremes (capped at x15)
  • Fix visual error for json files
  • Fix issue where dirty money taken by robbery was returned as cash

Changed files

client/bridge_client.lua
README.md
client/escrowed/drugsalethread_client.lua
shared/advanced/advanced_config.lua
shared/config.lua
shared/reputation_config.lua

Please go to your keymaster to update!