getVehicleNeonColor
Compartido
Dice el color del neón de un vehículo.
int, int, int|false getVehicleNeonColor(vehicle vehicle)
Parámetros
| Nombre | Tipo | Descripción |
|---|---|---|
| vehicle | vehicle | El vehículo. |
Retorno
Tres números r, g, b, o false si no es un vehículo. Un vehículo nuevo tiene neón magenta (255, 0, 255).
Ejemplo
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
local r, g, b = getVehicleNeonColor(vehicle)
outputDebugString(("neon %d %d %d"):format(r, g, b))
end