- 361
- 100
- Версия MoonLoader
- Другое
Lua:
for k, v in pairs(getAllVehicles()) do
local x, y, z = getCarCoordinates(v)
if isCarOnScreen(v) and getDistanceBetweenCoords3d(mx, my, mz, x, y, z) then
local rx, ry = convert3DCoordsToScreen(x, y, z)
local id = getCarModel(v)
local health = '\nHP: '..getCarHealth(v)..'\n'
local engine = 'Engine: '..(isCarEngineOn(v) and '{00FF00}On' or '{FF0000}Off')
local lock = '\n{AAAAAA}Locked: '..(getCarDoorLockStatus(v) == 2 and '{00FF00}On' or '{FF0000}Off')
local text = '? ['..id..']'..health..engine..lock
if tCarsName[id-399] then
text = tCarsName[id-399]..' ['..id..']'..health..engine..lock
end
renderFontDrawText(font, text, rx, ry, 0xFFAAAAAA)
end
end
тип distance < 10