function samp.onCreate3DText(id, color, pos, distance, testLOS, attachedPlayerId, attachedVehicleId, text)
lua_thread.create(function()
wait(0)
sampCreate3dTextEx(id, text, color, pos.x, pos.y, pos.z, distance, true, attachedPlayerId, attachedVehicleId)
if text == "Пещера с украшениями" then
sampAddChatMessage("Нашел!")
else
sampAddChatMessage("Потерялся")
print(text)
end
end)
end