IsCopVehicleInArea3d
Docslocal retval = IsCopVehicleInArea3d(x1, x2, y1, y2, z1, z2)Description
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);
}Parameters
| Name | Type | Description |
|---|---|---|
x1 | float | — |
x2 | float | — |
y1 | float | — |
y2 | float | — |
z1 | float | — |
z2 | float | — |
Quick Snippet: Get Coordinatesx1x2y1y2
x1x2y1y2Add this command to your client script to retrieve precise locations in-game.
-- Add this to your client.lua. Type /pos in-game to copy coords.
RegisterCommand('pos', function()
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
local heading = GetEntityHeading(ped)
local output = string.format("vector4(%.2f, %.2f, %.2f, %.2f)", coords.x, coords.y, coords.z, heading)
print(output)
TriggerEvent('chat:addMessage', { args = { '^4[COORD]^0', output } })
end)Vehicle Models

adder
alpha
blade
ardent
asea
cogcabrio
baller
blistaReturns
BOOLReturns TRUE (1) or FALSE (0).