SerweryWłasny serwerDla twórcówForumFAQDokumentacjaBezpieczeństwo
Pobierz launcher
  1. Dokumentacja
  2. Funkcje serwera
  3. getVehicleColorId

Funkcja

getVehicleColorId

SerwerPojazdyTylko Trilogy Hub

Zwraca dwa numery palety ustawione przez setVehicleColorId. Gdy pojazd ma kolory RGB z setVehicleColor (albo jeszcze żadnych), zwraca false; wtedy użyj getVehicleColor.

Składnia

int, int getVehicleColorId(vehicle vehicle)

Argumenty

vehiclevehicle
Pojazd.

Zwraca

Numery kolorów 1 i 2 albo false.

Przykład

local vehicle = createVehicle(411, 2000, -1690, 13.5)
setVehicleColorId(vehicle, 3, 1)
local c1, c2 = getVehicleColorId(vehicle)
outputDebugString(c1 .. ", " .. c2)

Zobacz też