- An Advanced Parking System build by MaDHouSe79.
subscribe to my channel It helps the channel grow Youtube
- ๐ Step 1: First stop your server. ๐
- ๐ Step 2: Copy the directory mh-parking to resources/[qb]/
- ๐ Step 3: Add the player_parking.sql with 2 tables to your correct database.
- ๐ Step 4: Start your server.
- ๐ Step 5: Add your self or other as vip, you can use the command: /park-addvip [id]
- ๐ Step 6: Most important step -> Enjoy ๐๐๐
- ๐ Typ "/park" to park or drive your vehicle where you are at that moment. (Users and Admins)
- ๐ Typ "/park-names if you want to display the names ontop of the vehicle that is parked. (Users and Admins)
- ๐ Typ "/park-lotnames if you want to display the names of the parking lots. (Users and Admins)
- ๐ Typ "/park-cmenu" to create a new parking space (Admin only)
- ๐ Typ "/park-bmode" to go in to build mode (Admin only)
- ๐ Typ "/park-system" if you want to turn on or off the system. (Admin Only)
- ๐ Typ "/park-usevip" to turn on and of the vip system
- ๐ Typ "/park-addvip [id]" if you want to add a vip. (Admin Only)
- ๐ Typ "/park-removevip [id]" if you want to remove a vip. (Admin Only)
- ๐ If you want to use the F5 button, you must add it to your /binds and add on F5 the word "park"
- this only unpark the vehicle, it does not delete the entity from the gameworld.
TriggerServerEvent('mh-parking:server:unpark', plate)
- โ Go to resources[qb]/qb-core/server/player.lua around line 506, and find, local playertables = {}.
- โ This is, if we want to delete a character, we also want to delete the parked vehicles in the database,
- โ Place the line below at the bottom in playertables (there are more insite), so place this one at the bottom.
{ table = 'player_parking' },
{ table = 'player_parking_vips' },