_REMOVE_AMMO_FROM_PED
removeReason must be REMOVE_REASON_USED, REMOVE_REASON_GIVEN, REMOVE_REASON_DROPPED or REMOVE_REASON_DEBUG, unless amount is -1
Hash
0xF4823C813CB8277DRuntime name
RemoveAmmoFromPedNamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _REMOVE_AMMO_FROM_PED(Ped ped, Hash weaponHash, int amount, Hash removeReason);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
weaponHash | Hash | — |
amount | int | — |
removeReason | Hash | — |
Returns void
Description
removeReason must be REMOVE_REASON_USED, REMOVE_REASON_GIVEN, REMOVE_REASON_DROPPED or REMOVE_REASON_DEBUG, unless amount is -1
removeReason: see REMOVE_WEAPON_FROM_PED
Usage
RemoveAmmoFromPed(ped, weaponHash, amount, removeReason)
-- always works, by hash
Citizen.InvokeNative(0xF4823C813CB8277D, ped, weaponHash, amount, removeReason)JavaScript and C#
RemoveAmmoFromPed(ped, weaponHash, amount, removeReason);
// by hash
Citizen.invokeNative('0xF4823C813CB8277D', ped, weaponHash, amount, removeReason);Function.Call((Hash)0xF4823C813CB8277D, ped, weaponHash, amount, removeReason);- 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`. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.