REMOVE_WEAPON_FROM_PED
Removes the weapon weaponHash from the ped, tagged with removeReason.
Signature
void REMOVE_WEAPON_FROM_PED(Ped ped, Hash weaponHash, BOOL p2, Hash removeReason); // 0x4899CB088EDF59B8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | weaponHash | Hash |
| 3 | p2 | BOOL |
| 4 | removeReason | Hash |
Facts
| Name | REMOVE_WEAPON_FROM_PED |
|---|---|
| Hash | 0x4899CB088EDF59B8 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x4899CB088EDF59B8, -- REMOVE_WEAPON_FROM_PED
PlayerPedId(), -- Ped ped
GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
false, -- BOOL p2
GetHashKey("name") -- Hash removeReason
)Citizen.invokeNative("0x4899CB088EDF59B8", // REMOVE_WEAPON_FROM_PED
PlayerPedId(), // Ped ped
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
false, // BOOL p2
GetHashKey("name") // Hash removeReason
);Function.Call((Hash)0x4899CB088EDF59B8, // REMOVE_WEAPON_FROM_PED
API.PlayerPedId(), // Ped ped
(uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
false, // BOOL p2
(uint)API.GetHashKey("name") // Hash removeReason
);Related WEAPON natives
- REMOVE_WEAPON_COMPONENT_FROM_WEAPON_OBJECT
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- _REMOVE_WEAPON_COMPONENT_FROM_PED
- _REMOVE_WEAPON_FROM_PED_BY_GUID
- _GET_AMMO_IN_PED_WEAPON_FROM_GUID
- _GET_PED_GUN_SPINNING_HASH_FROM_WEAPON_EMOTE_VARIATION
- _GET_WEAPON_OBJECT_FROM_PED
- _REMOVE_AMMO_FROM_PED
- _REMOVE_AMMO_FROM_PED_BY_TYPE
- GET_PED_AMMO_TYPE_FROM_WEAPON
- REMOVE_ALL_PED_WEAPONS
- _CLEAR_PED_LAST_WEAPON_DAMAGE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.