REMOVE_WEAPON_COMPONENT_FROM_PED
REMOVE_WEAPON_COMPONENT_FROM_PED This is the server-side RPC native equivalent of the client native REMOVE_WEAPON_COMPONENT_FROM_PED.
Signature
void REMOVE_WEAPON_COMPONENT_FROM_PED(Ped ped, Hash weaponHash, Hash componentHash);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
weaponHash | Hash | — |
componentHash | Hash | — |
Returns void
Description
REMOVE_WEAPON_COMPONENT_FROM_PED
This is the server-side RPC native equivalent of the client native REMOVE_WEAPON_COMPONENT_FROM_PED.
Usage
RemoveWeaponComponentFromPed(ped, weaponHash, componentHash)
-- always works, by hash
Citizen.InvokeNative(0x412aa00d, ped, weaponHash, componentHash)JavaScript and C#
RemoveWeaponComponentFromPed(ped, weaponHash, componentHash);
// by hash
Citizen.invokeNative('0x412aa00d', ped, weaponHash, componentHash);Function.Call((Hash)0x412aa00d, ped, weaponHash, componentHash);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.