I am trying to find a way to check what weapon the player is currently holding and if they are holding a certain weapon it returns a true value for an if statement.
I have tried to use
if GetCurrentPedWeapon(ped, weapon) == 1 then
but no matter what weapon you are holding it returns 1.
Any help would be appreciated