Best-Killer1 Posted September 9, 2015 Posted September 9, 2015 I have problem in Hud help me pls Ammo not showing local newFont = dxCreateFont( "font/font.ttf", 15 ) local newFont2 = dxCreateFont( "font/font.ttf", 9 ) local newFont3 = dxCreateFont( "font/font.ttf", 24 ) local LOCAL_PLAYER = getLocalPlayer() pos = getElementPosition(LOCAL_PLAYER) showPlayerHudComponent("radar",true) showPlayerHudComponent ("weapon", false ) showPlayerHudComponent ( "ammo", true ) showPlayerHudComponent ("vehicle_name", false ) function dxtest() local playerX, playerY, playerZ = getElementPosition( LOCAL_PLAYER ) -- Get player's coordinates. local playerZoneName = getZoneName( playerX, playerY, playerZ ) local health = string.format("%03d", (getElementHealth(LOCAL_PLAYER))) local armor = math.floor (getPedArmor(LOCAL_PLAYER)) local stat = getPedStat(LOCAL_PLAYER,24) local time = getRealTime() local hr,mins = getTime() local time3 = hr..":"..(((mins <10) and "0"..mins) or mins) local hours = time.hour local minutes = time.minute local sWidth,sHeight = guiGetScreenSize() dxDrawImage((740/1024)*sWidth, (8/768)*sHeight, (283/1024)*sWidth, (120/768)*sHeight, "outras/background.png",0,0,0,tocolor(0,0,0,255)) dxDrawImage((868/1024)*sWidth, (60/768)*sHeight, (148/1024)*sWidth, (38/768)*sHeight, "outras/background.png",0,0,0,tocolor(255,255,255,255)) dxDrawImage((873/1024)*sWidth, (63/768)*sHeight, (22/1024)*sWidth, (33/768)*sHeight, "outras/$.png",0,0,0,tocolor(255,255,255,255)) dxDrawImage((765/1024)*sWidth, (25/768)*sHeight, (85/1024)*sWidth, (85/768)*sHeight, "img/"..getPedWeapon(getLocalPlayer())..".png") local moneycount = getPlayerMoney(getLocalPlayer()) local money = ' ' ..moneycount -- Money dxDrawText(tostring (money),(886/1024)*sWidth, (63/768)*sHeight, (310/1024)*sWidth, (60/768)*sHeight, tocolor(255,255,255,255), (sWidth/1024)*1.10, newFont,"left","top",false,false,false) dxDrawText("SAEG:RPG",(910/1024)*sWidth, (98/768)*sHeight, (310/1024)*sWidth, (135/768)*sHeight, tocolor(0,102,0,255), (sWidth/1000)*1.25, newFont2,"left","top",false,false,false) --dxDrawText("000",(900/1024)*sWidth, (13/768)*sHeight, (310/1024)*sWidth, (60/768)*sHeight, tocolor(255,255,255,150), (sWidth/1024)*0.90, newFont3,"left","top",false,false,false) dxDrawText(tostring (armor).." %",(875/1024)*sWidth, (24/768)*sHeight, (310/1024)*sWidth, (60/768)*sHeight, tocolor(255,255,255,255), (sWidth/1024)*0.40, newFont3,"left","top",false,false,false) dxDrawImage((845.7/1024)*sWidth, (24/768)*sHeight, (30/1024)*sWidth, (20/768)*sHeight, "outras/armor.png") dxDrawText(tostring (health).." %",(950/1024)*sWidth, (19/768)*sHeight, (310/1024)*sWidth, (60/768)*sHeight, tocolor(255,255,255,255), (sWidth/1024)*0.60, newFont3,"left","top",false,false,false) dxDrawImage((920.7/1024)*sWidth, (19/768)*sHeight, (30/1024)*sWidth, (30/768)*sHeight, "outras/HP.png") --dxDrawText(tostring (armor).." %",(906/1024)*sWidth, (73/768)*sHeight, (310/1024)*sWidth, (60/768)*sHeight, tocolor(255,255,255,255), (sWidth/1024)*0.90, "pricedown","left","top",false,false,false) --dxDrawText(time3,(875/1024)*sWidth, (30/768)*sHeight, (310/1024)*sWidth, (60/768)*sHeight, tocolor(255,255,0,255), (sWidth/1024)*1.20, "pricedown","left","top",false,false,false) --dxDrawText("r$: "..money,(800/1024)*sWidth, (140/768)*sHeight, (310/1024)*sWidth, (60/768)*sHeight, tocolor(34,178,170,255), (sWidth/1024)*1.10, "pricedown","left","top",false,false,false) end addEventHandler("onClientRender",getRootElement(), dxtest) root = getResourceRootElement() function changeit() showPlayerHudComponent("money",false) showPlayerHudComponent("area_name",false) showPlayerHudComponent("health",false) showPlayerHudComponent("clock",false) showPlayerHudComponent("armour",false) showPlayerHudComponent("oxygen",false) end addEventHandler("onClientResourceStart",root, changeit) function inCar() triggerEvent("onEnter",getLocalPlayer(),inCar) end addEventHandler("onClientVehicleEnter",getRootElement(),inCar) function outOfCar() removeEventHandler("onEnter",getLocalPlayer(),outOfCar) end addEventHandler("onClientVehicleExit",getRootElement(),outOfCar) function carHealth() local sWidth,sHeight = guiGetScreenSize() if isPedInVehicle(getLocalPlayer()) then vehicle = getPedOccupiedVehicle(getLocalPlayer()) health = math.ceil(getElementHealth(vehicle) / 10) speedx, speedy, speedz = getElementVelocity ( vehicle) actualspeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) kmh = math.ceil(actualspeed * 180) end end addEvent("onEnter",true) addEventHandler("onEnter",getRootElement(),carHealth) addEventHandler("onClientRender",getRootElement(),carHealth) if fileExists("client.lua") then fileDelete("client.lua") end
JR10 Posted September 9, 2015 Posted September 9, 2015 Where's the problem exactly? You're hiding the weapon but showing the ammo?
Best-Killer1 Posted September 9, 2015 Author Posted September 9, 2015 Where's the problem exactly? You're hiding the weapon but showing the ammo? Weapon showing bro wait i will give you ss
Best-Killer1 Posted September 9, 2015 Author Posted September 9, 2015 this is ss http://i.imgur.com/mCQNA2N.jpg i can see weapon/money..... ect only ammo i can't see it help me pls
JR10 Posted September 9, 2015 Posted September 9, 2015 Your custom hud doesn't have any code for showing ammo, you're showing the default one, yes, but in the screenshot your current weapon is the fist, which shouldn't show any ammo.
Moderators Citizen Posted September 9, 2015 Moderators Posted September 9, 2015 dxDrawText("SAEG:RPG" Stolen from SAEG server ? If yes, how can guys like you dare come here to ask help for a script you stole somewhere ? ._.
Best-Killer1 Posted September 9, 2015 Author Posted September 9, 2015 Your custom hud doesn't have any code for showing ammo, you're showing the default one, yes, but in the screenshot your current weapon is the fist, which shouldn't show any ammo. see : http://i.imgur.com/SRV8xq1.jpg dxDrawText("SAEG:RPG" Stolen from SAEG server ? If yes, how can guys like you dare come here to ask help for a script you stole somewhere ? ._. SAEG:RPG is my server -.- i'm working for the scripts some days i will open it soon 5days or 7days -.-
KariiiM Posted September 11, 2015 Posted September 11, 2015 any help ?? Totally,you stole these things, First thing, you stole these images design from SAUR RPG client side downloaded resources, it's made by Allentus 2pictures from STORM RPG. http://i.imgur.com/mCQNA2N.jpg Sorry but none can help you if you keep using something that you have no permissions for it
JR10 Posted September 11, 2015 Posted September 11, 2015 We don't offer help with stolen scripts. Locked.
Recommended Posts