MiscClient

clearAreaOfProjectiles

CLEAR_AREA_OF_PROJECTILES0x0A1CB9094635D1A6

The 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.

SignatureJavaScript
clearAreaOfProjectiles(
  x: number,
  y: number,
  z: number,
  radius: number,
  flags: number
): void
SignatureLua
clearAreaOfProjectiles(
  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

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
radiusfloatnumbernumber
flagsintnumberinteger

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

Open in the interactive natives reference