local sampev = require("samp.events")
function sampev.onSetPlayerAttachedObject(playerId, index, create, object)
local _, id = sampGetPlayerIdByCharHandle(PLAYER_PED)
if playerId == id then
sampAddChatMessage("Ты надел объект с ид: " .. object.modelId, 0xFFFFFF)
end
end