Oxy Runs / Drug Runs [ESX,QB]
Oxy Runs / Drug Runs [ESX,QB]
Script Summary
This script is used in a game to create and manage drug buyers (NPCs – non-player characters). Here’s a summary of how it works:
- Creating Drug Buyers:
- The script randomly selects a location to create an NPC who will buy drugs from the player.
- This NPC appears at a specific spot on the game map.
- NPC Appearance and Behavior:
- The NPC’s appearance is randomly chosen from a list of models.
- The NPC is set to not move, be invincible, and ignore events that would typically affect other characters in the game.
- Location Indication:
- An icon (blip) is added to the game map to show the player where the buyer is located.
- Selling Drugs:
- When the player finds the NPC, they can interact with the NPC to sell drugs.
- There is a 70% chance that the sale will be successful. If the sale fails, the player receives a notification and the police are alerted.
- Sale Animation:
- When the sale occurs, there is an animation where the player hands over a package of drugs to the NPC.
- After the animation, the NPC starts moving around randomly on the map.
- Cleaning Up the NPC:
- After the sale is completed (or fails), the NPC is removed from the game, and a new buyer will be created after some time.
- Events and Timers:
- The script handles various events, such as starting to sell drugs, checking if the player has drugs, and creating new buyers after a sale.
- There are timers to ensure that a new buyer is not created immediately after the previous sale.
Vide Preview
Also, Check more esx scripts and qbcore scripts
Reviews
There are no reviews yet.