[FREE] YODA OXY RUNS / DRUG RUNS - ox_inventory and ox_target

Preview
Github
Support/Discord

Summary

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:

  1. 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.
  1. 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.
  1. Location Indication:
  • An icon (blip) is added to the game map to show the player where the buyer is located.
  1. 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.
  1. 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.
  1. 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.
  1. 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.

In Summary

This script automates the creation and management of drug buyers in a game, allowing the player to find NPCs in random locations to sell drugs. It handles the success and failure of transactions, ensures a continuous experience for the player with new buyers appearing over time, and manages the NPCs’ behavior and cleanup after interactions.

7 Likes

nice work :100:

1 Like

Thanks for the support! News about the garbage job will come out soon and then the yoda choshop script will also come out :ok_hand:t4:

2 Likes

This script showcases an impressive blend of randomness and structured events to create a dynamic and engaging gameplay experience. The detailed approach to NPC behavior, sale interactions, and event management ensures a seamless and immersive environment for players. The careful attention to NPC cleanup and the strategic use of timers further enhance the game’s fluidity, making it clear that a lot of thought and creativity went into this design. Excellent work on developing such a comprehensive and enjoyable system for managing drug buyers in the game!

1 Like

Thx for the support :smiling_face_with_three_hearts:

god work

1 Like

thx for the support :yum: