Garage System for storing player vehicles
[SHOWCASE VIDEO]
✅ FiveM Asset Escrow Protected - View Editable Files [HERE]
[DISCORD]
Dependencies:
- One Sync Infinity enabled on your server
- [ox_lib]
- [oxmysql]
- [mk_utils] (Provided with script)
- Supported Frameworks
- QBCORE
- ESX
- Custom (setup in bridge files of [mk_utils])
Script Features:
- 4 seperate garage types for storing vehicles
- Public
- Accessed by any player
- Store owned vehicles
- Track vehicles already taken out
- Can access all vehicles in any public garage if setup in config
- Private
- Requires authorization
- Authorization types
- Property
- Housing function checks to determine access
- Job
- Specific job and grade check
- Gang (qb-core)
- Specific gang and grade check
- Custom
- Custom function check to determine access
- Job
- Only vehicles setup in the config for this specific job are allowed to be stored
- Job and grade check for access
- Can restrict vehicles to a custom authorization check (example: helicopter license check)
- Vehicle purchasing
- Custom plate setup if desired
- Use society funds if available
- Set default Livery and Mods vehicle will have when purchased in config
- Can be setup to use shared vehicles
- Shared vehicles are purchased and usable by anyone with job and grade access
- Impound
- Accessed by any player
- Set jobs in config to enable the /impound command
- Vehicles can be impounded for any amount of time
- Vehicles can be set to only be released by certain jobs (example: police)
- Set a fee for impound release
- Vehicles left on the street can be sent to impound with a custom fee upon server restart if set in config
- Each garage can be setup with 1 of 4 vehicle types. Vehicle type must match the garage vehicle type to be allowed storage (example: Helicopter cannot be stored in a Water garage)
- Air
- Any vehicle class deemed 15 or 16 via GetVehicleClass native will be allowed storage
- Water
- Any vehicle class deemed 14 via GetVehicleClass native will be allowed storage
- Land
- Any vehicle that does not fall into the Air or Water class will be allowed storage
- Land or Air
- Any vehicle that falls into the Land or Air category will be allowed storage
- Garage Access
- By default garages can be opened using either a TextUI notification and Keypress or through the ox_lib radial menu (radial options are only viewable while inside a garage zone)
- Export is provided to easily open the garage menu via a command, target menu or any other option you choose
- If you lose or gain access to a non public garage it is immediately available or taken away
- Storing Vehicles
- Vehicles can be stored by anyone who has keys and access to the garage. Can be changed in config so only the vehicle owner can store
- Vehicles with a fakeplate can be stored if allowed in the config
- Export is provided to easily store vehicles via a command, target menu or any other option you choose
- Adding/Editing Garages
- All garages are stored in a database
- Adding or editing garages become usable or removed immediately without requiring any server or script restarts or player relogs
- Extensive menu system for adding a new garage for admins. Simply get your coords and use the command to setup the garage
- Easily edit any existing garages to make changes
- Easy to use /addhousegarage command for players to add housing garages without needing to obtain any coords via admin tools
- setup a job to use this command
- Notes
- Script optimization (0.0MS)
- Vehicles left out on the street are sent back to their previous garage on server restart (unless config setup to impound them)
- 22 Default garages
- Fake plate support
- Server spawned and tracked vehicles