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