wgnsy123 Posted April 20, 2015 Posted April 20, 2015 Hello everyone, i have a small problem. What is script to change vehicle hp?
MTA Team 0xCiBeR Posted April 20, 2015 MTA Team Posted April 20, 2015 Well, not sure about a script but using: setElementHealth could do the trick. DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp
Maurize Posted April 21, 2015 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
Walid Posted April 21, 2015 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 Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
RenanPG Posted April 21, 2015 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.
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