Desaster Posted November 20, 2013 Posted November 20, 2013 hi , when I create a car then I set it's health to any number it create me a car with 0 health idk why when I remove the setElemntHealth fuction it work but the car has 100 health I want now to ask you how I can setElemntHealth without that the car burns
ZL|LuCaS Posted November 20, 2013 Posted November 20, 2013 hi ,when I create a car then I set it's health to any number it create me a car with 0 health idk why when I remove the setElemntHealth fuction it work but the car has 100 health I want now to ask you how I can setElemntHealth without that the car burns use a value more than 0 MTA Scripters. ♥♥♥Beijinhos♥♥♥
Desaster Posted November 20, 2013 Author Posted November 20, 2013 ik 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
ZL|LuCaS Posted November 20, 2013 Posted November 20, 2013 ik 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 MTA Scripters. ♥♥♥Beijinhos♥♥♥
Desaster Posted November 20, 2013 Author Posted November 20, 2013 ok it don't seem your a really nice scipter anyways I found the problem thnx and just for info max health is 100 not 1000
Dealman Posted November 20, 2013 Posted November 20, 2013 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. If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
ZL|LuCaS Posted November 20, 2013 Posted November 20, 2013 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. MTA Scripters. ♥♥♥Beijinhos♥♥♥
Desaster Posted November 20, 2013 Author Posted November 20, 2013 I am really sry men I was just angry lol nvm
ZL|LuCaS Posted November 21, 2013 Posted November 21, 2013 I am really sry men I was just angry lol nvm has no problem I'm here to help you MTA Scripters. ♥♥♥Beijinhos♥♥♥
xXMADEXx Posted November 21, 2013 Posted November 21, 2013 Vehicle health is on a scale of 0-1000, not 0-100 The Ultimate Lua Tutorial! | MTA PHP SDK
Moderators IIYAMA Posted November 21, 2013 Moderators Posted November 21, 2013 max is 2000. only it is buggy. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
ZL|LuCaS Posted November 21, 2013 Posted November 21, 2013 max is 2000. only it is buggy. and this a problem? MTA Scripters. ♥♥♥Beijinhos♥♥♥
Moderators IIYAMA Posted November 21, 2013 Moderators Posted November 21, 2013 max is 2000. only it is buggy. and this a problem? It can be, when you use it. But to get back to the topic, he can also fake that 100 hp. Just use the math people learn at school and he will be fine. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
ZL|LuCaS Posted November 22, 2013 Posted November 22, 2013 max is 2000. only it is buggy. and this a problem? It can be, when you use it. But to get back to the topic, he can also fake that 100 hp. Just use the math people learn at school and he will be fine. interesting. MTA Scripters. ♥♥♥Beijinhos♥♥♥
Moderators IIYAMA Posted November 22, 2013 Moderators Posted November 22, 2013 interesting. Was that sarcasm? Nvm, enjoy that. No reply pls. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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