vdk_truck
Resources for FiveM allowing the user to access to a car inventory and for developpers to add and remove items from this inventory.
Requirements
- es_freeroam
- vdk_inventory last version : https://forum.cfx.re/t/release-inventory-system-v2-personal-menu/
- ply_garage (to add personal vehicles) : https://forum.cfx.re/t/release-en-fr-async-garages-v4-2-06-06-17-updated/
- MySQL-Async : https://forum.cfx.re/t/beta-mysql-async-library-v0-2-2/
Installation
- Download the resource here : GitHub - vodkhard/vdk_truck: FiveM resource to create a car inventory
- Place the folder
vdk_truck
to resources folder of FiveM - Execute dump.sql file in your database (will create the tables and the constraints)
Usage
- For users : Press your INPUT CELLPHONE CAMERA FOCUS LOCK (usually âLâ) to show the menu in front a vehicle
- For developers : Use âcar:receiveItemâ and âcar:looseItemâ server events
- You can change the max capacity in server.lua with the maxCapacity variable
- You can watch the PutInCoffre function of
vdk_inventory
to see an example
Next steps
- Add this system for job vehicles because actually it only work with personal vehicles
- Add a maximum capacity for every category of vehicle