Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2020-07-05, 21:12


Pyrek24







Wiek: 26
Na forum: 3579 dni
Posty: 546
Nick w MP: Pyrek

Piwa: 10

Respekt: 50

Witam, mam pytanko jak ustawi? w poje?dzie kolor 2 ? Robi? tak, lecz ustawia mi si? kolor 1 na czarny.
kod

local r2 = guiGetText(rc) or 255
local g2 = guiGetText(gc) or 0
local b2 = guiGetText(bc) or 0
if not tonumber(r2) then return end
if not tonumber(g2) then return end
if not tonumber(b2) then return end
local veh=getPedOccupiedVehicle(localPlayer)
local r1, r1, r1, _, _, _ =getVehicleColor(veh)
setVehicleColor(veh, r1, r1, r1, r2, g2, b2)


Podpis
amta
Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-07-05, 21:31


YoKsiPL







Wiek: 21
Na forum: 3198 dni
Posty: 3
Nick w MP: YoKsiPL

Piwa: 4

Respekt: 50

zmie?
local r1, r1, r1, _, _, _ =getVehicleColor(veh)

Na
local r1, g1, b1, _, _, _ = getVehicleColor(veh,true)


Oraz
To
setVehicleColor(veh, r1, r1, r1, r2, g2, b2)

Na
setVehicleColor(veh, r1, g1, b1, r2, g2, b2)


Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
Pyrek24
Wysłany: 2020-07-05, 21:40


PatryKK.

Emeryt LUA






Wiek: 27
Na forum: 3202 dni
Posty: 1059
Nick w MP: PatryKK.

Piwa: 2331

Respekt: 331,5
Respekt: 331,5Respekt: 331,5Respekt: 331,5

local r2 = guiGetText(rc) or 255
local g2 = guiGetText(gc) or 0
local b2 = guiGetText(bc) or 0
if not tonumber(r2) then return end
if not tonumber(g2) then return end
if not tonumber(b2) then return end
local veh=getPedOccupiedVehicle(localPlayer)
local r1, g1, b1, _, _, _ = getVehicleColor(veh,true)
setVehicleColor(veh, r1, g1, b1, r2, g2, b2)


Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
Pyrek24
Tagi: kolor
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku