Jump to content

[help] SetElementHealth


Moxie

Recommended Posts

i tried to create a hydra with 500% hp but it sets to 205%,(exactly 2047.5 )  anyone knows why ? 

veh = createVehicle( 520 ,2047.46155, -2494.08105 , 14.5,0,0,90)
warpPedIntoVehicle(source, veh)
setElementHealth(veh, 5000)

 

Edited by Moxie_95
Link to comment

Maybe it's the maximum health for this vehicle.. I'm not sure but to make sure.. 

Make it 

31 minutes ago, Moxie_95 said:

setElementHealth(veh, 10000)

If you got the same health(205%) then you knew why but will be better if you set the health before warp Ped 

31 minutes ago, Moxie_95 said:

 

Edited by Sisqo0
Link to comment
3 hours ago, Sisqo0 said:

Did you try to do in the same order that i said ??


veh = createVehicle( 520 ,2047.46155, -2494.08105 , 14.5,0,0,90)
setElementHealth(veh, 10000 )
warpPedIntoVehicle(source, veh)

 

i did and it was set to 205% again, when i tried to make it without warping the ped it was set to 1000% 
 

veh = createVehicle( 520 ,2047.46155, -2494.08105 , 14.5,0,0,90)
setElementHealth(veh, 10000 )

 what should i do, i want to warp the ped in it 

2 hours ago, IIYAMA said:

Afaik the max vehicle health is  +/- 2000.

(Initial health is 1000.)

well i tried to set it to 10000 without warping  the ped it was set to 1000% 

 

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...