So I find that in the past 3-4 years, we no longer have ULib.ACCESS_NONE.
What are we using now to register access but not give it to a default group?
Here's what I want to do;
Give ULX (well, ULib actually) knowledge of 3 additional permission flags.
I don't want to grant them to any group/person by default though.
Here's what I'm trying;
ULib.ucl.registerAccess( "osi_overcome", _, "Old School Immunity - Allows override of rubber and immune, still follows can_target", "JamminR" )
ULib.ucl.registerAccess( "osi_immune", _, "Old School Immunity - Be immune to most punishments, overrides can_target", "JamminR" )
ULib.ucl.registerAccess( "osi_rubber", _, "Old School Immunity - Bounces ULX punishment back to attacking player", "JamminR" )
I was originally trying ULib.ACCESS_NONE in place of _.
Using grep, I find that it no longer exists, so I switched to _.
Here's the error;
[ERROR] addons/ulib/lua/ulib/server/ucl.lua:820: bad argument #1 to 'ipairs' (table expected, got nil)
1. ipairs - [C]:-1
2. registerAccess - addons/ulib/lua/ulib/server/ucl.lua:820
3. unknown - addons/ulx_rubber/lua/ulx/modules/ulx_rubber.lua:42
4. include - [C]:-1
5. unknown - addons/ulx/lua/ulx/init.lua:28
6. include - [C]:-1
7. unknown - addons/ulx/lua/ulib/modules/ulx_init.lua:2
8. include - [C]:-1
9. unknown - addons/ulib/lua/ulib/init.lua:68
10. include - [C]:-1
11. unknown - addons/ulib/lua/autorun/ulib_init.lua:3