local marker=createMarker(2210.82, 2569.88, 7506.10-1, 'cylinder', 1.2, 0,122, 255)
setElementData(marker, 'typ', 'job')
local screenW, screenH = guiGetScreenSize()
local sw,sh = guiGetScreenSize()
local dxfont0_2 = dxCreateFont(":dG-Fonty/2.ttf", 10)
local elements = {}
function shadowText2(text, x, y, w, h, color, size, font, xx, yy)
dxDrawText(text, x, y, w, h, color, size, font, xx, yy, false,false,false,true)
end
function shadowText(text, x, y, w, h, color, size, font, xx, yy)
dxDrawText(text, x+1, y+1, w+1, h+1, tocolor(0,0,0), size, font, xx, yy, false)
dxDrawText(text, x, y, w, h, color, size, font, xx, yy, false,false,false,true)
end
function roundedRectangle(x, y, w, h, color)
dxDrawRectangle(x, y, w, h, color, false)
dxDrawRectangle(x + 2, y - 1, w - 4, 1, color, false)
dxDrawRectangle(x + 2, y + h, w - 4, 1, color, false)
dxDrawRectangle(x - 1, y + 2, 1, h - 4, color, false)
dxDrawRectangle(x + w, y + 2, 1, h - 4, color, false)
end
local font = "default-bold"
okno69 = false
local sx, sy = guiGetScreenSize()
function mysz(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
return true,cx,cy
else
return false
end
end
addEventHandler("onClientMarkerHit", marker, function(player)
local _,_,z = getElementPosition(source)
local _,_,z2 = getElementPosition(localPlayer)
if z+3>z2 and z-1<z2 then
if player ~= localPlayer then return end
addEventHandler("onClientRender", root, guiDUTY)
okno69 = true
showCursor(true)
end
end)
function guiDUTY()
dxDrawImage(screenW * 0.3125, screenH * 0.3333, screenW * 0.3750, screenH * 0.3333, ":psrpg-frakcja-sapd/files/sapd.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawText("Zamknij panel", screenW * 0.5244, screenH * 0.5178, screenW * 0.6462, screenH * 0.5778, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
if getElementData(localPlayer,"player:faction")=="SAPD" then
dxDrawText("Zako?cz s?u?b?\nSAPD", screenW * 0.5244, screenH * 0.4122, screenW * 0.6462, screenH * 0.4722, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
else
dxDrawText("Rozpocznij s?u?b?\nSAPD", screenW * 0.5244, screenH * 0.4122, screenW * 0.6462, screenH * 0.4722, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
end
end