0 Üye ve 1 Ziyaretçi konuyu incelemekte.
local screenW,screenH = guiGetScreenSize()local resW,resH = 1280,720local sW,sH = (screenW/resW), (screenH/resH)local playerHealth = math.floor (getElementHealth( getLocalPlayer() ))dxDrawRectangle(1000*sW, 20*sH, 20*sW, 100*playerHealth/100*sH, tocolor(156, 254, 133, 255), true)
dxDrawRectangle(1000*sW, 20+(100-playerHealth)*sH, 20*sW, playerHealth*sH, tocolor(156, 254, 133, 255), true)
local screenW,screenH = guiGetScreenSize()local resW,resH = 1366,768local sW,sH = (screenW/resW), (screenH/resH) function drawHUD() --# Can local playerHealth = math.floor (getElementHealth( getLocalPlayer() )) dxDrawRectangle(320*sW, screenH-210*sH, 35*sW, 185*sH, tocolor(0, 0, 0, 150), true) dxDrawImage(325*sW, screenH-50*sH, 10*sW, 10*sH, "img/health.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawRectangle(325*sW, screenH-205*sH, 10*sW, 150*sH, tocolor(90, 12, 14, 255), true) dxDrawRectangle(325*sW, 613+(100-playerHealth)*sH, 10*sW, playerHealth*sH, tocolor(180, 25, 29, 255), true) --# Zırh local playerArmor = math.floor (getPedArmor( getLocalPlayer() )) dxDrawImage(340*sW, screenH-50*sH, 10*sW, 10*sH, "img/sheild.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawRectangle(340*sW, screenH-205*sH, 10*sW, 150*sH, tocolor(112, 112, 112, 255), true) dxDrawRectangle(340*sW, 613+(100-playerArmor)*sH, 10*sW, playerArmor*sH, tocolor(255, 255, 255, 255), true)
dxDrawRectangle(325*sW, 613+(150-(playerHealth*1.5))*sH, 10*sW, playerHealth*1.5*sH, tocolor(180, 25, 29, 255), true)
dxDrawRectangle(340*sW, 613+(150-(playerArmor*1.5))*sH, 10*sW, playerArmor*1.5*sH, tocolor(255, 255, 255, 255), true)