BorderLine Posted May 27, 2013 Posted May 27, 2013 Hi everyone. I have a question What function i can use to avoid change weapon of a player? I mean, i have a chainsaw, m4, colt and a shotgun I want make to when im enter to some zone, just i can use chainsaw, and dont change my weapon to m4 or colt or shotgun What functions i can use? Thanks for your time
denny199 Posted May 27, 2013 Posted May 27, 2013 setPedWeaponSlot --To set the slot to a chainsaw toggleControl ( playerElement, "next_weapon", false ) -- disable next_wepaon control toggleControl ( playerElement, "previous_weapon", false ) --disable previous_weapon control --optional giveWeapon -- the player might not have a chainsaw. Or: onClientPlayerWeaponFire --with cancelEvent()
BorderLine Posted May 27, 2013 Author Posted May 27, 2013 setPedWeaponSlot --To set the slot to a chainsaw toggleControl ( playerElement, "next_weapon", false ) -- disable next_wepaon control toggleControl ( playerElement, "previous_weapon", false ) --disable previous_weapon control --optional giveWeapon -- the player might not have a chainsaw. Thanks.. i forgot that functions
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