Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Spieler finden
- -- Beim Start alles rendern
- addEventHandler("onClientRender",getRootElement(), function()
- localplayer = getLocalPlayer ( )
- -- Allgemeine Variabeln
- if getElementHealth ( localplayer ) >= 1 then
- local leben = getElementHealth ( localplayer )
- local lunge = getPedOxygenLevel ( localplayer )
- local hungeranzeige = getElementHunger ( )
- local wantedsP = getElementData ( localPlayer, "wanteds" )
- local pgeld = mymoney
- local sx, sy = guiGetScreenSize()
- local px, py = 1920, 1080
- local x,y = (sx/px), (sy/py)
- local stunde, minute = getTime()
- if minute < 10 then minute = tostring("0"..minute) end
- if stunde < 10 then stunde = tostring("0"..stunde) end
- clip = getPedAmmoInClip ( localplayer )
- ammo = getPedTotalAmmo ( localplayer )
- waffe = getPedWeapon ( localplayer )
- magazin = getPedAmmoInClip ( localplayer )
- namewap = getWeaponNameFromID ( waffe )
- local armor = getPedArmor ( localplayer )
- setPlayerHudComponentVisible("clock",false)
- setPlayerHudComponentVisible("breath",false)
- setPlayerHudComponentVisible("armour",false)
- setPlayerHudComponentVisible("health",false)
- setPlayerHudComponentVisible("money",false)
- setPlayerHudComponentVisible("ammo",false)
- setPlayerHudComponentVisible("weapon",false)
- setPlayerHudComponentVisible("wanted",false)
- -- HUD Basis
- --if sx == 1920 and sy == 1080 then
- dxDrawRectangle(x*1574, y*44, x*275, y*170, tocolor(1, 0, 0, 185), true)
- dxDrawText("", x*1544+5, y*60+5, x*1726, y*80, tocolor(0, 0, 0, 255), x*1.00, "default-bold", "center", "center", false, false, true, false, false)
- dxDrawText("", x*1544+5, y*58+5, x*1726, y*78, tocolor(0, 0, 0, 255), x*1.00, "default-bold", "center", "center", false, false, true, false, false)
- dxDrawText("", x*1542+5, y*60+5, x*1724, y*80, tocolor(0, 0, 0, 255), x*1.00, "default-bold", "center", "center", false, false, true, false, false)
- dxDrawText("", x*1542+5, y*58+5, x*1724, y*78, tocolor(0, 0, 0, 255), x*1.00, "default-bold", "center", "center", false, false, true, false, false)
- dxDrawText("", x*1543+5, y*59+5, x*1725, y*79, tocolor(255, 255, 255, 255), x*1.00, "default-bold", "center", "center", false, false, true, false, false)
- dxDrawRectangle(x*1595, y*88, x*208+4, y*18+4, tocolor(0, 0, 0, 255), true)
- dxDrawImage(x*1596+2, y*89+2, x*206, y*16, "images/hud/armourBG.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- dxDrawRectangle(x*1595, y*140, x*208+4, y*18+4, tocolor(0, 0, 0, 255), true)
- dxDrawImage(x*1596+2, y*141+2, x*206, y*16, "images/hud/hungerBG.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- dxDrawRectangle(x*1595, y*114, x*208+4, y*18+5, tocolor(0, 0, 0, 255), true)
- dxDrawImage(x*1596+2, y*115+2, x*206, y*16, "images/hud/healthBG.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- dxDrawImage(x*1812, y*89, x*16, y*16, "images/hud/armour.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- dxDrawImage(x*1812, y*115, x*16, y*16, "images/hud/health.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- dxDrawImage(x*1812, y*59+5, x*16, y*16, "images/hud/time.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- dxDrawImage(x*1815, y*172.5+5, x*14, y*16, "images/hud/money.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- -- Geld Nullen
- local geldlaenge = string.len(pgeld)
- local targetlaenge = 8-tonumber(geldlaenge)
- local geldnullen = ""
- for i = 1, targetlaenge, 1 do
- geldnullen = tostring(geldnullen.."0")
- end
- local geld = tostring(geldnullen..""..pgeld)
- -- Geld Anzeige
- dxDrawText("$"..geld, x*1516, y*158+10, x*1885, y*206, tocolor(0, 0, 0, 255), x*1.86, "pricedown", "center", "center", false, false, true, false, false)
- dxDrawText("$"..geld, x*1516, y*156+10, x*1885, y*204, tocolor(0, 0, 0, 255), x*1.86, "pricedown", "center", "center", false, false, true, false, false)
- dxDrawText("$"..geld, x*1514, y*158+10, x*1883, y*206, tocolor(0, 0, 0, 255), x*1.86, "pricedown", "center", "center", false, false, true, false, false)
- dxDrawText("$"..geld, x*1514, y*156+10, x*1883, y*204, tocolor(0, 0, 0, 255), x*1.86, "pricedown", "center", "center", false, false, true, false, false)
- dxDrawText("$"..geld, x*1515, y*157+10, x*1884, y*205, tocolor(228, 227, 227, 254), x*1.86, "pricedown", "center", "center", false, false, true, false, false)
- -- Uhrzeit
- dxDrawText(stunde..":"..minute, x*1770, y*60+5, x*1803, y*70, tocolor(0, 0, 0, 255), x*1.00, "default", "left", "top", false, false, true, false, false)
- dxDrawText(stunde..":"..minute, x*1770, y*58+5, x*1803, y*68, tocolor(0, 0, 0, 255), x*1.00, "default", "left", "top", false, false, true, false, false)
- dxDrawText(stunde..":"..minute, x*1768, y*60+5, x*1801, y*70, tocolor(0, 0, 0, 255), x*1.00, "default", "left", "top", false, false, true, false, false)
- dxDrawText(stunde..":"..minute, x*1768, y*58+5, x*1801, y*68, tocolor(0, 0, 0, 255), x*1.00, "default", "left", "top", false, false, true, false, false)
- dxDrawText(stunde..":"..minute, x*1769, y*59+5, x*1802, y*69, tocolor(255, 255, 255, 255), x*1.00, "default", "left", "top", false, false, true, false, false)
- -- Waffe
- dxDrawImage(x*1482-10, y*44, x*82, y*87, tostring("images/weapons/"..waffe..".png"), 0, 0, 0, tocolor(255, 255, 255, 255), true)
- --Munition
- if waffe ~= 0 then
- if waffe ~= 1 then
- if waffe ~= 2 then
- if waffe ~= 3 then
- if waffe ~= 4 then
- if waffe ~= 5 then
- if waffe ~= 6 then
- if waffe ~= 7 then
- if waffe ~= 8 then
- if waffe ~= 9 then
- if waffe ~= 10 then
- if waffe ~= 11 then
- if waffe ~= 12 then
- if waffe ~= 14 then
- if waffe ~= 15 then
- if waffe ~= 40 then
- if waffe ~= 46 then
- if waffe ~= 44 then
- if waffe ~= 45 then
- dxDrawText(magazin.." / "..ammo-magazin, x*1488-20, y*122, x*1565, y*166, tocolor(0, 0, 0, 255), x*1.20, "pricedown", "center", "center", false, false, true, false, false)
- dxDrawText(magazin.." / "..ammo-magazin, x*1488-20, y*120, x*1565, y*164, tocolor(0, 0, 0, 255), x*1.20, "pricedown", "center", "center", false, false, true, false, false)
- dxDrawText(magazin.." / "..ammo-magazin, x*1486-20, y*122, x*1563, y*166, tocolor(0, 0, 0, 255), x*1.20, "pricedown", "center", "center", false, false, true, false, false)
- dxDrawText(magazin.." / "..ammo-magazin, x*1486-20, y*120, x*1563, y*164, tocolor(0, 0, 0, 255), x*1.20, "pricedown", "center", "center", false, false, true, false, false)
- dxDrawText(magazin.." / "..ammo-magazin, x*1487-20, y*121, x*1564, y*165, tocolor(228, 227, 227, 254), x*1.20, "pricedown", "center", "center", false, false, true, false, false)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- -- Leben
- dxDrawRectangle(x*1596+2, y*115+2, x*206/100*leben, y*8, tocolor(75, 176, 0, 255), true)
- dxDrawRectangle(x*1596+2, y*115+10, x*206/100*leben, y*8, tocolor(58, 143, 0, 255), true)
- --dxDrawImage(x*1596+2, y*115+2, x*206/100*leben, y*16, "images/hud/healthbar.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- -- Weste
- dxDrawRectangle(x*1596+2, y*89+2, x*206/100*armor, y*8, tocolor(10, 156, 183, 255), true)
- dxDrawRectangle(x*1596+2, y*89+10, x*206/100*armor, y*8, tocolor(8, 121, 153, 255), true)
- --dxDrawImage(x*1596+2, y*89+2, x*206/100*armor, y*16, "images/hud/armourbar.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- -- Hunger
- dxDrawRectangle(x*1596+2, y*141+2, x*206/100*hungeranzeige, y*8, tocolor(226, 199, 0, 255), true)
- dxDrawRectangle(x*1596+2, y*141+10, x*206/100*hungeranzeige, y*8, tocolor(214, 176, 0, 255), true)
- --dxDrawImage(x*1596+2, y*141+2, x*206/100*hungeranzeige, y*16, "images/hud/hungerbar.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- -- Lunge
- if isElementInWater(localplayer) and lunge <= 1000 then
- dxDrawRectangle(x*1595, y*140, x*208+4, y*18+4, tocolor(0, 0, 0, 255), true)
- dxDrawImage(x*1596+2, y*141+2, x*206, y*16,"images/hud/lungenBG.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- hungericon = dxDrawImage(x*1812, y*141, x*16, y*16, "images/hud/air.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- if lunge <= 1000 then
- dxDrawRectangle(x*1596+2, y*141+2, x*206/1000*lunge, y*8, tocolor(255, 115, 0, 255), true)
- dxDrawRectangle(x*1596+2, y*141+10, x*206/1000*lunge, y*8, tocolor(255, 96, 0, 255), true)
- --dxDrawImage(x*1596+2, y*141+2, x*206/1000*lunge, y*16, "images/hud/lungenbar.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- else
- dxDrawRectangle(x*1596+2, y*141+2, x*206/1000*lunge, y*8, tocolor(255, 115, 0, 255), true)
- dxDrawRectangle(x*1596+2, y*141+10, x*206/1000*lunge, y*8, tocolor(255, 96, 0, 255), true)
- --dxDrawImage(x*1596+2, y*141+2, x*206/1000*lunge, y*16, "images/hud/lungenbar.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- end
- else
- hungericon = dxDrawImage(x*1812, y*141, x*16, y*16, "images/hud/hunger.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- end
- -- Wanteds
- if wantedsP == 1 then
- wantedP1 = dxDrawImage(x*1809, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP2 = dxDrawImage(x*1762, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP3 = dxDrawImage(x*1715, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP4 = dxDrawImage(x*1668, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP5 = dxDrawImage(x*1621, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP6 = dxDrawImage(x*1574, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- elseif wantedsP == 2 then
- wantedP1 = dxDrawImage(x*1809, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP2 = dxDrawImage(x*1762, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP3 = dxDrawImage(x*1715, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP4 = dxDrawImage(x*1668, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP5 = dxDrawImage(x*1621, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP6 = dxDrawImage(x*1574, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- elseif wantedsP == 3 then
- wantedP1 = dxDrawImage(x*1809, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP2 = dxDrawImage(x*1762, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP3 = dxDrawImage(x*1715, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP4 = dxDrawImage(x*1668, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP5 = dxDrawImage(x*1621, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP6 = dxDrawImage(x*1574, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- elseif wantedsP == 4 then
- wantedP1 = dxDrawImage(x*1809, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP2 = dxDrawImage(x*1762, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP3 = dxDrawImage(x*1715, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP4 = dxDrawImage(x*1668, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP5 = dxDrawImage(x*1621, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP6 = dxDrawImage(x*1574, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- elseif wantedsP == 5 then
- wantedP1 = dxDrawImage(x*1809, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP2 = dxDrawImage(x*1762, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP3 = dxDrawImage(x*1715, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP4 = dxDrawImage(x*1668, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP5 = dxDrawImage(x*1621, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP6 = dxDrawImage(x*1574, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- elseif wantedsP == 6 then
- wantedP1 = dxDrawImage(x*1809, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP2 = dxDrawImage(x*1762, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP3 = dxDrawImage(x*1715, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP4 = dxDrawImage(x*1668, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP5 = dxDrawImage(x*1621, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP6 = dxDrawImage(x*1574, y*219, x*30, y*30, "images/hud/wanted_active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- else
- wantedP1 = dxDrawImage(x*1809, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP2 = dxDrawImage(x*1762, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP3 = dxDrawImage(x*1715, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP4 = dxDrawImage(x*1668, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP5 = dxDrawImage(x*1621, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- wantedP6 = dxDrawImage(x*1574, y*219, x*30, y*30, "images/hud/wanted_inactive.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- end
- -- Prozentzahlen
- --dxDrawText(round(armor).."%", x*1596, y*90+2, x*1803, y*106, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- -- dxDrawText(round(armor).."%", x*1596, y*88+2, x*1803, y*104, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- --dxDrawText(round(armor).."%", x*1594, y*90+2, x*1801, y*106, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- -- dxDrawText(round(armor).."%", x*1594, y*88+2, x*1801, y*104, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- dxDrawText(round(armor).."%", x*1595, y*89+5, x*1802, y*105, tocolor(255, 255, 255, 255), x*1.00, "default-bold", "center", "center", false, false, true, false, false)
- --dxDrawText(round(leben).."%", x*1596, y*115+3, x*1803, y*131, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- -- dxDrawText(round(leben).."%", x*1596, y*113+3, x*1803, y*129, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- --dxDrawText(round(leben).."%", x*1594, y*115+3, x*1801, y*131, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- -- dxDrawText(round(leben).."%", x*1594, y*113+3, x*1801, y*129, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- dxDrawText(round(leben).."%", x*1595, y*114+8, x*1802, y*130, tocolor(255, 255, 255, 255), x*1.00, "default-bold", "center", "center", false, false, true, false, false)
- -- Hunger / Lunge Wechsel
- lungeP = round ( lunge / 10 )
- if isElementInWater(localplayer) and lungeP <= 100 then
- hungericon = dxDrawImage(x*1812, y*141, x*16, y*16+2, "images/hud/air.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- --prozent1 = dxDrawText(round(lunge).."%", x*1596, y*142+2, x*1803, y*158, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- --prozent2 = dxDrawText(round(lunge).."%", x*1596, y*140+2, x*1803, y*156, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- --prozent3 = dxDrawText(round(lunge).."%", x*1594, y*142+2, x*1801, y*158, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- --prozent4 = dxDrawText(round(lunge).."%", x*1594, y*140+2, x*1801, y*156, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- prozent5 = dxDrawText(lungeP.."%", x*1595, y*141+5, x*1802, y*157, tocolor(255, 255, 255, 255), x*1.00, "default-bold", "center", "center", false, false, true, false, false)
- else
- hungericon = dxDrawImage(x*1812, y*141+2, x*16, y*16, "images/hud/hunger.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
- --prozent1 = dxDrawText(round(hungeranzeige).."%", x*1596, y*142+2, x*1803, y*158, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- --prozent2 = dxDrawText(round(hungeranzeige).."%", x*1596, y*140+2, x*1803, y*156, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- --prozent3 = dxDrawText(round(hungeranzeige).."%", x*1594, y*142+2, x*1801, y*158, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- --prozent4 = dxDrawText(round(hungeranzeige).."%", x*1594, y*140+2, x*1801, y*156, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, true, false, false)
- prozent5 = dxDrawText(round(hungeranzeige).."%", x*1595, y*141+5, x*1802, y*157, tocolor(255, 255, 255, 255), x*1.00, "default-bold", "center", "center", false, false, true, false, false)
- end
- --else
- --end
- isHudEnabled = false
- addCommandHandler("customhud", function()
- if not isHudEnabled then
- isHudEnabled = true
- addEventHandler("onClientRender", root, createCustomHud)
- setPlayerHudComponentVisible("clock",false)
- setPlayerHudComponentVisible("breath",false)
- setPlayerHudComponentVisible("armour",false)
- setPlayerHudComponentVisible("health",false)
- setPlayerHudComponentVisible("money",false)
- setPlayerHudComponentVisible("ammo",false)
- setPlayerHudComponentVisible("weapon",false)
- setPlayerHudComponentVisible("wanted",false)
- else
- isHudEnabled = false
- removeEventHandler("onClientRender", root, onClientRender)
- setPlayerHudComponentVisible("clock",true)
- setPlayerHudComponentVisible("breath",true)
- setPlayerHudComponentVisible("armour",true)
- setPlayerHudComponentVisible("health",true)
- setPlayerHudComponentVisible("money",true)
- setPlayerHudComponentVisible("ammo",true)
- setPlayerHudComponentVisible("weapon",true)
- setPlayerHudComponentVisible("wanted",true)
- end
- end)
- end
- end
- )
Add Comment
Please, Sign In to add comment