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
if parking give you any issues with spawning, i know this i'm trying to find a fix for it, you can use parking-lite if you still want to use this, this is a very lite version of this parking Link: 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 ๐๐