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

Wysłany: 2018-11-15, 19:22


AkossPL







Wiek: 25
Na forum: 4221 dni
Posty: 140
Nick w MP: AkossPL

Piwa: 3

Respekt: 50

Siema tak jak w temacie za pomoc postawie piwsko

addEventHandler("onClientRender", root, function()
    local nick = getPlayerName(localPlayer)
    local premium = getElementData(localPlayer, "player:premium")
    local zegar_h, zegar_m = getRealTime().hour, getRealTime().minute
    local pln = getPlayerMoney(localPlayer)
    local uid = getElementData(localPlayer,"player:uid")

    local status = nil

    if premium then
        status = "(Premium)"
    else
        status = ""
    end

        dxDrawImage(screenW * 0.6881, screenH * -0.0111, screenW * 0.300, screenH * 0.390, "img/hud.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
    dxDrawText(getWeaponNameFromID(getPedWeapon(localPlayer)), 1243, 100, 1366, 128, tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "center", false) -- bronie
    dxDrawText(string.gsub(nick, "#%x%x%x%x%x%x", "") .. status, screenW * 0.74, screenH * 0.06, screenW * 0.300, screenH * 0.306, tocolor(0, 0, 0, 255), 1.00, font, "center", "center", false) -- nick
    dxDrawText(string.format("%02d:%02d", zegar_h, zegar_m), 1055, 60, 1250, 132, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false) -- zegar
    dxDrawText(string.format(""..przecinkiAdd(pln).." PLN"), 1055, 105, 1250, 172, tocolor(14, 110, 33, 255), 1.50, "default-bold", "center", "center", false) -- waluta PLN
    
    -- inne

    dxDrawText(""..uid, 5, 750, 70, 777, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)

end)


Ostatnio zmieniony przez AkossPL 2018-11-15, 19:39, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-11-15, 19:35


Avenged

Młodszy Szkrypter






Wiek: 24
Na forum: 3651 dni
Posty: 654
Nick w MP: Avenged

Piwa: 1572

Respekt: 326,3
Respekt: 326,3Respekt: 326,3Respekt: 326,3

    dxDrawText(""..string.gsub(nick, "#%x%x%x%x%x%x", "").." "..status.."", screenW * 0.74, screenH * 0.06, screenW * 0.300, screenH * 0.306, tocolor(0, 0, 0, 255), 1.00, font, "center", "center", false) -- nick

Powinno by? dobrze

Podpis
LUA, JS, PHP



Zapraszam do skorzystania z moich usług: Klik

Postaw piwo autorowi tego posta
 

 
Tagi: nie :: działa :: nick :: gracza :: hud
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Nie działa nick gracza w hud 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