clearAreaOfProjectiles
CLEAR_AREA_OF_PROJECTILES0x0A1CB9094635D1A6The GTA V native CLEAR_AREA_OF_PROJECTILES of the MISC namespace, as LS:MP client scripts call it: the global function clearAreaOfProjectiles, in JavaScript and in Lua.
clearAreaOfProjectiles(
x: number,
y: number,
z: number,
radius: number,
flags: number
): voidclearAreaOfProjectiles(
x: number,
y: number,
z: number,
radius: number,
flags: integer
)Usage
JavaScript
clearAreaOfProjectiles(x, y, z, radius, flags);Lua
clearAreaOfProjectiles(x, y, z, radius, flags)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
clearAreaOfProjectiles(pos, radius, flags);Lua · with vectors
clearAreaOfProjectiles(pos, radius, flags)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x | float | number | number |
y | float | number | number |
z | float | number | number |
radius | float | number | number |
flags | int | number | integer |
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.
flags is usually 0 in the scripts.
Reference
- Namespace
- Misc MISC
- In the game
void CLEAR_AREA_OF_PROJECTILES(float x, float y, float z, float radius, int flags)- Hash
0x0A1CB9094635D1A6