Gameplay::clearAreaLeaveVehicleHealth

From RAGE Multiplayer Wiki

Client-Side
Function

 JavaScript



JavaScript Syntax

Clears all cars and peds within the given area but does not change the vehicle health

Required Params

  • x: Float
  • y: Float
  • z: Float
  • radius: Float
  • deleteProjectiles: Float
  • leaveCarGens: Float
  • clearPickups: Float
  • broadcast: Float

Return value

  • number

Syntax

mp.game.gameplay.clearAreaLeaveVehicleHealth(x, y, z, radius, deleteProjectiles, leaveCarGens, clearPickups, broadcast);

Example

const {x, y, z} = mp.players.local.position;
const radius = 50.0;
mp.game.gameplay.clearAreaLeaveVehicleHealth(x, y, z, radius, false, false, false, false); //clears cars and peds within the player's position with a radius of 50.0


See also