local sampev = require('lib.samp.events')
function sampev.onCreate3DText(id, color, position, distance, testLOS, attachedPlayerId, attachedVehicleId, text)
if id == 0 then -- заменяешь на свой айди
print(text)
return {id, color, position, distance, testLOS, attachedPlayerId, attachedVehicleId, 'твой текст'}
end
end