for id = 0, 2048 do
if sampIs3dTextDefined(id) then
local text, color, posX, posY, posZ, distance, ignoreWalls, player, vehicle = sampGet3dTextInfoById(id)
if text:find('Семейный автопарк') and text:find('Нажмите ALT') then
if isPointOnScreen(posX, posY, posZ, 3.0) then
p1, p2 = convert3DCoordsToScreen(posX, posY, posZ)
p3, p4 = convert3DCoordsToScreen(px, py, pz)
renderFontDrawText(font, "АВТОПАРК", p1, p2, 0xFFFF0000)
sampAddChatMessage("Семейный автопарк находится недалеко", -1)
end
end
end
end