Files
mmkrp_2026/addons/plogs/lua/plogs_hooks/tools.lua
2026-03-15 14:54:49 +03:00

10 lines
316 B
Lua

plogs.Register('Tools', false)
plogs.AddHook('CanTool', function(pl, trace, tool) -- Shame there isn't a better hook
if (not plogs.cfg.ToolBlacklist[tool]) then
plogs.PlayerLog(pl, 'Tools', pl:NameID() .. ' attempted to use tool ' .. tool, {
['Name'] = pl:Name(),
['SteamID'] = pl:SteamID()
})
end
end)