Zafire Posted July 30, 2011 Share Posted July 30, 2011 Hey, how i can take WEAPON id of the player has in his hands.. i need to use it in addEventHandler('onClientPlayerWeaponSwitch',jugador,function(prevSlot,currSlot) so i need a function give me the weapon id the player have in his hands Link to comment
JR10 Posted July 30, 2011 Share Posted July 30, 2011 local currentWeapon = getPedWeapon(player) local currentSlot = getPedWeaponSlot(player) currentWeapon = the player's current weapon in hand. currentSlot = the player's current weapon's slot. Link to comment
Zafire Posted July 30, 2011 Author Share Posted July 30, 2011 local currentWeapon = getPedWeapon(player) local currentSlot = getPedWeaponSlot(player) currentWeapon = the player's current weapon in hand. currentSlot = the player's current weapon's slot. thx but that give me the ID of the weapon?.. because in the same slot i can have a UZI or a MP5 or a TEC9 Link to comment
JR10 Posted July 30, 2011 Share Posted July 30, 2011 currentWeapon = the current weapon's id currentSlot = the current weapon's slot 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