Can't get this to work, i goto F1 then type in, inv.give "stones" 100, no error message, no stones, nothing.
Give
Moved
Total Downloads: 21,435 - First Release: Oct 21, 2014 - Last Update: Mar 9, 2017
- 5/5, 35 likes
-
Where do I put the LUA file at for my server? Root Game folder?
-
I can't seem to give myself a bolt action rifle. Wood, bandages, lanterns work great
What is the command for a bolt action rifle? -
/give "Bolt Action Rifle" 1
If it doesnt work maybe they changed the name, look in your crafting list for the name. -
tried multiple times -
Then you Forgot the "
-
t
-
there a way to make to anyone can use the command /give? (sry bad english)
-
Authlevel 0
-
This doesn't work on my server. It doesn't give me any messages and I don't get anything.
-
Reneb updated Give with a new update entry:
blueprint support
-
Perfect, thanks so much.
-
I get this error msg when trying to give Blueprints. In the last case now, Revolver BP.
EDIT: I can use inv.give but not /give.
Code:[Oxide] 6:32 PM [Error] give: [string "give.lua"]:174: invalid arguments to method: PlayerInventory.GiveItem 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
-
Code:
[Oxide] 5:42 PM [Error] give: [string "give.lua"]:130: attempt to compare nil with number 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
-
I'm having an issue with this plugin as well
/give "player" "item" "amount" => give to a player - IS BROKEN
I get this error:
[Oxide] 2:20 AM [Error] give: [string "give.lua"]:177: invalid arguments to method: PlayerInventory.GiveItem
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
However the following does work from RCON inv.giveplayer "playername" "item name" "amount"
or in game /give "item name" "amount"
Thanks,
TheDoc -
@Reneb, there is a small typo on line 142, targetplayer.inventory.containerMainm -> targetplayer.inventory.containerMain
For those that already want to use the plugin, a fixed version is attached to this postAttached Files:
-
-
There seems to be s wierd issue with Rust and blueprints at the moment. when people use blueprints that were spawned via console the next time they log on to the server there whole craft menu is blank
-
Reneb updated Give with a new update entry:
fixed typo (ty mughisi)
-
Gday Reneb, has been awhile, your plugin has worked flawlessly in the past but right now it doesn't seem to want to give out anything, I use the command /give name item amount as to what I have used before and it has worked fine, only after updating the I cant seem to give myself anything.
-
Thx i'll look into it