Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: kod)
1. Hud pojawia się w panelu logowania(inny kod)
Siemka,
Mam problem gdy? mam kod na hud, ale problem jest w tym ?e nie mam poj?cia jak naprawi? to aby nie pojawia? si? w panelu logowania, tylko dopiero gdy zrespimy si? ju? w grze.

Kod:
[lua]

local hud = {}
hud.state = true
hud.gui = false
hud.background = nil
hud.pos = nil
hud.x = nil
hud.y = nil
hud.font = dxCreateFont("files/font.ttf", 12)
pricedown = dxCreateFont("files/pricedown.ttf", 14)
pricedown2 = dxCreateFont("files/pricedown.ttf", 16)

local screen = {guiGetScreenSize()}
local screenX = screen[1]
local screenY = screen[2]
local scmp = (screenX/1920)
if screenX < 1680 then
scmp = scmp*0.9
elseif screenX < 1367 then
scmp = scmp*0.92
elseif screenX < 1281 then
scmp = scmp*0.94
end

local ddx,ddy = guiGetScreenSize()
function inbox(ddx, ddy, bx, by)
if isCursorShowing() then
local mx, my = getCursorPosition()
mx, my = mx*screenX, my*screenY
bx, by = ddx+bx, ddy+by
return ddx <= mx and bx >= mx and ddy <= my and by >= my
end
end



local dotCounter = 0



function createHUD()
showPlayerHudComponent("clock", false)
showPlayerHudComponent("health", false)
showPlayerHudComponent("wanted", false)
showPlayerHudComponent("money", false)
showPlayerHudComponent("weapon", false)
showPlayerHudComponent("ammo", false)
showPlayerHudComponent("armour", false)
if hud.state then
if not ...