Weis einer von euch wo sich die Abfrage befindet also die die feststellt ob so und so viel im Kofferraum sind?...
bzw. ich kann unendlich Koks entnehmen ist aber nur ein Anzeige Bug da es ins - geht.
&habe eine Hud funktion von @Mirko: undzwar ist da das Problem wenn man "B" gedrückt hält versteckt es sich und wenn man es los lässt ist es wieder
da jedoch will ich das es nur switcht also es sich an und aus schaltet
Spoiler anzeigen
Lua
function hide ()
showPlayerHudComponent ( "ammo", true )
showPlayerHudComponent ( "weapon", true )
showPlayerHudComponent ( "health", true )
showPlayerHudComponent ( "armour", true )
showPlayerHudComponent ( "money", true )
showPlayerHudComponent ( "area_name", true )
showPlayerHudComponent ( "clock", true )
bindKey("b", "both", show)
end
addEventHandler ( "onClientResourceStart", resourceRoot, hide)
function show ( key, state )
if state == "up" then
showPlayerHudComponent ( "ammo", true )
showPlayerHudComponent ( "weapon", true )
showPlayerHudComponent ( "health", true )
showPlayerHudComponent ( "armour", true )
showPlayerHudComponent ( "money", true )
showPlayerHudComponent ( "area_name", true )
showPlayerHudComponent ( "clock", true )
showHungerBar()
end
if state == "down" then
showPlayerHudComponent ( "ammo", false )
showPlayerHudComponent ( "weapon", false )
showPlayerHudComponent ( "health", false )
showPlayerHudComponent ( "armour", false )
showPlayerHudComponent ( "money", false )
showPlayerHudComponent ( "area_name", false )
showPlayerHudComponent ( "clock", false )
hideHungerBar()
end
end
Alles anzeigen
Mit freundlichen Grüßen
- Florian