wgnsy123 Posted April 20, 2015 Share Posted April 20, 2015 Hello everyone, i have a small problem. What is script to change vehicle hp? Link to comment
MTA Team 0xCiBeR Posted April 20, 2015 MTA Team Share Posted April 20, 2015 Well, not sure about a script but using: setElementHealth could do the trick. Link to comment
Maurize Posted April 21, 2015 Share Posted April 21, 2015 If you want simple refill vehicle health use setElementHealth( vehicle, 1000 ) If you want to increase the vehicle health in maximum use a timer or the onVehicleDamage event. https://wiki.multitheftauto.com/wiki/SetElementHealth https://wiki.multitheftauto.com/wiki/OnVehicleDamage Link to comment
Walid Posted April 21, 2015 Share Posted April 21, 2015 (edited) You can use something like this addEventHandler("onVehicleDamage",root, function (loss) setElementHealth(source, 1000) setVehicleDamageProof(source, true) end ) Edited April 22, 2015 by Guest Link to comment
RenanPG Posted April 21, 2015 Share Posted April 21, 2015 You mean the resistance of the vehicle? setElementHealth(vehicle, 100) -- You can put values higher than 100 here. As 1000 for example. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now