isVehicleNeonEnabled
Shared
Tells whether a vehicle's neon strips are on.
bool|table isVehicleNeonEnabled(vehicle vehicle [, int|string|table strips = "all"])
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | vehicle | The vehicle. |
| strips | int|string|table | One strip by name or number (from 0), "all" or -1 for every strip, or a table of several.default "all" |
Returns
For a single strip, true or false. For every strip or a table, a table of each strip's name and whether it is on. false if a strip does not exist or the vehicle has no strips.
Example
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
for strip, on in pairs(isVehicleNeonEnabled(vehicle) or {}) do
outputDebugString(strip .. ": " .. tostring(on))
end
end