Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hasUlx()
- if ulx then
- return true
- else
- return false
- end
- end
- function setupUlxHooks()
- local ulxCommands = ulx.cmdsByCategory
- for k,cat in pairs(ulxCommands) do
- for k,cmd in pairs(cat) do
- local oldFm = cmd.fn
- local cmdNam = string.Replace(cmd.cmd, " ","")
- cmd.fn = function(...)
- hook.Call(cmdNam,nil,...)
- return oldFm(...)
- end
- end
- end
- ulx.cmdsByCategory = ulxCommands
- end
- /*
- Hook Syntax
- arg1: (command) eg ulxadduserid or ulxremoveuser
- arg2: hook name
- arg3 function(normal ulx outputs)
- */
- hook.Add("ulxremoveuser", "timekeepulxremoveuser", function(calling_ply,target_ply)
- //Code Goes here
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement