Basically with this script you can kill your friends car engine or your enemys car engine and if you want you can do a lot of things with this too like sabotage cop cars, …
I hope you enjoy this script and don’t forget I’m a noob developer trying to learn something and this is my first script .
Now you can go to your inventory and use the item rather then use the /killengine command (If you want the script wih the /killengine command I will leave it here for download too:smiley:)
Cool, you should just change the code from a command to using the item. So if you press use the item, then it does trigger a client event which is the same code as you already have. ESX people hates commands
Hi tested this out and don’t do nothing had the item and got the progress bar but then done nothing could still get in the car and engine would start and car would drive.
Yeah i have the script added and the item and when i do the command it starts the the progress bar but nothing happens when it finishes and car is fine and can also walk around while the progress bar is going.
For some reason the SetVehicleEngineHealth is not working instead of setting it to 0, it sets it to 1072, only the engine turns off. But can be simply turned on using /engine with external elvehicle commands. I mean great idea, but at this moment it only turns the engine off, it doesnt break the car.