Giter VIP home page Giter VIP logo

msk_givevehicle's Introduction

msk_givevehicle's People

Contributors

musiker15 avatar

Stargazers

 avatar

Watchers

 avatar

msk_givevehicle's Issues

ESX Legacy Garagesystem

Moinsen Musiker15,

erst einmal natürlich vielen lieben Dank für dieses super QoL Skript!

Vorher hatte ich schon ein anderes Skript, welches die gleiche respektive ähnliche Funktionalität aufgewiesen hat.
Allerdings musste ich das für ESX Legacy auch schon anpassen.

Folgendes habe ich gemacht:

In der config.lua hinzugefügt:

-- For ESX Legacy garagesystem
Config.Garage = 'SanAndreasAvenue'

und in der server.lua folgende Querries angepasst (Zeile 46 und 224):

MySQL.query('INSERT INTO owned_vehicles (owner, plate, vehicle, stored, type, parking) VALUES (@owner, @plate, @vehicle, @stored, @type, @parking)', {
			['@owner']   = xPlayer.identifier,
			['@plate']   = props.plate,
			['@vehicle'] = json.encode(props),
			['@stored']  = 1,
			['type'] = vehicleType,
			['@parking'] = Config.Garage
		})

Somit werden die Fahrzeuge nicht mehr beim Abschlepphof geparkt sondern in die definierte Garage. Ich habe jetzt nicht jede einzelne Garage (also den Ort) aufgelistet, da ich bei mir im Framework das Ausparken bei jeder Garage abgeändert habe.
Möglich, dass die Query für die Jobfahrzeuge auch angepasst werden muss, das habe ich aber noch nicht getestet.

Liebe Grüsse
Xeno

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.