local player_vehicle = getPedOccupiedVehicle(localPlayer)
local r, g, b = getVehicleHeadLightColor(player_vehicle)
if (player_vehicle) then
dxDrawText("", x*0, y*39.5, x*1366 + x*1128, y*768, tocolor(r,g,b), 1, font_icons, "center", "top", false, false, false, true, false)
dxDrawText("", x*0, y*39.5, x*1366 + x*908, y*768, tocolor(r,g,b), 1, font_icons, "center", "top", false, false, false, true, false)
else
dxDrawText("", x*0, y*39.5, x*1366 + x*1128, y*768, tocolor(255,165,0), 1, font_icons, "center", "top", false, false, false, true, false)
dxDrawText("", x*0, y*39.5, x*1366 + x*908, y*768, tocolor(127,255,212), 1, font_icons, "center", "top", false, false, false, true, false)
end
Problem: https://imgur.com/CJOteVg
How to resolve?
thx all.