clearAreaLeaveVehicleHealth
CLEAR_AREA_LEAVE_VEHICLE_HEALTH0x957838AAF91BD12DThe GTA V native CLEAR_AREA_LEAVE_VEHICLE_HEALTH of the MISC namespace, as LS:MP client scripts call it: the global function clearAreaLeaveVehicleHealth, in JavaScript and in Lua.
clearAreaLeaveVehicleHealth(
x: number,
y: number,
z: number,
radius: number,
p4: boolean,
p5: boolean,
p6: boolean,
p7: boolean
): voidclearAreaLeaveVehicleHealth(
x: number,
y: number,
z: number,
radius: number,
p4: boolean,
p5: boolean,
p6: boolean,
p7: boolean
)Usage
JavaScript
clearAreaLeaveVehicleHealth(x, y, z, radius, p4, p5, p6, p7);Lua
clearAreaLeaveVehicleHealth(x, y, z, radius, p4, p5, p6, 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
clearAreaLeaveVehicleHealth(pos, radius, p4, p5, p6, p7);Lua · with vectors
clearAreaLeaveVehicleHealth(pos, radius, p4, p5, p6, 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 |
p5 | BOOL | boolean | boolean |
p6 | 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.
clearAreaLeaveVehicleHealth(x, y, z, radius, false, false, false, false); seem to make all objects go away, peds, vehicles etc. All booleans set to true doesn't seem to change anything.
Reference
- Namespace
- Misc MISC
- In the game
void CLEAR_AREA_LEAVE_VEHICLE_HEALTH(float x, float y, float z, float radius, BOOL p4, BOOL p5, BOOL p6, BOOL p7)- Hash
0x957838AAF91BD12D- Formerly
_CLEAR_AREA_OF_EVERYTHING