HELP| Can't block players from spawning npcs, cars, entities.(DarkRP)

I set up in the settings.lua to allow superadmins only(2) to spawn npcs, cars and entities, but all of the players can spawn them.
how can i fix that?

  1. Check that the changes are done in the darkrpmodification addon and main (I think??)
  2. Check your addons for scripts that do dumb shit like the following:


hook.Add( "PlayerSpawnNPC", "Im_retarded", function( )
      return true
end)


etc

You can check this a bit easier if you type “lua_findhooks PlayerSpawnNPC” in console to get a list of the hooks added. From there you can try running hook.Remove( “PlayerSpawnNPC”, “List_item” ) until it works again