function isObjectInStream(id)
local hand = sampGetObjectHandleBySampId(id)
if hand then
local ok, x, y, z = getObjectCoordinates(hand)
if ok then
sampAddChatMessage(string.format('%d %d %d', x, y, z), -1)
end
else
sampAddChatMessage('smthng went wrong', -1)
end
end