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, 08:51


Cobey







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

Piwa: 286

Respekt: -9

Ostrzeżeń: 100%
Mam k?opot z hudem,aczkolwiek nie pokazuje mi hudu ani nic.
setPlayerHudComponentVisible("ammo", false)
setPlayerHudComponentVisible("armour", false)
setPlayerHudComponentVisible("clock",  false)
setPlayerHudComponentVisible("health", false)
setPlayerHudComponentVisible("money", false)
setPlayerHudComponentVisible("vehicle_name", false)
setPlayerHudComponentVisible("weapon", false)

local plnfont = dxCreateFont("xd.ttf", 15)

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

addEventHandler("onClientRender", root,
function CrazyRpgHud()
        dxDrawImage(943*px, 0*py, 419*px, 252*py, "hud.png", 0, 0, 0, tocolor(243, 11, 213, 200), false)
        dxDrawText(getPlayerName(localPlayer), 1005*px, 33*py, 1234*px, 73*py, tocolor(255, 255, 255, 255), 1.00*px, plnfont, "center", "center", false, false, false, false, false)
        dxDrawText(getPlayerMoney(localPlayer), 1006*px, 76*py, 1235*px, 116*py, tocolor(255, 255, 255, 255), 1.00*px, plnfont, "center", "center", false, false, false, false, false)
        dxDrawImage(979*px, 26*py, 352*px, 161*py, "hud/"..tostring(getPedWeapon(localPlayer)).. ".png")
        dxDrawText("EUR:", 1027*px, 70*py, 1241*px, 129*py, tocolor(35, 167, 0, 255), 1.50*px, plnfont, "left", "center", false, false, false, false, false)
    end
)

function CrazyRpgCommand()
    if CrazyRpgHudBoolean == false then
        setPlayerHudComponentVisible("armour", false)
        setPlayerHudComponentVisible("clock",  false)
        setPlayerHudComponentVisible("health", false)
        setPlayerHudComponentVisible("money", false)
        setPlayerHudComponentVisible("vehicle_name", false)
        setPlayerHudComponentVisible("weapon", false)
    addEventHandler("onClientRender", root, CrazyRpgHud)
    CrazyRpgBoolean=true
    else
        setPlayerHudComponentVisible("armour", true)
        setPlayerHudComponentVisible("clock",  true)
        setPlayerHudComponentVisible("health", true)
        setPlayerHudComponentVisible("money", true)
        setPlayerHudComponentVisible("vehicle_name", true)
        setPlayerHudComponentVisible("weapon", true)
    removeEventHandler("onClientRender", root, CrazyRpgHud)
    CrazyRpgBoolean=false
    end
end

addCommandHandler ("f3", CrazyRpgCommand, false) 


B??d w db3:
ERROR: Loading script failed: crpg-hud.lua:15: '(' expected near 'CrazyRpgHud'

Linijka 15:
function CrazyRpgHud()

Podpis
13.04.2018 [*] ArtWorld
Postaw piwo autorowi tego posta
 

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


Qwertick

Coming soon...






Wiek: 23
Na forum: 3718 dni
Posty: 472
Nick w MP: Qwertick

Piwa: 2727

Respekt: 215,8
Respekt: 215,8Respekt: 215,8

addEventHandler("onClientRender", root, function()
        dxDrawImage(943*px, 0*py, 419*px, 252*py, "hud.png", 0, 0, 0, tocolor(243, 11, 213, 200), false)
        dxDrawText(getPlayerName(localPlayer), 1005*px, 33*py, 1234*px, 73*py, tocolor(255, 255, 255, 255), 1.00*px, plnfont, "center", "center", false, false, false, false, false)
        dxDrawText(getPlayerMoney(localPlayer), 1006*px, 76*py, 1235*px, 116*py, tocolor(255, 255, 255, 255), 1.00*px, plnfont, "center", "center", false, false, false, false, false)
        dxDrawImage(979*px, 26*py, 352*px, 161*py, "hud/"..tostring(getPedWeapon(localPlayer)).. ".png")
        dxDrawText("EUR:", 1027*px, 70*py, 1241*px, 129*py, tocolor(35, 167, 0, 255), 1.50*px, plnfont, "left", "center", false, false, false, false, false)
    end
)


Podpis

Kontakt
Discord: Qwertick#1210

Postaw piwo autorowi tego posta
 

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


Cobey







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

Piwa: 286

Respekt: -9

Ostrzeżeń: 100%
Wercio., tylko ?e zobacz kod poni?ej,musi mie? nazwan? funkcje,inaczej chowanie hudu nie zadziala...

Podpis
13.04.2018 [*] ArtWorld
Postaw piwo autorowi tego posta
 

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


Kalizman







Wiek: 24
Na forum: 3792 dni
Posty: 1394

Piwa: 4624

Respekt: 358,8
Respekt: 358,8Respekt: 358,8Respekt: 358,8Respekt: 358,8


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

local plnfont = dxCreateFont("xd.ttf", 15)

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


function CrazyRpgHud()
        dxDrawImage(943*px, 0*py, 419*px, 252*py, "hud.png", 0, 0, 0, tocolor(243, 11, 213, 200), false)
        dxDrawText(getPlayerName(localPlayer), 1005*px, 33*py, 1234*px, 73*py, tocolor(255, 255, 255, 255), 1.00*px, plnfont, "center", "center", false, false, false, false, false)
        dxDrawText(getPlayerMoney(localPlayer), 1006*px, 76*py, 1235*px, 116*py, tocolor(255, 255, 255, 255), 1.00*px, plnfont, "center", "center", false, false, false, false, false)
        dxDrawImage(979*px, 26*py, 352*px, 161*py, "hud/"..tostring(getPedWeapon(localPlayer)).. ".png")
        dxDrawText("EUR:", 1027*px, 70*py, 1241*px, 129*py, tocolor(35, 167, 0, 255), 1.50*px, plnfont, "left", "center", false, false, false, false, false)
end

function CrazyRpgCommand()
    if CrazyRpgHudBoolean == false then
        setPlayerHudComponentVisible("armour", false)
        setPlayerHudComponentVisible("clock",  false)
        setPlayerHudComponentVisible("health", false)
        setPlayerHudComponentVisible("money", false)
        setPlayerHudComponentVisible("vehicle_name", false)
        setPlayerHudComponentVisible("weapon", false)
    addEventHandler("onClientRender", root, CrazyRpgHud)
    CrazyRpgBoolean=true
    else
        setPlayerHudComponentVisible("armour", true)
        setPlayerHudComponentVisible("clock",  true)
        setPlayerHudComponentVisible("health", true)
        setPlayerHudComponentVisible("money", true)
        setPlayerHudComponentVisible("vehicle_name", true)
        setPlayerHudComponentVisible("weapon", true)
    removeEventHandler("onClientRender", root, CrazyRpgHud)
    CrazyRpgBoolean=false
    end
end

addCommandHandler ("f3", CrazyRpgCommand, false) 


Postaw piwo autorowi tego posta
 

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


Cobey







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

Piwa: 286

Respekt: -9

Ostrzeżeń: 100%
Kalizman, Teraz nie pokazuje b??d?w i hudu;-;
klikam to f3 i nic

Podpis
13.04.2018 [*] ArtWorld
Postaw piwo autorowi tego posta
 

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


TeeNekk

Cienzaruwka :v






Wiek: 23
Na forum: 3351 dni
Posty: 264
Nick w MP: TeeNekk.

Piwa: 919

Respekt: 110,5
Respekt: 110,5


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

local plnfont = dxCreateFont("xd.ttf", 15)

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


function CrazyRpgHud()
        dxDrawImage(943*px, 0*py, 419*px, 252*py, "hud.png", 0, 0, 0, tocolor(243, 11, 213, 200), false)
        dxDrawText(getPlayerName(localPlayer), 1005*px, 33*py, 1234*px, 73*py, tocolor(255, 255, 255, 255), 1.00*px, plnfont, "center", "center", false, false, false, false, false)
        dxDrawText(getPlayerMoney(localPlayer), 1006*px, 76*py, 1235*px, 116*py, tocolor(255, 255, 255, 255), 1.00*px, plnfont, "center", "center", false, false, false, false, false)
        dxDrawImage(979*px, 26*py, 352*px, 161*py, "hud/"..tostring(getPedWeapon(localPlayer)).. ".png")
        dxDrawText("EUR:", 1027*px, 70*py, 1241*px, 129*py, tocolor(35, 167, 0, 255), 1.50*px, plnfont, "left", "center", false, false, false, false, false)
end
  CrazyRpgBoolean=false

function CrazyRpgCommand()
    if CrazyRpgHudBoolean == false then
        setPlayerHudComponentVisible("armour", false)
        setPlayerHudComponentVisible("clock",  false)
        setPlayerHudComponentVisible("health", false)
        setPlayerHudComponentVisible("money", false)
        setPlayerHudComponentVisible("vehicle_name", false)
        setPlayerHudComponentVisible("weapon", false)
    addEventHandler("onClientRender", root, CrazyRpgHud)
    CrazyRpgBoolean=true
    else
        setPlayerHudComponentVisible("armour", true)
        setPlayerHudComponentVisible("clock",  true)
        setPlayerHudComponentVisible("health", true)
        setPlayerHudComponentVisible("money", true)
        setPlayerHudComponentVisible("vehicle_name", true)
        setPlayerHudComponentVisible("weapon", true)
    removeEventHandler("onClientRender", root, CrazyRpgHud)
    CrazyRpgBoolean=false
    end
end

addCommandHandler ("hud", CrazyRpgCommand, false) 
bindKey ( "F3", "down", "hud")

dwa, pewnie nie chcia? ci si? odpali?, bo nie mia?a? bind'a pod f3 a komend?

Podpis
Pomogłem Ci
? Może zostawiłbyś za to piwko, lub respekt? Dzięki!
Mój projekt:
?
Postaw piwo autorowi tego posta
 

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


Cobey







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

Piwa: 286

Respekt: -9

Ostrzeżeń: 100%
TeeNekk, Zmieni?am na komende wczesniej i tez nie dzialalo ;x

Podpis
13.04.2018 [*] ArtWorld
Postaw piwo autorowi tego posta
 

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


TeeNekk

Cienzaruwka :v






Wiek: 23
Na forum: 3351 dni
Posty: 264
Nick w MP: TeeNekk.

Piwa: 919

Respekt: 110,5
Respekt: 110,5

"Cobey" napisał/a:

TeeNekk, Zmieni?am na komende wczesniej i tez nie dzialalo ;x


tylko, ?e tu jest bind... Kt?rego nie mia?a?...

Podpis
Pomogłem Ci
? Może zostawiłbyś za to piwko, lub respekt? Dzięki!
Mój projekt:
?
Postaw piwo autorowi tego posta
 

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


Cobey







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

Piwa: 286

Respekt: -9

Ostrzeżeń: 100%
TeeNekk, aa rozumiem,TeeNekk, Dalej nie wy?wietla tego hudu;x

Podpis
13.04.2018 [*] ArtWorld
Postaw piwo autorowi tego posta
 

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


TeeNekk

Cienzaruwka :v






Wiek: 23
Na forum: 3351 dni
Posty: 264
Nick w MP: TeeNekk.

Piwa: 919

Respekt: 110,5
Respekt: 110,5

debugscript 3?

Podpis
Pomogłem Ci
? Może zostawiłbyś za to piwko, lub respekt? Dzięki!
Mój projekt:
?
Postaw piwo autorowi tego posta
 

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


Cobey







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

Piwa: 286

Respekt: -9

Ostrzeżeń: 100%
TeeNekk, Brak

Podpis
13.04.2018 [*] ArtWorld
Postaw piwo autorowi tego posta
 

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


TeeNekk

Cienzaruwka :v






Wiek: 23
Na forum: 3351 dni
Posty: 264
Nick w MP: TeeNekk.

Piwa: 919

Respekt: 110,5
Respekt: 110,5



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

local plnfont = dxCreateFont("xd.ttf", 15)

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


function CrazyRpgHud()
        dxDrawImage(943*px, 0*py, 419*px, 252*py, "hud.png", 0, 0, 0, tocolor(243, 11, 213, 200), false)
        dxDrawText(getPlayerName(localPlayer), 1005*px, 33*py, 1234*px, 73*py, tocolor(255, 255, 255, 255), 1.00*px, plnfont, "center", "center", false, false, false, false, false)
        dxDrawText(getPlayerMoney(localPlayer), 1006*px, 76*py, 1235*px, 116*py, tocolor(255, 255, 255, 255), 1.00*px, plnfont, "center", "center", false, false, false, false, false)
        dxDrawImage(979*px, 26*py, 352*px, 161*py, "hud/"..tostring(getPedWeapon(localPlayer)).. ".png")
        dxDrawText("EUR:", 1027*px, 70*py, 1241*px, 129*py, tocolor(35, 167, 0, 255), 1.50*px, plnfont, "left", "center", false, false, false, false, false)
end
  CrazyRpgBoolean=false

function CrazyRpgCommand()
    if CrazyRpgHudBoolean == false then
        setPlayerHudComponentVisible("armour", false)
        setPlayerHudComponentVisible("clock",  false)
        setPlayerHudComponentVisible("health", false)
        setPlayerHudComponentVisible("money", false)
        setPlayerHudComponentVisible("vehicle_name", false)
        setPlayerHudComponentVisible("weapon", false)
    addEventHandler("onClientRender", root, CrazyRpgHud)
    CrazyRpgBoolean=true
    else
        setPlayerHudComponentVisible("armour", true)
        setPlayerHudComponentVisible("clock",  true)
        setPlayerHudComponentVisible("health", true)
        setPlayerHudComponentVisible("money", true)
        setPlayerHudComponentVisible("vehicle_name", true)
        setPlayerHudComponentVisible("weapon", true)
    removeEventHandler("onClientRender", root, CrazyRpgHud)
    CrazyRpgBoolean=false
    end
end

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


addCommandHandler ("hud", CrazyRpgCommand) 
bindKey ( "F3", "down", "hud")


Podpis
Pomogłem Ci
? Może zostawiłbyś za to piwko, lub respekt? Dzięki!
Mój projekt:
?
Postaw piwo autorowi tego posta
 

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


Mezo.

Mod-Team






Wiek: 25
Na forum: 3352 dni
Posty: 548
Nick w MP: Mezo

Piwa: 6085

Respekt: 517
Respekt: 517

Dalej jest b??d?

Podpis
- Na forum pomagam na miarę swoich możliwości, oraz bezpłatnie.
- Jeżeli potrzebujesz pomocy, pisz do mnie w prywatnej wiadomości, pomoc uzyskasz szybciej.
Współpraca - [email protected]


Użytkownik - 19.08.2017
GTAO MEMBER - 29.03.2019
Support-Team - 03.02.2019 - 07.05.2019
Moderator - 07.05.2019 - 02.08.2020
Mod-Team - 02.08.2020 - 25.03.2022

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
VaXo
Wysłany: 2018-04-15, 11:31


Cobey







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

Piwa: 286

Respekt: -9

Ostrzeżeń: 100%
Magneticy, Dalej.
TeeNekk, dalej nie wyswietla;x
brak bledow w db3

Podpis
13.04.2018 [*] ArtWorld
Postaw piwo autorowi tego posta
 

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


TeeNekk

Cienzaruwka :v






Wiek: 23
Na forum: 3351 dni
Posty: 264
Nick w MP: TeeNekk.

Piwa: 919

Respekt: 110,5
Respekt: 110,5

local plnfont = dxCreateFont("xd.ttf", 15)
local sx,sy = guiGetScreenSize()
local px,py = (sx/1366),(sy/768)

function CrazyRpgHud()
        dxDrawImage(943*px, 0*py, 419*px, 252*py, "hud.png", 0, 0, 0, tocolor(243, 11, 213, 200), false)
        dxDrawText(getPlayerName(localPlayer), 1005*px, 33*py, 1234*px, 73*py, tocolor(255, 255, 255, 255), 1.00*px, plnfont, "center", "center", false, false, false, false, false)
        dxDrawText(getPlayerMoney(localPlayer), 1006*px, 76*py, 1235*px, 116*py, tocolor(255, 255, 255, 255), 1.00*px, plnfont, "center", "center", false, false, false, false, false)
        dxDrawImage(979*px, 26*py, 352*px, 161*py, "hud/"..tostring(getPedWeapon(localPlayer)).. ".png")
        dxDrawText("EUR:", 1027*px, 70*py, 1241*px, 129*py, tocolor(35, 167, 0, 255), 1.50*px, plnfont, "left", "center", false, false, false, false, false)
end
  CrazyRpgBoolean=false
  
  addEventHandler("onClientResourceStart",resourceRoot,function()
    setPlayerHudComponentVisible("armour", false)
        setPlayerHudComponentVisible("clock",  false)
        setPlayerHudComponentVisible("health", false)
        setPlayerHudComponentVisible("money", false)
        setPlayerHudComponentVisible("vehicle_name", false)
        setPlayerHudComponentVisible("weapon", false)
    addEventHandler("onClientRender", root, CrazyRpgHud)
  CrazyRpgBoolean = true
  end)
  
  function CrazyRpgCommand()
    if CrazyRpgHudBoolean == false then
        setPlayerHudComponentVisible("armour", false)
        setPlayerHudComponentVisible("clock",  false)
        setPlayerHudComponentVisible("health", false)
        setPlayerHudComponentVisible("money", false)
        setPlayerHudComponentVisible("vehicle_name", false)
        setPlayerHudComponentVisible("weapon", false)
    addEventHandler("onClientRender", root, CrazyRpgHud)
    CrazyRpgBoolean=true
    else
        setPlayerHudComponentVisible("armour", true)
        setPlayerHudComponentVisible("clock",  true)
        setPlayerHudComponentVisible("health", true)
        setPlayerHudComponentVisible("money", true)
        setPlayerHudComponentVisible("vehicle_name", true)
        setPlayerHudComponentVisible("weapon", true)
    removeEventHandler("onClientRender", root, CrazyRpgHud)
    CrazyRpgBoolean=false
    end
end

addCommandHandler ("hud", CrazyRpgCommand) 
bindKey ( "F3", "down", "hud")


Podpis
Pomogłem Ci
? Może zostawiłbyś za to piwko, lub respekt? Dzięki!
Mój projekt:
?
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 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