-- в цикле
for i, v in ipairs(getAllChars) do
if getCharModel(v) == 3150 then
-- код если олень найден
local x,y,z = getCharCoordinates(v)
local mX, mY, mZ = getCharCoordinates(1)
local x1, y1 = convert3DCoordsToScreen(x,y,z)
local x2, y2 = convert3DCoordsToScreen(mX, mY, mZ)
if isPointOnScreen(x,y,z) then
renderDrawLine(x2, y2, x1, y1, 2.0, 0xFF00FF00)
renderDrawPolygon(x1, y1, 10, 10, 10, 0, 0xFFFFFFFF)
renderDrawPolygon(x2, y2, 10, 10, 10, 0, 0xFFFFFFFF)
end
end
end