GithubHelp home page GithubHelp logo

frazz1234 / luke_garages Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lukewastakenn/luke_garages

0.0 0.0 0.0 188 KB

Super lightweight FiveM resource that adds garages and impounds for the ESX Legacy framework

License: GNU General Public License v3.0

Lua 100.00%

luke_garages's Introduction

luke_garages

This resource now only supports ESX Legacy, other versions of the framework will not work without modifying the resource.

Alongside cars, aircrafts and boats are also fully supported with them having their own separate garages and impounds.

The impound has checks in place to prevent vehicle duping.

I used esx_vehicleshop, but the resource should work with anything that follows that databse structure in owned_vehicles table.

Updated Video Showcase

Dependencies

Make sure to follow the well detailed installation instructions on qtarget.

Installation

  • Download the resource from releases
  • Rename folder to luke_garages
  • Drop the luke_garages folder into your resources folder
  • Import the .sql file into your database
  • Start the resource in your server.cfg

If you wish to add more garages or impounds make sure to follow the provided template and examples in the config.lua file.

Custom vehicles are now fully supported, for each custom vehicle you have to add a text entry of it's model and make name (if there isn't one already) into the vehicle_names.lua file which is located in the client folder. I provided an example of this that I used on the GTR in the video.

For any issues or bugs that may occur please open an Issue in the repository. Make sure to describe the issue in detail and how to reproduce it.

PRs are always welcome.

Setting the game build

*Setting the game build is required due to the use of GetMakeNameFromVehicleModel native which was introduced in the game version 1868. If (for whatever reason) you don't want to change from the base build that FiveM comes with, you can remove all the appearances of this native and it's variables from the client file. Otherwise your game will be consistently crashing when trying to open either the garage or the impound.

There are two way sto set your game build:

  1. Setting the build in your server.cfg
  2. Setting the build in your launch params

Both methods work exactly the same, if you are setting your game build through launch params you will need to add a + in front of the command, otherwise you don't need to.

The command you need to use is: set sv_enforceGameBuild (example: set sv_enforceGameBuild 2189)

Depending on the game build number you choose is the GTA DLC your server is going to be running:

1604 - Vanilla
2060 - Casino Heist
2189 - Cayo Perico Heist
2373 - Tuners update
2545 - The Contract update

luke_garages's People

Contributors

lukewastakenn avatar boostless avatar dunak-debug avatar vwernay avatar badfantomass 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.