Moderators IIYAMA Posted June 3, 2012 Moderators Posted June 3, 2012 Is it possible to freeze health without using canselevent()? I mean get the health and freeze it? 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
Moderators IIYAMA Posted June 3, 2012 Author Moderators Posted June 3, 2012 hmm.. well I don't wanna freeze the movement to. Only the element data/health. 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
iFoReX Posted June 3, 2012 Posted June 3, 2012 cancelEvent , onPlayerDamage elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Moderators IIYAMA Posted June 3, 2012 Author Moderators Posted June 3, 2012 cancelEvent , onPlayerDamage ....... Ok it looks like there is no other way. 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
Kenix Posted June 5, 2012 Posted June 5, 2012 cancelEvent , onPlayerDamage Wrong. You can cancel only onClientPlayerDamage event. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
X-SHADOW Posted June 5, 2012 Posted June 5, 2012 addEventHandler('onClientPlayerDamage', getLocalPlayer(), function() cancelEvent() end) ---or addEventHandler('onClientPlayerDamage', getLocalPlayer(), function() setElementHealth(source, 100) end) My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
Alpha Posted June 5, 2012 Posted June 5, 2012 Why two events? My Resources: [REL] Support System v1.0.2
Moderators IIYAMA Posted June 5, 2012 Author Moderators Posted June 5, 2012 ---or <- 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