isVehicleVisible
IS_VEHICLE_VISIBLE0xAA0A52D24FB98293The 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.
isVehicleVisible(vehicle: Vehicle): booleanisVehicleVisible(vehicle: Vehicle): booleanUsage
JavaScript
const result = isVehicleVisible(vehicle);Lua
local result = isVehicleVisible(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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