This is a very awesome parking mod, that i specially made for qb-core This is just how you park in real live 😁 so park anywhere you want 👊😁👍 This mod is more intended for large servers, with VIP players, you can give this player an extra feature, to let them park in front of there own house, or you can use this, if you are a youtuber, and you don't want to mesh up and get your scene back togetter again, and getting al your vehicles from garage back on it place, you can also use this mod, so your scene stays how you put it, just a little thing I thought of what you also can do with this mod. 😁 you can also creaate parking spots for jobs or players you can create free parking places of paid parking places, you can use the build in build mode to correctly place your markers.
This mod is also good if players crashes or if the server gets a reboot, and if you have permission to park, and you have parked your vehicle, then you never have to get your vehicle from the garage again, but if you do forget to park your vehicle, your vehicle can be found in garage or impound.
if you only want to use free for al parking 👉 https://github.com/MaDHouSe79/qb-parkinglite
- ✅ oxmysql
- ✅ qb-core
- ✅ qb-garages
- ✅ qb-vehiclekeys
Polyzone
- ✅ qb-phone
- ✅ qb-target
- ✅ cc-fuel
- ✅ interact-sound
- ✅ you can also use other vehiclekey scripts, change this in the config file.
- 👉 Step 1: First stop your server. 😁
- 👉 Step 2: Copy the directory qb-parking to resources/[qb]/
- 👉 Step 3: Add the player_parking.sql with 2 tables to your correct database.
- 👉 Step 4: Add any recommended extra code what I say you should add.
- 👉 Step 5: If you are 100% sure, you have done all 4 steps correctly, go to step 6.😁
- 👉 Step 6: Start your server.
- 👉 Step 7: Add your self or other as vip, you can use the command: /park-addvip [id]
- 👉 Step 8: 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"
RegisterNetEvent('vehiclekeys:client:SetVehicleOwnerToCitizenid', function(plate, citizenid)
TriggerServerEvent('vehiclekeys:server:SetVehicleOwnerToCitizenid', plate, citizenid)
end)
RegisterNetEvent('vehiclekeys:server:SetVehicleOwnerToCitizenid', function(plate, citizenid)
if VehicleList then
local val = VehicleList[plate]
if val then
VehicleList[plate].owners[citizenid] = true
else
VehicleList[plate] = { owners = {} }
VehicleList[plate].owners[citizenid] = true
end
else
VehicleList = {}
VehicleList[plate] = { owners = {} }
VehicleList[plate].owners[citizenid] = true
end
end)
- ✅ You can impound this vehicles, if a user park their vehicle incorrectly, and you added the trigger correctly...
- ✅ You can give a fine, and then if you want, you can still impound this vehicle.
- ✅ If a player as police, if they can enable the hud to see the name and plate of this persons parked vehicle, by using /park-names.
- ✅ The Polices and Mechanics client side trigger event, for the police or mechanic to impount a vehicle correctly.
- ✅ You MUST add this to your police impound trigger event.
- ✅ 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_vehicles' },
{ table = 'player_parking_vips' },
--NOT IN USE YET, YOU DONT HAVE TO ADD THIS
{ table = 'player_parking_reserved'}
TriggerEvent("qb-parking:client:impound", plate)
TriggerEvent("qb-parking:client:stolen", plate)
- If you have any suggestions or nice ideas let me know and we can see what we can do 👊😎
- Keep it nice and clean for everybody and have fun with this awesome qb-parking mod 😎👍