GithubHelp home page GithubHelp logo

kurosak1ll / 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 156 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

Due to the lack of time and motivation to fix the currently ongoing issues and implement new features the work on the repository is suspended.

This resource 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.

Video Showcase (From 2.0.0 version)

Dependencies

Make sure to download the release zip for ox_lib (ox_lib.zip).

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 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
2699 - Criminal Enterprises update

License

luke_garages
Copyright (C) 2022 Luke <https://www.github.com/LukeWasTakenn>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

luke_garages's People

Contributors

lukewastakenn avatar icecubepiso avatar rav3n95 avatar stuxxyofficial avatar boostless avatar cranksome avatar dunak-debug avatar far18 avatar katotekii avatar koolaiddtv avatar itslincon avatar mahanmoulaei avatar szxna avatar vwernay avatar badfantomass avatar ffpetrozzi avatar frazz1234 avatar xrtw 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.