_SET_AMMO_IN_TURRET
Hash
0xBDDA0C290C228159Runtime name
SetAmmoInTurretNamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_AMMO_IN_TURRET(Vehicle vehicle, Hash turretHash, int ammo);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
turretHash | Hash | — |
ammo | int | — |
Returns void
Description
turretHash: WEAPON_TURRET_MAXIUM, WEAPON_TURRET_GATLING, WEAPON_TURRET_CANNON, WEAPON_TURRET_REVOLVING_CANNON
Usage
SetAmmoInTurret(vehicle, turretHash, ammo)
-- always works, by hash
Citizen.InvokeNative(0xBDDA0C290C228159, vehicle, turretHash, ammo)JavaScript and C#
SetAmmoInTurret(vehicle, turretHash, ammo);
// by hash
Citizen.invokeNative('0xBDDA0C290C228159', vehicle, turretHash, ammo);Function.Call((Hash)0xBDDA0C290C228159, vehicle, turretHash, ammo);- 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.