clearAreaOfVehicles
CLEAR_AREA_OF_VEHICLES0x01C7B9B38428AEB6The GTA V native CLEAR_AREA_OF_VEHICLES of the MISC namespace, as LS:MP client scripts call it: the global function clearAreaOfVehicles, in JavaScript and in Lua.
clearAreaOfVehicles(
x: number,
y: number,
z: number,
radius: number,
p4: boolean,
p5: boolean,
p6: boolean,
p7: boolean,
p8: boolean,
p9: boolean,
p10: any
): voidclearAreaOfVehicles(
x: number,
y: number,
z: number,
radius: number,
p4: boolean,
p5: boolean,
p6: boolean,
p7: boolean,
p8: boolean,
p9: boolean,
p10: any
)Usage
JavaScript
clearAreaOfVehicles(x, y, z, radius, p4, p5, p6, p7, p8, p9, p10);Lua
clearAreaOfVehicles(x, y, z, radius, p4, p5, p6, p7, p8, p9, p10)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
clearAreaOfVehicles(pos, radius, p4, p5, p6, p7, p8, p9, p10);Lua · with vectors
clearAreaOfVehicles(pos, radius, p4, p5, p6, p7, p8, p9, p10)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 |
p5 | BOOL | boolean | boolean |
p6 | BOOL | boolean | boolean |
p7 | BOOL | boolean | boolean |
p8 | BOOL | boolean | boolean |
p9 | BOOL | boolean | boolean |
p10 | Any | any | any |
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:
clearAreaOfVehicles(0.0f, 0.0f, 0.0f, 10000.0f, false, false, false, false, false, false);Reference
- Namespace
- Misc MISC
- In the game
void CLEAR_AREA_OF_VEHICLES(float x, float y, float z, float radius, BOOL p4, BOOL p5, BOOL p6, BOOL p7, BOOL p8, BOOL p9, Any p10)- Hash
0x01C7B9B38428AEB6