Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-04-15, 13:03


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3



local plnfont dxCreateFont("xd.ttf"15)

local sx,sy guiGetScreenSize()
local px,py = (sx/1366),(sy/768)

local CrazyRpgBoolean=false

function CrazyRpgHud()
        dxDrawImage(943*px0*py419*px252*py"hud.png"000tocolor(24311213200), false)
        dxDrawText(getPlayerName(localPlayer), 1005*px33*py1234*px73*pytocolor(255255255255), 1.00*pxplnfont"center""center"falsefalsefalsefalsefalse)
        dxDrawText(getPlayerMoney(localPlayer), 1006*px76*py1235*px116*pytocolor(255255255255), 1.00*pxplnfont"center""center"falsefalsefalsefalsefalse)
        dxDrawImage(979*px26*py352*px161*py"hud/"..tonumber(tostring(getPedWeapon(localPlayer)) or 0).. ".png")
        dxDrawText("EUR:"1027*px70*py1241*px129*pytocolor(351670255), 1.50*pxplnfont"left""center"falsefalsefalsefalsefalse)
end


function CrazyRpgCommand()
                _G[CrazyRpgBoolean and "removeEventHandler" or "addEventHandler"]("onClientRender"rootCrazyRpgHud)
                CrazyRpgBoolean not CrazyRpgBoolean

        setPlayerHudComponentVisible("armour"CrazyRpgBoolean)
        setPlayerHudComponentVisible("clock",  CrazyRpgBoolean)
        setPlayerHudComponentVisible("health"CrazyRpgBoolean)
        setPlayerHudComponentVisible("money"CrazyRpgBoolean)
        setPlayerHudComponentVisible("vehicle_name"CrazyRpgBoolean)
        setPlayerHudComponentVisible("weapon"CrazyRpgBoolean)
end

addEventHandler("onClientResourceStart",resourceRoot,function()
    CrazyRpgCommand()
end)


addCommandHandler ("hud"CrazyRpgCommandbindKey "F3""down"CrazyRpgCommand)




Spr?buj tak

Podpis
Jedyny kontakt ze mną to PW forum

Kod:


local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-04-15, 15:15


Cobey







Wiek: 25
Na forum: 3302 dni
Posty: 86
Nick w MP: Anonimowa

Piwa: 285

Respekt: -9

Ostrzeżeń: 100%
Jurandovsky, pokazuje,tylko ze gdy klikne f3,schowa i klikne jeszcze raz,to juz nie pokazuje;/

Podpis
13.04.2018 [*] ArtWorld
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-04-15, 15:20


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3


local plnfont dxCreateFont("xd.ttf"15)

local sx,sy guiGetScreenSize()
local px,py = (sx/1366),(sy/768)

local CrazyRpgBoolean=false

function CrazyRpgHud()
        dxDrawImage(943*px0*py419*px252*py"hud.png"000tocolor(24311213200), false)
        dxDrawText(getPlayerName(localPlayer), 1005*px33*py1234*px73*pytocolor(255255255255), 1.00*pxplnfont"center""center"falsefalsefalsefalsefalse)
        dxDrawText(getPlayerMoney(localPlayer), 1006*px76*py1235*px116*pytocolor(255255255255), 1.00*pxplnfont"center""center"falsefalsefalsefalsefalse)
        dxDrawImage(979*px26*py352*px161*py"hud/"..tonumber(tostring(getPedWeapon(localPlayer)) or 0).. ".png")
        dxDrawText("EUR:"1027*px70*py1241*px129*pytocolor(351670255), 1.50*pxplnfont"left""center"falsefalsefalsefalsefalse)
end


function CrazyRpgCommand()
                _G[CrazyRpgBoolean and "removeEventHandler" or "addEventHandler"]("onClientRender"rootCrazyRpgHud)
                

        setPlayerHudComponentVisible("armour"CrazyRpgBoolean)
        setPlayerHudComponentVisible("clock",  CrazyRpgBoolean)
        setPlayerHudComponentVisible("health"CrazyRpgBoolean)
        setPlayerHudComponentVisible("money"CrazyRpgBoolean)
        setPlayerHudComponentVisible("vehicle_name"CrazyRpgBoolean)
        setPlayerHudComponentVisible("weapon"CrazyRpgBoolean)

       CrazyRpgBoolean not CrazyRpgBoolean
end

addEventHandler("onClientResourceStart",resourceRoot,function()
    CrazyRpgCommand()
end)


addCommandHandler ("hud"CrazyRpgCommandbindKey "F3""down"CrazyRpgCommand)


Teraz

Podpis
Jedyny kontakt ze mną to PW forum

Kod:


local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Postaw piwo autorowi tego posta
 

 
Tagi: hud-kłopocik
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » HUD-kłopocik Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

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
Dodaj temat do Ulubionych
Wersja do druku