RDR3 match
WEAPON::HAS_PED_GOT_WEAPON
0x770BD74372134FD0 ·RVA 0x04A881D0
Signature
BOOL HAS_PED_GOT_WEAPON(
Ped ped,
Hash weaponHash,
int p2,
BOOL onlyCheckPlayerInventory
);
The scripts pass 5 values to this native; the decoded signature lists 4 (arguments the game doesn't read are left out).
Parameters 4
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | ped |
– |
| 1 | Hash | weaponHash |
– |
| 2 | int | p2 |
– |
| 3 | BOOL | onlyCheckPlayerInventory |
– |
Returns
BOOL
Call it
// WEAPON::HAS_PED_GOT_WEAPON
auto result = invoke<BOOL>(0x770BD74372134FD0, ped, weaponHash, p2, onlyCheckPlayerInventory);// WEAPON::HAS_PED_GOT_WEAPON
bool result = Function.Call<bool>((Hash)0x770BD74372134FD0, ped, weaponHash, p2, onlyCheckPlayerInventory);-- WEAPON::HAS_PED_GOT_WEAPON
local result = Citizen.InvokeNative(0x770BD74372134FD0, ped, weaponHash, p2, onlyCheckPlayerInventory)// WEAPON::HAS_PED_GOT_WEAPON
const result = Citizen.invokeNative("0x770BD74372134FD0", ped, weaponHash, p2, onlyCheckPlayerInventory);Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.
Improve this page
Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.