Skip to main content

Vehicle::isCopVehicleInArea3d

Usage:

public bool isCopInRange(Vector3 Location, float Range)

       \{  
           return Function.Call<bool>(Hash.IS_COP_PED_IN_AREA_3D, Location.X - Range, Location.Y - Range, Location.Z - Range, Location.X + Range, Location.Y + Range, Location.Z + Range);  
       \}

Syntax

```js mp.game.vehicle.isCopVehicleInArea3d(x1, x2, y1, y2, z1, z2); ```

Required Arguments

  • x1: float
  • x2: float
  • y1: float
  • y2: float
  • z1: float
  • z2: float

Return value

  • Boolean

Example

```js // todo ```

See also