removeAllProjectilesOfType
REMOVE_ALL_PROJECTILES_OF_TYPE0xFC52E0F37E446528The 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.
removeAllProjectilesOfType(weaponHash: Hash, explode: boolean): voidremoveAllProjectilesOfType(weaponHash: Hash, explode: boolean)Usage
JavaScript
removeAllProjectilesOfType(weaponHash, explode);Lua
removeAllProjectilesOfType(weaponHash, explode)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
weaponHash | Hash | number | integer |
explode | BOOL | boolean | boolean |
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