So I am fairly new to lua, and I tried to create a custom command for setting UTime, and it seemed to break my whole server. Here is my code:
function ulx.settime( calling_ply, target_ply, ammount )
target_ply:SetUTimeStart( ammount )
target_ply:SetUTime( ammount )
end
local settime = ulx.command( CATEGORY_NAME, "ulx settime", ulx.settime, "!settime" )
settime:addParam{ type=ULib.cmds.PlayerArg }
settime:AddParam{ type=ULib.cmds.NumArg min=0 max=2.628e+6 default=0, hint="Set the UTime of a player" }
What have I done that will break the server? The server is DarkRP, and this is what broke:
AtlasChat (displayed default chatbox instead)
Custom scoreboard and F4 menu didn't load
Removing this code seemed to fix it when I restarted the server.