[center]Witam, napisa?em panel F1, lecz gdy go wlaczam nie dzia?aj? ?adne elementy w cgui, za pomoc stawiam
Kod:
[/center]
[lua]
--[[
@Autor: TheNoobisty
- Zabrania si? edytowania skryptu bez zgody jego autora -
]]--
zakladka = guiCreateLabel(0.02, 0.09, 0.71, 0.84, "", true)
local font0_normal = guiCreateFont(":pd_gui/fonts/normal.ttf", 13)
guiSetFont(zakladka, font0_normal)
guiLabelSetHorizontalAlign(zakladka, "center", false)
guiLabelSetVerticalAlign(zakladka, "center")
label = guiCreateLabel(0.02, 0.02, 0.70, 0.07, "", true)
local font1_gtav = guiCreateFont(":pd_gui/fonts/gtav.ttf", 39)
guiSetFont(label, font1_gtav)
guiLabelSetHorizontalAlign(label, "center", false)
guiLabelSetVerticalAlign(label, "center")
local screenW, screenH = guiGetScreenSize()
F1 = false
function cursorPosition(x, y, w, h)
if (not isCursorShowing()) then
return false
end
local mx, my = getCursorPosition()
local fullx, fully = guiGetScreenSize()
cursorx, cursory = mx*fullx, my*fully
if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then
return true
else
return false
end
end
-- Zakladki
Przewodnik = "Przewodnik"
Prace = "Prace"
Komendy = "Komendy"
Bindy = "Bindy"
Premium = "Premium"
local dxfont0_gtav = dxCreateFont(":pd_gui/fonts/gtav.ttf&q... |