local components = { \"weapon\", \"ammo\", \"health\", \"radar\" , \"clock\", \"money\", \"breath\", \"armour\", \"wanted\" }addEventHandler(\"onClientResourceStart\", getResourceRootElement(getThisResource()),function () for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, false ) endend) local screenWidth, screenHeight = guiGetScreenSize ( )function createText( ) local localPlayerName = getPlayerName(getLocalPlayer()) local hour, minutes = getTime() local playerMoney = getPlayerMoney ( playerX, playerY, playerZ ) local armor = math.ceil(getPlayerArmor ( localPlayer )) local hp = math.ceil(getElementHealth(localPlayer)) local ammo = getPedAmmoInClip ( localPlayer ) local breath = math.ceil(getPedOxygenLevel (getLocalPlayer()))..\"%\" local weapon = getPedWeapon(localPlayer) local now = getTickCount( ) local playerX, playerY, playerZ = getElementPosition ( localPlayer ) local lekerdezFegyver = getPlayerWeapon(localPlayer)dxDrawImage ( screenWidth/1.3 - 40, 0, 320, 170, \'hud.png\', angle, 0, -120 )dxDrawImage( screenWidth/1.2 - 0, 170, 170, 100, \"kepek/\"..weapon..\".png\",angle, 0, -0 )dxDrawRectangle( screenWidth/ 1.3, 45, 2.13 *hp, 16 ,tocolor( 174, 208, 118 ) );dxDrawRectangle( screenWidth/ 1.3, 80, 2.13 *armor, 16 ,tocolor( 58, 184, 220 ) ); dxDrawText (hour..\":\"..minutes, 985, screenHeight - 850, screenWidth, screenHeight, tocolor (255, 255, 255, 255 ), 1, \"pricedown\",\"left\",\"top\",false,false,false,true ) dxDrawText ( playerMoney..\"#8BC963\"..\"$\", 1080, screenHeight - 850, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, \"pricedown\",\"left\",\"top\",false,false,false,true )if lekerdezFegyver thendxDrawText ( ammo , 1216, screenHeight - 835, screenWidth, screenHeight, tocolor ( 139, 201, 99, 255 ), 0.8, \"pricedown\",\"left\",\"top\",false,false,false,true )endendfunction HandleTheRendering ( ) addEventHandler(\"onClientRender\", root, createText) endaddEventHandler(\"onClientResourceStart\",resourceRoot, HandleTheRendering)