FiveM treasure system that allows treasure spawning in any place in map and adding items to it.
- Ability to spawn boxes anywhere in map and items to them to be looted;
- Ability to spawn vehicles anywhere in map and add key item as a requirement;
- When car is found and required key is in inventory car will be given to player's garage
esx_vehicleshop
(only to use for cars, normal boxes will work without this)
- Just download or use
git clone [email protected]:daZepelin/dzp_treasure.git
. And add it to yourresources
folder - To your
server.cfg
file add the following lines, which will allow you to create treasure boxes and add loot to them:
start dzp_treasures
add_ace group.admin dzp allow
or
start dzp_treasures
add_ace identifier.steam.<steam-64-id> dzp allow
- Add
sql.sql
file query to your database.
After you added your permissions you can create boxes or cars. To do so use the following chat commands:
/addbox <<item1-name> <item1-amount> <item2-name> <item2-amount> ... <itemN-name> <itemN-amount>>
e.g.
/addbox beer 5 black_money 2000
You can add as many items as you want.
To add car use the same command, but as an item name use car
(to specify car model) and key
(to specify key needed to get the car)
/addbox car <car-model> key <key-item-name>
e.g.
/addbox car elegy key carkey