Jump to content

Something like getPedCurrentWeapon??


Zafire

Recommended Posts

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...