Huhu,
habe ein Problem zum HUD,
wenn ich mich einlogge, soll das HUD erscheinen aber es erscheint nicht =(
Hier einmal wo der login definiert wird:
Spoiler anzeigen
Lua
function spawnThePlayer ( player,new )
setElementData(player,"Morde",getMysqlData(player,"Morde"))
setElementData(player,"Tode",getMysqlData(player,"Tode"))
setElementData(player,"Job",getMysqlData(player,"Job"))
setElementData(player,"Fraktion",getMysqlData(player,"Fraktion"))
setElementData(player,"Rang",getMysqlData(player,"Rang"))
setPlayerMoney(player,getMysqlData(player,"Geld"))
setElementData(player,"Bankgeld",getMysqlData(player,"Bankgeld"))
setElementData(player,"Playtime",getMysqlData(player,"Spielzeit"))
setElementData(player,"Skinid",getMysqlData(player,"Skinid"))
setElementData(player,"GWD",getMysqlData(player,"GWD"))
setElementData(player,"STVO",getMysqlData(player,"STVO"))
setElementData(player,"Wanteds",getMysqlData(player,"Wanteds"))
setElementData(player,"Warnungen",getMysqlData(player,"Warnungen"))
setElementData(player,"Paekchen",getMysqlData(player,"Paekchen"))
setElementData(player,"Grafittis",getMysqlData(player,"Grafittis"))
setElementData(player,"Gloops",getMysqlData(player,"Gloops"))
setElementData(player,"Premiumpunkte",getMysqlData(player,"Premiumpunkte"))
setElementData(player,"Adminlevel",getMysqlData(player,"Adminlevel"))
setElementData(player,"Flugschein",getMysqlData(player,"Flugschein"))
setElementData(player,"isLoggedIn",true)
local Skinid = getElementData(player,"Skinid")
if new == true then
spawnPlayer(player,-1421.3000488281,-287.29998779297,14.10000038147,0,Skinid)
setElementData(player,"Job","Arbeitslos")
setElementData(player,"Fraktion","Zivilist")
setElementData(player,"Flugschein","Nein")
else
spawnPlayer(player,-2028.47839,455.40884399,35.17229461,0,Skinid)
end
fadeCamera(player,true)
setCameraTarget(player,player)
refreshTime(player)
_G["onlineTimer"..getPlayerName(player)] = setTimer(giveTimePlayer,60000,-1,player)
end
Alles anzeigen
Und einmal vom HUD:
Spoiler anzeigen
Lua
function hudChange ()
if getElementData(getLocalPlayer(),"isLoggedIn") == true then
showPlayerHudComponent ( "armour", false )
showPlayerHudComponent ( "health", false )
showPlayerHudComponent ( "money", false )
showPlayerHudComponent ( "clock", false )
showPlayerHudComponent ( "weapon", false )
showPlayerHudComponent ( "ammo", false )
showPlayerHudComponent ( "money", false )
showPlayerHudComponent ( "wanted", false )
addEventHandler("onClientRender", getRootElement(), DXdraw)
end
end
addEventHandler( "onPlayerJoin", resourceroot, hudChange )
Alles anzeigen
hoffe, dass mir jemand helfen könnte, bekomm es seit Stunden nicht hin deshalb hab ich mich entschieden hier mal nachzufragen.