Hello everyone, I have a problem. I have recently searched for a script that doesn't let any staff member to no-clip out of duty.
I have found a script and it worked however, it causes the rest of the ULX commands to not work.
My versions are:
ULX v3.70 and ULib v2.60 (I had to restart my server without the code to actually be able to find out the version)
I don't get any LUA errors, or if there was to be one it would be unhandled. ( Unhandled Lua Refresh: [NAME:autorun/server/nodie.lua] [TYPE:] )
The Script:
// Makes admins not noclip out of duty. COMMAND: Ulx No-clip
hook.Add("ULibCommandCalled", "PreventNoclip", function(ply, cmd, args)
if ( cmd == "ulx noclip" && ply:Team() == TEAM_STAFF ) then
return true
else
return false
end
end)
I really appreciate your help.
Thanks.