MiscClient

clearAreaLeaveVehicleHealth

CLEAR_AREA_LEAVE_VEHICLE_HEALTH0x957838AAF91BD12D

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

SignatureJavaScript
clearAreaLeaveVehicleHealth(
  x: number,
  y: number,
  z: number,
  radius: number,
  p4: boolean,
  p5: boolean,
  p6: boolean,
  p7: boolean
): void
SignatureLua
clearAreaLeaveVehicleHealth(
  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

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
radiusfloatnumbernumber
p4BOOLbooleanboolean
p5BOOLbooleanboolean
p6BOOLbooleanboolean
p7BOOLbooleanboolean

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

Open in the interactive natives reference