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

Wysłany: 2018-02-08, 07:40


Kuksss

guwno






Wiek: 22
Na forum: 3781 dni
Posty: 102
Nick w MP: guwnp

Piwa: 732

Respekt: 70,5

Ostrzeżeń: 100%
Siema, mam dzisiaj problem z hudem, chodzi o to, ?e gdy jestem na rozdzielczo?ci, pod kt?r? robiony by? HUD wszystko jest ok, ale gdy zmieni? rozdzielczo?? na ni?sz? grafika HUD'u wygl?da normalnie, ale napisy ju? nie.
SS:
Z g?ry dzi?kuj?, za pomoc stawiam :piwo: i R*

Kod:
setPlayerHudComponentVisible("ammo"false)
setPlayerHudComponentVisible("armour"false)
setPlayerHudComponentVisible("clock",  false)
setPlayerHudComponentVisible("health"false)
setPlayerHudComponentVisible("money"false)
setPlayerHudComponentVisible("vehicle_name"false)
setPlayerHudComponentVisible("weapon"false)

bindKey("f11""down", function()
    if map == true then
        map false
        setElementData(localPlayer"hud:enabled"true)
        showChat(true)
        showPlayerHudComponent("all"false)
        showPlayerHudComponent("radar"true)
        showPlayerHudComponent("crosshair"true)
    else
        map true
        setElementData(localPlayer"hud:enabled"false)
        showChat(false)
        showPlayerHudComponent("all"false)
    end
end)

local czciona dxCreateFont("font.ttf"20)

local screenWscreenH guiGetScreenSize()

addEventHandler("onClientRender"root,
    function()
    if not getElementData(localPlayer"hud:enabled"falsethen return end
        dxDrawImage(screenW 0.0000screenH 0.0000screenW 1.0000screenH 1.0000":mr-hud/hud.png"000tocolor(255255255255), false)
        dxDrawText(getPlayerMoney(localPlayer), screenW 0.03screenH 0.9676screenW 0.1031screenH 0.9944tocolor(255255255255), 0.80czciona"left""top"falsefalsefalsefalsefalse)
        dxDrawText(string.format("%.0f"getElementHealth(localPlayer)), screenW 0.1411screenH 0.9657screenW 0.1922screenH 0.9944tocolor(255255255255), 1.00czciona"left""top"falsefalsefalsefalsefalse)
        dxDrawText(getElementData(localPlayer"player:reputation"), screenW 0.2099screenH 0.9639screenW 0.2865screenH 0.9907tocolor(255255255255), 1.00czciona"left""top"falsefalsefalsefalsefalse)
    end
)


Podpis
c***
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-02-08, 11:12


jagoreq







Wiek: 24
Na forum: 3221 dni
Posty: 221
Nick w MP: dwd

Piwa: 18

Respekt: 66,3

Ostrzeżeń: 20%
Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
Kuksss
Tagi: niedopasowany :: dxdrawtext
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA 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