Git Product home page Git Product logo

qb-parking's Introduction

QB-Parking is a Advanced Parking system with a lot of stuff build in.

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

NOTE

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

๐Ÿ“ธ Screenshot ๐Ÿ‘Š๐Ÿ˜๐Ÿ‘

foto1 foto1 foto1 foto1 foto1 foto1 foto1 foto1 foto1 foto1 foto1

๐ŸŽฅ Video ๐Ÿ‘Š๐Ÿ˜๐Ÿ‘

Watch the video1 Watch the video1

๐Ÿ’ช Dependencies

Polyzone

๐Ÿ’ช Optional

๐Ÿ™ How to install and do not forget anything, or it will not work, or give many errors.

  • ๐Ÿ‘‰ 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 ๐Ÿ‘Š๐Ÿ˜Ž๐Ÿ‘

๐ŸŽฎ How To Use

  • ๐Ÿ‘‰ 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"

๐Ÿ‘‡ Extra Code in resources/[qb]/qb-vehiclekeys/client/main.lua.

RegisterNetEvent('vehiclekeys:client:SetVehicleOwnerToCitizenid', function(plate, citizenid)
    TriggerServerEvent('vehiclekeys:server:SetVehicleOwnerToCitizenid', plate, citizenid)
end)

๐Ÿ‘‡ Extra Code in resources/[qb]/qb-vehiclekeys/server/main.lua.

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)

๐Ÿ’ฏ Police and Mechanic Impound Trigger

  • โœ… 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.

๐Ÿ‘‡ To keep things nice and clean for the qb-core system and database.

  • โœ… 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'}

Impound Trigger, to unpark the vehicle.

 TriggerEvent("qb-parking:client:impound", plate) 

Stolen Trigger, to unpark the vehicle for lockpicking.

 TriggerEvent("qb-parking:client:stolen", plate) 

๐Ÿž Any bugs issues or suggestions, let my know.

  • 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 ๐Ÿ˜Ž๐Ÿ‘

๐Ÿ™ˆ Youtube & Discord

qb-parking's People

Contributors

madhouse79 avatar nemadev avatar mulgirtab avatar berkiebb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.