Code Monkey home page Code Monkey logo

mh-parkinglite's Introduction

QB-Parking

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 ๐Ÿ‘Š๐Ÿ˜๐Ÿ‘

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

foto1

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

Watch the video1

๐Ÿ’ช Dependencies

๐Ÿ’ช 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: Most important step -> Enjoy ๐Ÿ‘Š๐Ÿ˜Ž๐Ÿ‘

๐Ÿ€ Features

  • โœ… Easy to install and use
  • โœ… QB-Phone notifications
  • โœ… Admin Controll like disable or enable the system or set it to only allowed for vip players only.
  • โœ… User Controll like displaying text on screen.
  • โœ… Players with user status will only see the model name of this vecihle, not the owners name or plate.
  • ๐Ÿ‘‰ Your players will love this extra feature, if they can park there own vehicle in front of there housees or clubs.
  • ๐Ÿ‘‰ Your players can setup youtube scenes, and if they want, they can come back later, and your vechiles are still there.
  • ๐Ÿ‘‰ This is very usefull cause if you make a scene and somehthing goes wrong, then don't wory you vechiles are right there.
  • ๐Ÿ‘‰ And of course you should not forget to park your vehicle ๐Ÿ‘Š๐Ÿ˜๐Ÿ‘

๐ŸŽฎ 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)
  • ๐Ÿ‘‰ If you want to use the F5 button, you must add it to your /binds and add on F5 the word "park"

โš™๏ธ Settings

  • ๐Ÿ‘‰ Change the max cars that can park in the world space, change the amount from Config.Maxcarparking in the config.lua file.
  • ๐Ÿ‘‰ Vip users can be added in shared/config.lua => Config.VipPlayers = {} only if you use the vip option.
  • ๐Ÿ‘‰ Knowledge of programming and use your brains cause i'am not going to help you install this mod, cause it's very easy to do.

๐Ÿ’ฏ What i recommend for using this mod

  • ๐Ÿ‘‰ I recommend to use this mod only for vip players or for players who are most online on you server.
  • ๐Ÿ‘‰ Try not to spawn too many vehicles in world space, this can cause issues and hiccups.
  • ๐Ÿ‘‰ It is also recommended to have a good computer/server to use this mod, cause you will need it.
  • ๐Ÿ‘‰ To keep the server nice and clean for everyody, use this system only for vip players.

๐Ÿ’ฏ I tested this mod on a computer/server with the following settings

  • โœ… Prossessor: I7 12xCore
  • โœ… Memory: 16 gig memory
  • โœ… Graphics: GTX 1050 TI 4GB

๐Ÿ™ Don't do this...

  • ๐Ÿ‘‰ DO NOT park your vehicles on roofs or that kind of stuff, just don't do it, it will work, but it breaks the mod,
  • ๐Ÿ‘‰ use the recommended parking spots in the world like you do in real life,
  • ๐Ÿ‘‰ you can do of course just park at your own house on a parking spot to keep it nice and clean for everyone.

๐Ÿ‘‡ 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' },

โš™๏ธ To get a other languages.

  • 1: copy a file from the resources[qb]/qb-parking/locales directory
  • 2: rename this file for example fr.lua or sp.lua
  • 3: translate the lines in the file to your language
  • 4: you now have added a new language to the system, enjoy ๐Ÿ˜Ž

๐Ÿž 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

mh-parkinglite's People

Contributors

madhouse79 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mh-parkinglite's Issues

Towing when parked

Hey i was wondering if you could add in some functionality to account for if the parked vehicle is towed as currently when its taken away it just returns to the parked spot :)

many thanks!!

Parking a vehicle causes it to spawn multiple times

General information

When using the park command to park the vehicle, my character climbs out of the car and everything works fine, until the car with the parked state spawns.

The parked car has all the information displayed above it, but 2 or even more cars spawn on top of it.

issue

Also, getting back inside the car and starting it is no problem. The database and all the stored data is also fine, I could not find any duplicate entries or other problems.

The same issue with multiple cars also occurs when I restart the script. However, starting the server from scratch with parked cars in the database seems fine and the cars are parked without any duplicates.

Attempting to fix it

I tried to debug the issue by looking into the script, but I am clueless at the moment. I just wanted to report this in case other users have the same issue, maybe someone can find a fix.

Is still supported?

Hi MadHouse.

Is this parkinglight still active?

I was looking for something similar, but seems to not work anymore on latest qbcore.

Car get parked, but just disappear, doesn't respawn.

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.