clearArea
CLEAR_AREA0xA56F01F3765B93A0The GTA V native CLEAR_AREA of the MISC namespace, as LS:MP client scripts call it: the global function clearArea, in JavaScript and in Lua.
clearArea(
X: number,
Y: number,
Z: number,
radius: number,
p4: boolean,
ignoreCopCars: boolean,
ignoreObjects: boolean,
p7: boolean
): voidclearArea(
X: number,
Y: number,
Z: number,
radius: number,
p4: boolean,
ignoreCopCars: boolean,
ignoreObjects: boolean,
p7: boolean
)Usage
JavaScript
clearArea(X, Y, Z, radius, p4, ignoreCopCars, ignoreObjects, p7);Lua
clearArea(X, Y, Z, radius, p4, ignoreCopCars, ignoreObjects, p7)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
clearArea(pos, radius, p4, ignoreCopCars, ignoreObjects, p7);Lua · with vectors
clearArea(pos, radius, p4, ignoreCopCars, ignoreObjects, p7)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
X | float | number | number |
Y | float | number | number |
Z | float | number | number |
radius | float | number | number |
p4 | BOOL | boolean | boolean |
ignoreCopCars | BOOL | boolean | boolean |
ignoreObjects | BOOL | boolean | boolean |
p7 | 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.
Example: clearArea(0, 0, 0, 30, true, false, false, false);Reference
- Namespace
- Misc MISC
- In the game
void CLEAR_AREA(float X, float Y, float Z, float radius, BOOL p4, BOOL ignoreCopCars, BOOL ignoreObjects, BOOL p7)- Hash
0xA56F01F3765B93A0