Witam, mam skrypt na dashboard i chc? by brzmia? on tak:
1. Skaluj? gui. - mam
2. Nadaj? if z e dat? na gui i razem daje enda. - mam
3. gui po wej?ciu na serw jest wy??czone. - nie mam
4. Po naci?ni?ciu taba si? w??cza. A jak ponownie naci?nie taba to usuwa. - nie mam
Nie wiem jak? da? kolejno?? jak co? mo?ecie pom?c stawiam i
mojeW,mojeH = 1600, 900
sW,sH = guiGetScreenSize()
w, h = (sW/mojeW), (sH/mojeH)
skalaX = (sW/mojeW)
skalaY = (sH/mojeH)
local dash = false
function board()
if isPlayerMapVisible() then return end
if getElementData(localPlayer, "dashboard") then end
-- chowa elementy hudu z gta.
showPlayerHudComponent("clock", false)
showPlayerHudComponent("health", false)
showPlayerHudComponent("money", false)
showPlayerHudComponent("armour", false)
showPlayerHudComponent("weapon", false)
showPlayerHudComponent("ammo", false)
showPlayerHudComponent("wanted",false)
showPlayerHudComponent("breath",false)
roundedRectangle(555*w, 165*h, 409*w, 49*h, tocolor(255, 0, 255, 255), false)
roundedRectangle( 555*w, 214*h, 409*w, 560*h, tocolor(0, 0, 0, 78), false)
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
bindKey("tab", "down", function()
if dash == true then
dash = false
if not getElementData(localPlayer,"e-data czy jest zalogowany") then return end
removeEventHandler("onClientRender", root, board)
showCursor(false)
showChat(true)
setElementData(localPlayer, "dashboard", false)
else
if not getElementData(localPlayer,"e-data czy jest zalogowany") then return end
dash = true
showCursor(true)
showChat(false)
setElementData(localPlayer, "dashboard", true)
addEventHandler("onClientRender", root, board)
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