VehicleClient

isVehicleVisible

IS_VEHICLE_VISIBLE0xAA0A52D24FB98293

The GTA V native IS_VEHICLE_VISIBLE of the VEHICLE namespace, as LS:MP client scripts call it: the global function isVehicleVisible, in JavaScript and in Lua.

SignatureJavaScript
isVehicleVisible(vehicle: Vehicle): boolean
SignatureLua
isVehicleVisible(vehicle: Vehicle): boolean

Usage

JavaScript
const result = isVehicleVisible(vehicle);
Lua
local result = isVehicleVisible(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

must be called after trackVehicleVisibility

it's not instant so probabilly must pass an 'update' to see correct result.

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL IS_VEHICLE_VISIBLE(Vehicle vehicle)
Hash
0xAA0A52D24FB98293

Open in the interactive natives reference