Moxie Posted May 23, 2020 Share Posted May 23, 2020 (edited) 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 May 23, 2020 by Moxie_95 Link to comment
Sisqo0 Posted May 23, 2020 Share Posted May 23, 2020 (edited) 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: veh = createVehicle( 520 ,2047.46155, -2494.08105 , 14.5,0,0,90) setElementHealth(veh, 10000 ) warpPedIntoVehicle(source, veh) Edited May 23, 2020 by Sisqo0 Link to comment
Moxie Posted May 23, 2020 Author Share Posted May 23, 2020 (edited) i got 205 again but i tried without warping the ped it was set to 1000 veh = createVehicle( 520 ,2047.46155, -2494.08105 , 14.5,0,0,90) setElementHealth(veh, 10000 ) do you know why? Edited May 23, 2020 by Moxie_95 Link to comment
Sisqo0 Posted May 24, 2020 Share Posted May 24, 2020 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) Link to comment
Moderators IIYAMA Posted May 24, 2020 Moderators Share Posted May 24, 2020 (edited) On 23/05/2020 at 05:13, Moxie_95 said: do you know why? Afaik the max vehicle health is +/- 2000. (Initial health is 1000.) Edited May 24, 2020 by IIYAMA Link to comment
Moxie Posted May 25, 2020 Author Share Posted May 25, 2020 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
Moderators IIYAMA Posted May 25, 2020 Moderators Share Posted May 25, 2020 4 hours ago, Moxie_95 said: well i tried to set it to 10000 without warping the ped it was set to 1000% Set it to 2000, not 10000. 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