local marker = createMarker(87.25388, 1183.62219, 18.66406, "cylinder", 1)
local wm={}
wm.window=guiCreateWindow(0.25, 0.26, 0.51, 0.42, "Test", true)
guiWindowSetSizable(wm.window, false)
guiWindowSetMovable(wm.window, false)
guiSetVisible(wm.window, false)
wm.button=guiCreateButton(0.57, 0.75, 0.39, 0.20, "Testowy guzik", true, wm.window)
function ifka()
if guiGetVisible(wm.window) == false then
guiSetVisible(wm.window, true)
showCursor(true)
end
end
addEventHandler("onClientMarkerHit", marker, ifka)
function if2()
if guiGetVisible(wm.window) == true then
guiSetVisible(wm.window, false)
showCursor(false)
end
end
addEventHandler("onClientMarkerLeave", marker, if2)
function cosik()
guiSetVisible(wm.window, false)
showCursor(false)
end
addEventHandler("onClientGUIClick", wm.button, cosik, false)