_REMOVE_WEAPON_COMPONENT_FROM_PED
Removes the component componentHash from the ped's weapon weaponHash.
Signature
void _REMOVE_WEAPON_COMPONENT_FROM_PED(Ped ped, Hash componentHash, Hash weaponHash); // 0x19F70C4D80494FF8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | componentHash | Hash |
| 3 | weaponHash | Hash |
Facts
| Name | _REMOVE_WEAPON_COMPONENT_FROM_PED |
|---|---|
| Hash | 0x19F70C4D80494FF8 |
| 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(0x19F70C4D80494FF8, -- _REMOVE_WEAPON_COMPONENT_FROM_PED
PlayerPedId(), -- Ped ped
GetHashKey("name"), -- Hash componentHash
GetHashKey("weapon_revolver_cattleman") -- Hash weaponHash
)Citizen.invokeNative("0x19F70C4D80494FF8", // _REMOVE_WEAPON_COMPONENT_FROM_PED
PlayerPedId(), // Ped ped
GetHashKey("name"), // Hash componentHash
GetHashKey("weapon_revolver_cattleman") // Hash weaponHash
);Function.Call((Hash)0x19F70C4D80494FF8, // _REMOVE_WEAPON_COMPONENT_FROM_PED
API.PlayerPedId(), // Ped ped
(uint)API.GetHashKey("name"), // Hash componentHash
(uint)API.GetHashKey("weapon_revolver_cattleman") // Hash weaponHash
);Related WEAPON natives
- _REMOVE_WEAPON_FROM_PED_BY_GUID
- REMOVE_WEAPON_COMPONENT_FROM_WEAPON_OBJECT
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- _REMOVE_AMMO_FROM_PED
- _REMOVE_AMMO_FROM_PED_BY_TYPE
- REMOVE_WEAPON_FROM_PED
- _REMOVE_WEAPON_ASSET
- _GET_AMMO_IN_PED_WEAPON_FROM_GUID
- _GET_PED_GUN_SPINNING_HASH_FROM_WEAPON_EMOTE_VARIATION
- _GET_WEAPON_OBJECT_FROM_PED
- _GIVE_WEAPON_COMPONENT_TO_WEAPON_OBJECT
- _HAS_PED_GOT_WEAPON_COMPONENT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.