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: showplayerhudcomponentvisible
1. A nil value przy ShowPlayerHudComponentVisible
Siema, mam problemik, gdy? zrobi?em testowy hud a mam problem z podana w nazwie funkcj?.
Tu macie kod i b??d:
B??D: attempt to call 'ShowPlayerHudComponentVisible' (a nil value)

Kod:

hud
={}
czescihuda={
    {
"ammo","armour","clock","health","money","weapon","wanted"}
}

hud.font=dxCreateFont("font.ttf",15,false,"antialiased")
hud.font2=dxCreateFont("font.ttf",20,false,"antialiased")
hud.font3=dxCreateFont("font.ttf",20,false,"antialiased")
hud.font4=dxCreateFont("font.ttf",15,false,"antialiased")



addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),function()
    for 
i=1,#czescihuda[1] do
        
showPlayerHudComponentVisible(czescihuda[1][i], false)
    
end
end
)