Warburg Posted January 3, 2018 Share Posted January 3, 2018 (edited) Hey, I'm trying to check if the player has a sniper equipped, currently I'm using this: if (WEAPON::GET_CURRENT_PED_WEAPON(PlayerPedID, GAMEPLAY::GET_HASH_KEY("WEAPON_SNIPERRIFLE"), 1)){blah blah} The issue with this is, I get the error of "argument of type "Hash" is incompatible with parameter of type "Hash *" Any help is appreciated. Edited January 3, 2018 by Warburg Link to comment Share on other sites More sharing options...
Jitnaught Posted January 4, 2018 Share Posted January 4, 2018 Hey, I'm trying to check if the player has a sniper equipped, currently I'm using this: if (WEAPON::GET_CURRENT_PED_WEAPON(PlayerPedID, GAMEPLAY::GET_HASH_KEY("WEAPON_SNIPERRIFLE"), 1)){blah blah} The issue with this is, I get the error of "argument of type "Hash" is incompatible with parameter of type "Hash *" Any help is appreciated. All GET_CURRENT_PED_WEAPON does is literally get the ped's weapon. You would use it like this: Hash currentWeapon;if (WEAPON::GET_CURRENT_PED_WEAPON(PlayerPedID, ¤tWeapon, 1) && currentWeapon == GAMEPLAY::GET_HASH_KEY("WEAPON_SNIPERRIFLE")){ //blah blah} DoggoMaster 1 Link to comment Share on other sites More sharing options...