DESCRIPTION
//(In C++)To get this to work you need to use a pointer like so:
auto weapon = new Hash;
if (WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), weapon, 0, 0, 1))
{
if (*weapon == /*insert WeaponHash here*/)
{
//done
}
}
//(In C++)To get this to work you need to use a pointer like so:
auto weapon = new Hash;
if (WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), weapon, 0, 0, 1))
{
if (*weapon == /*insert WeaponHash here*/)
{
//done
}
}
Red Dead Redemption 2 Native Database by www.mod-rdr.com, includes contributions by gudmunduro and alloc8or.
Recommended Comments
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.