local enable = false
function main()
sampRegisterChatCommand('modelid',function() enable = not enable end)
wait(-1)
end
require('lib.samp.events').onSendClickTextDraw = function(id)
if enable then
local model, _, _, _, _, _, _ = sampTextdrawGetModelRotationZoomVehColor(id)
sampAddChatMessage('Model ID: '..model, -1)
end
end