WEAPON

GET_SELECTED_PED_WEAPON

0x0A6DB4965674D243 Jenkins: 0xD240123E

Signature

// WEAPON
Hash GET_SELECTED_PED_WEAPON(Ped ped)

Parameters

Type Name
Ped ped

Return type Hash

Build 323

Documentation

Returns the hash of the weapon. var num7 = WEAPON::GET_SELECTED_PED_WEAPON(num4); sub_27D3(num7); switch (num7) { case 0x24B17070: Also see WEAPON::GET_CURRENT_PED_WEAPON. Difference? ------------------------------------------------------------------------- The difference is that GET_SELECTED_PED_WEAPON simply returns the ped's current weapon hash but GET_CURRENT_PED_WEAPON also checks the weapon object and returns true if the hash of the weapon object equals the weapon hash Full list of weapons by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/weapons.json

APPI RP

Join us on FiveM

Semi-Serious GTA V roleplay on APPI RolePlay — hop into Discord for rules and onboarding, then follow the guide when you're ready to connect.