Darkrp conflicting with ULib

On my Darkrp server, when I have both ulx and ULib installed, I cannot buy doors or use the f4 menu

When I try to change jobs, in my console it says


Unknown command: darkrp

When I look at the logs, it says


[ERROR] lua/includes/util.lua:173: attempt to index local 'object' (a number value)
  1. IsValid - lua/includes/util.lua:173
   2. sortHooks - addons/ulib/lua/ulib/shared/hook.lua:47
    3. Add - addons/ulib/lua/ulib/shared/hook.lua:105
     4. unknown - gamemodes/darkrp/gamemode/modules/chat/sv_chat.lua:129
      5. include - [C]:-1
       6. unknown - gamemodes/darkrp/gamemode/init.lua:57

repeatedly.

The only addons I have are ulx and ULib, I also have the DarkRp gamemode
Everything is up to date and I have not edited anything
Please help.

Edit here is another error that comes in the server log


[ERROR] lua/includes/util.lua:173: attempt to index local 'object' (a number value)
  1. IsValid - lua/includes/util.lua:173
   2. sortHooks - addons/ulib/lua/ulib/shared/hook.lua:47
    3. Add - addons/ulib/lua/ulib/shared/hook.lua:105
     4. unknown - gamemodes/darkrp/gamemode/modules/fadmin/fadmin/serversettings/sv_init.lua:10
      5. include - [C]:-1
       6. AddCSLuaFolder - gamemodes/darkrp/gamemode/modules/fadmin/sv_fadmin.lua:32
        7. unknown - gamemodes/darkrp/gamemode/modules/fadmin/sv_fadmin.lua:41
         8. include - [C]:-1
          9. unknown - gamemodes/darkrp/gamemode/init.lua:57

I solved it by wiping my server and reinstalling the addons. Guess it was a flook thing.