Moderators IIYAMA Posted January 25, 2013 Moderators Posted January 25, 2013 How can I stop explosion at server side? https://wiki.multitheftauto.com/wiki/OnClientExplosion If the event onClientExplosion get triggered, I am able to cancel it. (cancelEvent()) But I am not able to block the signal from sending to all players. The only things that can stop this from happening: - destroyElement() (destroy the element bevore it triggers) - SetProjectileCounter (reset the explosion counter) Note: only the creator can stop it from sending Are there server-side functions to stop this? 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
K4stic Posted January 25, 2013 Posted January 25, 2013 in server side you can't make it but here un example in Client side: function removeDamageOnExplotion(_, _, _, theType) if getElementType(source) == "object" then cancelEvent() end end addEventHandler("onClientExplosion", root, removeDamageOnExplotion) Giving a Fuck? Nope, That isn't in My Skill Set
Moderators IIYAMA Posted January 25, 2013 Author Moderators Posted January 25, 2013 hmmm yes, thank you I will try 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
K4stic Posted January 26, 2013 Posted January 26, 2013 Your Welcome Giving a Fuck? Nope, That isn't in My Skill Set
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