This is a FiveM script that allows players to rob NPCs at gunpoint by aiming a gun at them. The script supports multiple frameworks such as qbcore, ESX, standalone, and vRP.
To use this script, follow the installation steps below:
- download the Future-RobNPC folder.
- Place the folder in your FiveM resource directory.
- add
ensure Future-RobNPC
to yourserver.cfg
To rob an NPC, follow these steps:
- Aim your gun at an NPC and keep it pointed at them.
- After a few seconds, the NPC will raise their hands in surrender.
- A notification will appear indicating the amount of money you have robbed from the NPC.
- There is a configurable cooldown period between robberies.
The script provides a configuration file (Config.lua) where you can adjust various settings:
Config.framework: Set the framework you are using (qbcore, esx, standalone, or vrp).
Config.minamount: Set the minimum amount of money you can get from robbing an NPC (set to zero for a chance to get nothing).
Config.maxamount: Set the maximum amount of money you can get from robbing an NPC.
Config.cooldown: Set the cooldown period between robberies in milliseconds.
Config.nomoneymsg: Set the notification message to display when the NPC has no money (only applicable if Config.minamount is set to zero).
Author: Awesome Gaming
License: This script is released under the MIT License.