RedM Natives

_IS_PED_CARRYING_BACKUP_WEAPON

Returns true if the ped is carrying a backup weapon at the specified attach point.

Hash0x486C96A0DCD2BC92
Runtime nameIsPedCarryingBackupWeapon
NamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1232

Signature

BOOL _IS_PED_CARRYING_BACKUP_WEAPON(Ped ped, int attachPoint);

Parameters

NameTypeDescription
pedPed—
attachPointint—

Returns BOOL

Description

alloc8or RDR3 NativeDB

Returns true if the ped is carrying a backup weapon at the specified attach point. Use GET_PED_BACKUP_WEAPON to get the weapon hash.

VORPCORE RDR3natives

true if there is a back up ped weapon get it using GET_PED_BACKUP_WEAPON

Usage

Lua
local retval = IsPedCarryingBackupWeapon(ped, attachPoint)

-- always works, by hash
local retval = Citizen.InvokeNative(0x486C96A0DCD2BC92, ped, attachPoint, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPedCarryingBackupWeapon(ped, attachPoint);

// by hash
const retval = Citizen.invokeNative('0x486C96A0DCD2BC92', ped, attachPoint, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x486C96A0DCD2BC92, ped, attachPoint);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.