Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: lampek
1. Montaz lampek
Witam ot??, zrobi?em skrypt na monta? lampek, lecz nie ustawia koloru lamp.
db3
Kod:

s_lua.28:Bad argument @'setVehicleHeadLightColor' [Expected vehicle at argument 1, got player]


s.lua plik w kt?rym jest b??d


--createBlip(-1928.83276.4541.0527000255 )

niebieskie 1




local licz 
= {}
local t=createElement('text')
setElementData(t,'name','Automatyczny Monta? Zmiany Koloru ?wiate?')
setElementPosition(t,-2563.14271.9028.15)

--
createBlip(-2293.2317.0234.8423)




addEvent("niebieskie"true)
addEventHandler("niebieskie"root, function()
pojazd getPedOccupiedVehicle(source)
if 
not pojazd then return end
if (getPlayerMoney(source) > tonumber(niebieskie)) then
  setVehicleHeadLightColor 
(source3359254)
     
outputChatBox("* Pomy?lnie zamontowano lampki niebieskie."source,true)
     
takePlayerMoneysourceniebieskie )
  else
     
outputChatBox("* Nie sta? Ci? na to."source,true)
end
end
)

2. Za zamontowanie lampek bierze podwójnie
Hej mam problem w skrpytach your future (ogrpg) jak zamontuje lampki hajs bierze podw?jnie
Za pomoc daje zimne piwsko :piwo:




Dok?adam kod:[lua]
[[
Resource: OURGame
Developers: Split <[email protected]>
Copyright <[email protected]> 2015-2016
You have no right to use this code without my permission.
]]

local isVehicles=nil
local isColored={
-- Nazwa koloru, {r,g,b koloru}, cena
{"??wiat?‚a Czerwone", {255,0,0}, 45000},
{"??wiat?‚a Niebieskie", {0,45,110}, 40000},
{"??wiat?‚a ?»???‚te", {255,255,0}, 29500},
{"??wiat?‚a Zielone", {0,255,0}, 34500},
{"??wiat?‚a Jasno Niebieskie", {48,213,200}, 20000},
{"??wiat?‚a R????owe", {255,52,225}, 35000},
}

local wn={}
wn.window=guiCreateWindow(0.18, 0.19, 0.64, 0.62, "", true)
wn.grid=guiCreateGridList(0.03, 0.07, 0.62, 0.89, true, wn.window)
guiGridListAddColumn(wn.grid, "Kolor", 0.5)
guiGridListAddColumn(wn.grid, "Koszt", 0.5)
wn.btn_submit=guiCreateButton(0.67, 0.08, 0.31, 0.33, "Zamontuj", true, wn.window)
wn.btn_close=guiCreateButton(0.67, 0.63, 0.31, 0.33, "Zamknij", true, wn.window)
guiSetVisible(wn.window, false)

addEventHandler("onClientMarkerHit", resourceRoot, function(el,md)
if not md or ...