Witam Przecho na ay life nie dzia?? nie wyjmuje pojazdu jest podi?te modu? jest lecz jak wyjmuje pojazd to mi sie nie wyjmuje i wraca spowrotem do przecho
kod zaraz podam
Client
[code]local screenW, screenH = guiGetScreenSize()
local marker=createMarker(2250.46, 23.06, 26.46-1.0, "cylinder", 1.35, 96, 69, 255, 40)
local sphere=createColCuboid(2242.4331, 24.408173, 25.41864, 6.5, 4.5, 2)
local t=createElement("text")
setElementData(t,"name","Odbi?r pojazd?w")
setElementPosition(t,2250.46, 23.06, 26.46+1.0)
local wm={}
wm.window=guiCreateWindow(0.25, 0.26, 0.51, 0.42, "Odbieranie pojazd?w", true)
guiWindowSetSizable(wm.window, false)
guiWindowSetMovable(wm.window, false)
guiSetVisible(wm.window, false)
wm.gridlist=guiCreateGridList(0.04, 0.09, 0.92, 0.65, true, wm.window)
guiGridListAddColumn(wm.gridlist, "ID", 0.2)
guiGridListAddColumn(wm.gridlist, "Model", 0.55)
guiGridListAddColumn(wm.gridlist, "Zarejestrowany", 0.2)
wm.submit=guiCreateButton(0.04, 0.76, 0.47, 0.19, "Wyjmij pojazd", true, wm.window)
wm.close=guiCreateButton(0.57, 0.75, 0.39, 0.20, "Zamknij", true, wm.window)
addEvent("onParkingGetVehicles", true)
addEventHandler("onParkingGetVehicles", root, function(result)
guiGridListClear(wm.gridlist)
if not result then return end
for i,v in pairs(result) do
if v["registered"] == "false&qu... |