Mar 14th, 2018
Never
Hey guys, here you can found all scripts you want. We are selling it for a very Low price( scripts working 100%), if the script don't work and you payed us, your money will come back to you. Only show relevant functions (A serverside script is open, only serverside & shared functions will show) mtalua-sense.showreferencelinks (v2.3.5 and up) Make functions clickable which redirect directly to the MTA Wiki. Changelog v2.3.6 (19. Jan 2019) Bugfix for dependency 'request' v2.3.5 (13. MTA:DayZ Hud Script. Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- -- ║ » Copyright © 2018-2019 ║
- -- ║ » Script Author: Lorenzo & Bernie ║
- -- ╚════════════════════════════════════╝
- function LakeZ_HUD ()
- local hudTable ={'ammo','armour','health','money','weapon','wanted','area_name','vehicle_name','breath','clock'}
- setPlayerHudComponentVisible(hudTable[i],false)
- local x, y = guiGetScreenSize()
- dxDrawRectangle(x-240,20,220,140, tocolor(0,0,0,120),false)--Background
- dxDrawRectangle(x-240,174,220,30, tocolor(0,0,0,120),false)--BackgroundLakeZ
- dxDrawText('LakeZ - Beta', x-170,180,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
- local weaponID = getPedWeapon (getLocalPlayer())
- local ammo = getPedTotalAmmo (getLocalPlayer())
- dxDrawRectangle(x-140,220,120,130, tocolor(0,0,0,120),false)--Background Weapon
- --dxDrawImage(x-115, 55, 82, 89,'Images/HUD/'..tostring(weaponID)..'.png',0.0,0.0,0.0,tocolor(255,255,255,255),false)
- dxDrawImage(x-120,230,82,89,'Images/HUD/'..tostring(weaponID)..'.png',0.0,0.0,0.0,tocolor(255,255,255,255),false)
- dxDrawText('..clip..' | '..ammo..', x-(10+95),324,786,103, tocolor(255,255,225,255),1.30,'default-bold','left','top',false,false,true,false,false)
- local health = getElementData(getLocalPlayer(),'blood')
- dxDrawText('Blood:', x-234,23,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
- dxDrawText(math.floor((health))..', x-60,23,120,22, tocolor(255,20,20,255),1,'default-bold','left','top',false,false,true,true,false)
- local armor = getElementData(getLocalPlayer(),'food')
- dxDrawText('Food:', x-234,39,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
- dxDrawText(math.floor((armor))..', x-50,39,120,22, tocolor(20,255,20,255),1,'default-bold','left','top',false,false,true,true,false)
- local breath = getElementData(getLocalPlayer(),'thirst')
- dxDrawText('Thirst:', x-234,55,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
- dxDrawText(math.floor((breath))..', x-50,55,120,22, tocolor(20,135,255,255),1,'default-bold','left','top',false,false,true,true,false)
- --untererteil
- local headshots = getElementData(getLocalPlayer(),'headshots')
- dxDrawText('Headshots:', x-234,84,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
- dxDrawText(math.floor((headshots))..', x-50,84,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
- local murders = getElementData(getLocalPlayer(),'murders')
- dxDrawText('Murders:', x-234,100,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
- dxDrawText(math.floor((murders))..', x-50,100,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
- local zombieskilled = getElementData(getLocalPlayer(),'zombieskilled')
- dxDrawText('Zombieskilled:', x-234,116,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
- dxDrawText(math.floor((zombieskilled))..', x-50,116,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
- local temperature = getElementData(getLocalPlayer(),'temperature')
- dxDrawText('Temperature:', x-234,132,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
- dxDrawText(math.floor((temperature))..'°C', x-54,132,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
- end
- addEventHandler('onClientRender', root, LakeZ_HUD)
- function getPOS_func ()
- local x,y,z = getElementPosition (getLocalPlayer())
- outputChatBox('..x..', '..y..', '..z..',255,140,0)
- end
RAW Paste Data