Jump to content

setElementHealth


Desaster

Recommended Posts

ik :P but I don't know whats the problem first I got the number from a table
setElementHealth(vehicle, tonumber(theCar[i].Health)) 

the I did this

setElementHealth(vehicle, 99) 

and still not working

local oi = createVehicle(411, -2405,-598,132.6484375) 
setElementHealth ( oi , 500 ) 

use 500 for half life

use 1000 for full life

Link to comment

If you want help in the future, you can at least try to be a bit appreciative when someone is trying to help. There's no need for such dis-respectful behaviour.

And for your information, vehicles in MTA has a very unique health system. Maximum health is indeed 1000 for vehicles, if you set it to, I believe it's either 250 or 200 - the car will start to burn - and then blow up.

Link to comment
If you want help in the future, you can at least try to be a bit appreciative when someone is trying to help. There's no need for such dis-respectful behaviour.

And for your information, vehicles in MTA has a very unique health system. Maximum health is indeed 1000 for vehicles, if you set it to, I believe it's either 250 or 200 - the car will start to burn - and then blow up.

exactly.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...