ddEventHandler("onClientMarkerHit", resourceRoot, function(el,md)
if not md or el~=localPlayer then return end
if getElementModel(hitElement) == 50 then
if not cs then return end
if job ~= ljob then
outputChatBox(" Nie jeste?› zatrudniony w tym warsztacie.", 255, 0, 0)
return
end
local vehicles=getElementsWithinColShape(cs,"vehicle")
if #vehicles < 1 then
outputChatBox("Na stanowisku monta??u nie ma ??adnego pojazdu.", 255, 0, 0)
return
end
if #vehicles > 1 then
outputChatBox(" Na stanowisku monta??u jest zbyt du??o pojazd??w.", 255, 0, 0)
return
end
if getElementHealth(vehicles[1]) < 900 then
outputChatBox(" Pojazd jest zbyt uszkodzony aby zamontowa?‡ ?›wiat?‚a.", 255, 0, 0)
return
end
isVehicles=vehicles[1]
showCursor(true,false)
guiGridListClear(wn.grid)
guiSetVisible(wn.window, true)
for i,v in ipairs(isCzesci) do
local row=guiGridListAddRow(wn.grid)
guiGridListSetItemText(wn.grid, row, 1, v[1].."("..v[2]..")", false, false)
guiGridListSetItemData(wn.grid, row, 1, v[2], false, false)
guiGridListSetItemText(wn.grid, row, 2, v[3].." PLN", false, false)
guiGridListSetItemData(wn.grid, row, 2, v[3], false, false)
end
end)
addEventHandler("onClientMarkerHit", resourceRoot, function(el,md)
if not md or el~=localPlayer then return end
if getElementModel(el) == 50 then
if not cs then return end
if job ~= ljob then
outputChatBox(" Nie jeste?› zatrudniony w tym warsztacie.", 255, 0, 0)
return
end
local vehicles=getElementsWithinColShape(cs,"vehicle")
if #vehicles < 1 then
outputChatBox("Na stanowisku monta??u nie ma ??adnego pojazdu.", 255, 0, 0)
return
end
if #vehicles > 1 then
outputChatBox(" Na stanowisku monta??u jest zbyt du??o pojazd??w.", 255, 0, 0)
return
end
if getElementHealth(vehicles[1]) < 900 then
outputChatBox(" Pojazd jest zbyt uszkodzony aby zamontowa?‡ ?›wiat?‚a.", 255, 0, 0)
return
end
isVehicles=vehicles[1]
showCursor(true,false)
guiGridListClear(wn.grid)
guiSetVisible(wn.window, true)
for i,v in ipairs(isCzesci) do
local row=guiGridListAddRow(wn.grid)
guiGridListSetItemText(wn.grid, row, 1, v[1].."("..v[2]..")", false, false)
guiGridListSetItemData(wn.grid, row, 1, v[2], false, false)
guiGridListSetItemText(wn.grid, row, 2, v[3].." PLN", false, false)
guiGridListSetItemData(wn.grid, row, 2, v[3], false, false)
end
end)
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