currentWeapon()
Get the current weapon in the player's hand as a hash.
Function Definition
ts
public currentWeapon: number;
Returns
- number
 
Documentation
Examples
ts
const currentWeapon = player.currentWeapon;
if (currentWeapon !== 0x958a4a8f) {
    // is not using a baseball bat
    return;
}
// is using a baseball bat