WeaponClient

removeAllProjectilesOfType

REMOVE_ALL_PROJECTILES_OF_TYPE0xFC52E0F37E446528

The GTA V native REMOVE_ALL_PROJECTILES_OF_TYPE of the WEAPON namespace, as LS:MP client scripts call it: the global function removeAllProjectilesOfType, in JavaScript and in Lua.

SignatureJavaScript
removeAllProjectilesOfType(weaponHash: Hash, explode: boolean): void
SignatureLua
removeAllProjectilesOfType(weaponHash: Hash, explode: boolean)

Usage

JavaScript
removeAllProjectilesOfType(weaponHash, explode);
Lua
removeAllProjectilesOfType(weaponHash, explode)

Parameters

ParameterTypeJavaScriptLua
weaponHashHashnumberinteger
explodeBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

If explode true, then removal is done through exploding the projectile. Basically the same as explodeProjectiles but without defining the owner ped.

Reference

Namespace
Weapon WEAPON
In the game
void REMOVE_ALL_PROJECTILES_OF_TYPE(Hash weaponHash, BOOL explode)
Hash
0xFC52E0F37E446528

Open in the interactive natives reference