This script adds an illegal boxing job to the game, where players can interact with a manager NPC to start, finish, or cancel the job. The job involves fighting a randomly spawned NPC in random locations. Players are restricted from using weapons during the fight, and the system removes weapons automatically when the player is near the NPC. Once the fight is completed, the player receives a reward if they win. The script includes a custom NPC model, random fight locations, fight progress monitoring, and a notification system to guide the player throughout the job.
- Dynamic NPC Creation: Based on the configured locations, an NPC is spawned for the fight with a chance of a weapon being given to the NPC.
- NPC Weapon Handling: If specified in the configuration, the fight NPC can be armed, adding more difficulty to the fight.
- Fight Area Restriction: The NPC spawns in a specific location, and the player has to be within a certain distance to start the fight.
- NPC Combat: Once the fight starts, the NPC will attack the player, and combat will continue until either the NPC or the player is defeated.
- Victory/Defeat: If the player wins, they receive a reward. If they lose, the job ends and the player is notified.
- Disabling Fire Action: Even if the player has a weapon drawn, our script disables their ability to fire a weapon while near the NPC, ensuring the fight remains melee-based.
- Weapon Allowance After Fight: Once the player moves away from the NPC, they are allowed to re-equip and use their weapon again.
- Fight Locations with Random Chance: The fight locations are chosen based on weighted randomization, where each location has a chance to be selected. This makes the job more dynamic and less predictable.
- Reward System: After successfully completing the boxing fight, the player earns a reward based on the fight location’s configuration.
PREVIEW
BUY HERE
Code is accessible | Only Config (escrow) |
Subscription-based | No |
Lines (approximately) | 340+ |
Requirements | ESX OR QB & ox_lib |
Support | Yes |