function dashboard()
if show == true then
local x,y = guiGetScreenSize()
local oX,oY = 1920, 1080
local sound = playSound(\'zene.mp3\')
setSoundVolume(sound, 1)
dxDrawImage (0/oX*x, 0/oY*y, 1920/oX*x, 1080/oY*y, \'kep.png\', 0, -120 )
dxDrawRectangle(260/oX*x, 340/oY*y, 1400/oX*x, 100/oY*y, 0x7F000000)
dxDrawRectangle(260/oX*x, 340/oY*y, 1400/oX*x, 100/oY*y, 0x7F000000)
dxDrawText(\"World\", 260, 240, 280, 30, tocolor(0, 222, 255, 188), 4, \"pricedown\")
dxDrawText(\"Life\", 540, 260, 280, 30, tocolor(255, 255, 255, 255), 3, \"pricedown\")
dxDrawRectangle(335/oX*x, 465/oY*y, 228/oX*x, 100/oY*y, 0x7F000000)
dxDrawRectangle(335/oX*x, 465/oY*y, 228/oX*x, 100/oY*y, 0x7F000000)
dxDrawRectangle(588/oX*x, 465/oY*y, 228/oX*x, 100/oY*y, 0x7F000000)
dxDrawRectangle(588/oX*x, 465/oY*y, 228/oX*x, 100/oY*y, 0x7F000000)
dxDrawRectangle(841/oX*x, 465/oY*y, 228/oX*x, 100/oY*y, 0x7F000000)
dxDrawRectangle(841/oX*x, 465/oY*y, 228/oX*x, 100/oY*y, 0x7F000000)
dxDrawRectangle(1094/oX*x, 465/oY*y, 228/oX*x, 100/oY*y, 0x7F000000)
dxDrawRectangle(1094/oX*x, 465/oY*y, 228/oX*x, 100/oY*y, 0x7F000000)
dxDrawRectangle(1357/oX*x, 465/oY*y, 228/oX*x, 100/oY*y, 0x7F000000)
dxDrawRectangle(1357/oX*x, 465/oY*y, 228/oX*x, 100/oY*y, 0x7F000000)
end
end
addEventHandler(\"onClientRender\", root, dashboard)
local openedTime = 0
function MutatDashboard()
if getTickCount()-openedTime <= 5 and not show then
outputChatBox(\"Csak 5 másodpercenként nyithatod meg a dashboardot.\", 2)
return
else
openedTime = getTickCount()
end
setElementData(localPlayer, \"toggle-->All\", show)
if show then
show = false
showChat(true)
setTimer(function()
toggleControl(\"change_camera\",true)
end, 500, 1)
else
show = true
showChat(false)
end
end
bindKey(\"o\",\"down\",MutatDashboard)
Zene része:
local sound = playSound(\'zene.mp3\')
setSoundVolume(sound, 1)