RDR3 match
WEAPON::GET_CURRENT_PED_WEAPON_ENTITY_INDEX
0x650F4A03C4C6F56C ·RVA 0x04A82850
Signature
Entity GET_CURRENT_PED_WEAPON_ENTITY_INDEX(
Ped ped,
int attachPoint
);
The scripts pass 3 values to this native; the decoded signature lists 2 (arguments the game doesn't read are left out).
Parameters 2
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | ped |
– |
| 1 | int | attachPoint |
– |
Returns
Entity
Call it
// WEAPON::GET_CURRENT_PED_WEAPON_ENTITY_INDEX
auto result = invoke<Entity>(0x650F4A03C4C6F56C, ped, attachPoint);// WEAPON::GET_CURRENT_PED_WEAPON_ENTITY_INDEX
int result = Function.Call<int>((Hash)0x650F4A03C4C6F56C, ped, attachPoint);-- WEAPON::GET_CURRENT_PED_WEAPON_ENTITY_INDEX
local result = Citizen.InvokeNative(0x650F4A03C4C6F56C, ped, attachPoint)// WEAPON::GET_CURRENT_PED_WEAPON_ENTITY_INDEX
const result = Citizen.invokeNative("0x650F4A03C4C6F56C", ped, attachPoint);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.