local FONT = dxCreateFont (\"BEBAS.ttf\",14)
ERROR: teszt/teszt2.lua:43 attempt to compare string with number
local components = { \"weapon\", \"ammo\", \"health\", \"radar\" , \"clock\", \"money\", \"breath\", \"armour\", \"wanted\" }local FONT = dxCreateFont (\"fonts/font.ttf\",72) addEventHandler(\"onClientResourceStart\", getResourceRootElement(getThisResource()),function ()for _, component in ipairs( components ) dosetPlayerHudComponentVisible( 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 ) 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 )) if minutes < 10 then minutes = \"0\"..minutesend if hour < 10 then hour = \"0\"..hourend dxDrawText (hour..\":\"..minutes, 985, screenHeight - 850, screenWidth, screenHeight, tocolor (255, 255, 255, 255 ), 1, \"pricedown\",\"left\",\"top\",false,false,false,true ) --Pénz dxDrawText ( playerMoney..\"#8BC963\"..\"$\", 1077, screenHeight - 850, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, \"FONT\",\"left\",\"top\",false,false,false,true ) dxDrawText ( ammo , 1216, screenHeight - 835, screenWidth, screenHeight, tocolor ( 139, 201, 99, 255 ), 0.8, \"pricedown\",\"left\",\"top\",false,false,false,true ) endfunction HandleTheRendering ( ) addEventHandler(\"onClientRender\", root, createText) endaddEventHandler(\"onClientResourceStart\",resourceRoot, HandleTheRendering)