Game codeUnofficial name
WEAPON::_GET_WEAPON_OBJECT_FROM_PED
0x4BFA2EE339598764 ·RVA 0x04A87B70
Signature
Object _GET_WEAPON_OBJECT_FROM_PED(Ped ped);
The scripts pass 2 values to this native; the decoded signature lists 1 (arguments the game doesn't read are left out).
Parameters 1
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | ped |
– |
Returns
Object
Notes
- Names from RDR3; types from the game code, which differs from RDR3's signature:
- p1, in RDR3's signature, is not passed in GTA VI.
Call it
// WEAPON::_GET_WEAPON_OBJECT_FROM_PED
auto result = invoke<Object>(0x4BFA2EE339598764, ped);// WEAPON::_GET_WEAPON_OBJECT_FROM_PED
int result = Function.Call<int>((Hash)0x4BFA2EE339598764, ped);-- WEAPON::_GET_WEAPON_OBJECT_FROM_PED
local result = Citizen.InvokeNative(0x4BFA2EE339598764, ped)// WEAPON::_GET_WEAPON_OBJECT_FROM_PED
const result = Citizen.invokeNative("0x4BFA2EE339598764", ped);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.