1. Can you explain this part please:

    "authLevelToUsePlugin": 0,
    "authLevelToForceAccess": 1

    Auth Level to use = 0 < does that mean anyone or admin and if admin is it set to 4?
     
  2. authLevelToUsePlugin = 0 anyone may use this plugin
    authLevelToForceAccess = 1 only admins of level 1+ can unlock a door that is not his.
     
  3. Sorry this is not working on latest...20141101
     
  4. Hmmm todays? There was one today lol?
     
  5. This does work, it works great on the code door locks, turns the lock green then when done, turns it back to orange.
     
  6. this is working now for some reason wasnt working for me before
     
    Last edited by a moderator: Dec 4, 2014
  7. as I can put it only for admins?
     
  8. Wulf

    Wulf Community Admin

    Temporary build compatible with Oxide builds 266+.
     

    Attached Files:

  9. this does not work
     
  10. Code:
    [Oxide] 12:53 [Error] Failed to call hook 'cmdLock' on plugin 'lock-unlock v1.1.
    0'
    File: lock-unlock.lua Line: 67 attempt to call method 'Ray' (a string value):
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unkn
    own>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System
    .Type[] returnTypes) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x000
    00] in <filename unknown>:0
      at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown
    >:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, System.
    Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[]
     
    Last edited by a moderator: Mar 16, 2016
  11. Code:
    [Oxide] 20:25 [Error] Failed to load plugin lock-unlock
    File: lock-unlock.lua Line: 67 <name> expected near '(':
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unkn
    own>:0
      at NLua.Lua.LoadString (System.String chunk, System.String name) [0x00000] in
    <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.Load () [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.PluginLoader.LoadPlugin (Oxide.Core.Plugins.Plugin plugi