update
to be honest this was supposed to be a bit of a joke/troll - but as people are actually using it I guess I’ll work on making it look good… Watch this space
It’s interesting what easy shit people can throw out and charge people for… This was written in 10 minutes without even opening FiveM. Probably has some stupid mistakes I haven’t tested.
What does it do?
Locks / unlocks / starts the engine of the car you’re looking at when you click the button. Press K to open the menu.
Please someone make it look good
Feel free to contribute to it
I think you’ve missed the point… the script was to show that if I can do it in 10 minutes it’s not worth charging for… if someone cannot do it in 10 minutes that’s fine, but charging for something like this is ridiculous
ESX is dead weird in how it handles vehicles and I don’t fancy doing a DB call every time someone clicks the button. Instead in your garage script find ‘ESX.Game.SpawnVehicle’ and add this into the function:
exports['FiveM-Remote-Key']:add_vehicle(vehicle)
Like this:
ESX.Game.SpawnVehicle('blista', vector3(120.0, -200.0, 30.0), 100.0, function(vehicle)
-- probably some stuff using ESX.Game.SetVehicleProperties here
exports['FiveM-Remote-Key']:add_vehicle(vehicle)
end)