Halfmillz Posted May 14, 2013 Share Posted May 14, 2013 is possible to make ped or player can't use any weapon when standing on car roof? thank you Link to comment
Moderators IIYAMA Posted May 14, 2013 Moderators Share Posted May 14, 2013 yep. https://wiki.multitheftauto.com/wiki/Ge ... actElement Link to comment
Moderators IIYAMA Posted May 14, 2013 Moderators Share 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) Link to comment
Halfmillz Posted May 16, 2013 Author Share 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 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