Halfmillz Posted May 14, 2013 Posted May 14, 2013 is possible to make ped or player can't use any weapon when standing on car roof? thank you
Moderators IIYAMA Posted May 14, 2013 Moderators Posted May 14, 2013 yep. https://wiki.multitheftauto.com/wiki/Ge ... actElement
Moderators IIYAMA Posted May 14, 2013 Moderators Posted May 14, 2013 Try this: addEventHandler("onClientPreRender",root, function () local element= getPedContactElement ( localPlayer ) if element and getElementType(element)== "vehicle" and getControlState ("fire") then setControlState ( "fire", false) end end)
Halfmillz Posted May 16, 2013 Author Posted May 16, 2013 Try this: addEventHandler("onClientPreRender",root, function () local element= getPedContactElement ( localPlayer ) if element and getElementType(element)== "vehicle" and getControlState ("fire") then setControlState ( "fire", false) end end) it's work! thx very much
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