Skip to main content

GET_CURRENT_CHAR_WEAPON

Game.GetCurrentCharWeaponHash0x5AB8289F
Usage
local currentCharWeapon, weaponType = Game.GetCurrentCharWeapon(charIndex)

Get the current weapon a character is using - returns if it is usable (i.e. in their hand).

Parameters

  • charIndexintegerint

Returns

  • currentCharWeaponbooleanreturn value
  • weaponTypeintegerint*
Original declaration
// 0x5AB8289F
bool GET_CURRENT_CHAR_WEAPON(int charIndex, int* weaponType);