You can try using... global["BaseEntity+Flags"].Locked instead of global.Flags.Locked.
Admin Door Unlocker [Unmaintained]
Discussion in 'Plugin Support' started by NexusBR, Jan 8, 2015.
-
Wulf Community Admin
-
Wulf Community Admin
Attached Files:
-
-
NexusBR updated Admin Door Unlocker with a new update entry:
Fix for new rust update, Oxide 2.0.291+
[DOUBLEPOST=1423534673][/DOUBLEPOST] -
For the latest update, you could alternatively do:
door:SetFlag(door.flags.Locked, false)
This is how I fixed your plugin temporarily =) -
If even @Wulf did not knew that one.
The latest update says: This fixes many of the global methods erroring for Lua plugins. Ex. plugins can now use either global.BaseEntity.Flags or global['BaseEntity+Flags'].
It does not say anything about global.flags. -
-
Wulf Community Admin
-
NexusBR updated Admin Door Unlocker with a new update entry:
Minor improvement
-
NexusBR updated Admin Door Unlocker with a new update entry:
Minor improvements
-
NexusBR updated Admin Door Unlocker with a new update entry:
Changed License
-
Code:
[Oxide] 4:21 PM [Error] Failed to call hook 'CanOpenDoor' on plugin 'Admin door Unlocker' File: admin-door-unlocker.lua Line: 330 attempt to index field 'BasePlayer+Flags' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
-
Make sure to use an updated version, Because i just tested and A.D.U is still working fine, And on line 330 there is no BasePlayer+Flags. -
Good day,
Getting below error with latest Rust+oxide v.700;
[Oxide] 7:27 AM [Warning] AutoDoorCloser plugin is using deprecated hook: CanOpenDoor -
-
sorry for wrong copy paste
related error as follows;
[4/10/2015 6:57:59 AM] [Oxide] 6:57 AM [Warning] admin-door-unlocker plugin is using deprecated hook: CanOpenDoor -
Small fix for CanOpenDoor.
Attached Files:
-
-
-
NexusBR updated Admin Door Unlocker with a new update entry:
Just renamed hook to remove the Depreciated Warn.
-
is there a way to make it so you can actually UNLOCK the lock? with copypaste plugin, when you copy a building with locks on them it pastes the locks as well with the codes still the same. i have forgotten some codes to doors, it would be great if i could unlock them and set a new code