[lua]local screenW, screenH = guiGetScreenSize()
local rowery = {[509]=true,[481]=true,[510]=true,}
function hud()
local v = getPedOccupiedVehicle(localPlayer)
if v then
local sx,sy,sz = getElementVelocity(getPedOccupiedVehicle(localPlayer))
local kmh = math.ceil(((sx^2+sy^2+sz^2)^(0.5))*155)
local paliwo = getElementData(v,"pojazd_paliwo") or 0
local przeb = getElementData(v,"pojazd_przebieg") or 0
-- ogolne
dxDrawImage(screenW * 0.6917, screenH * 0.6991, 533, 325, "images/spdmeter2.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawText(""..paliwo.." L", screenW * 0.7677, screenH * 0.9037, (screenW * 0.7677) + 87, ( screenH * 0.9037) + 33, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false)
dxDrawText(""..przeb.." km przebiegu", screenW * 0.8406, screenH * 0.9204, screenW * 0.9417, screenH * 0.9546, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
dxDrawText(""..kmh.." km/h", 1706, 902, 1851, 942, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false)
-- kontrolki
if paliwo < 30 then
r1,g1,b1 =... |