Hello all, i have this code:
whats wrong with this line?Code:MULTVALUE = 0.5 function PLUGIN:OnGather( dispenser, entity, item ) if entity:ToPlayer() then if tonumber( item.amount ) then item.amount = item.amount * MULTVALUE self:SendMessage( entity, item.info.displayname ) end end end
i'm new in rust lua and can't find some manuals...Code:self:SendMessage( entity, item.info.displayname )
How to get item name?
Discussion in 'Rust Development' started by Wgls, Feb 24, 2015.
-
-
-
Wulf Community Admin
-
self:SendMessage( entity, -
Wulf Community Admin
-
-
Thanks for help, but i have one question, how i can detect player ACTIVE tool/weapon(axe and etc.) in hands?
Last edited by a moderator: Feb 25, 2015 -
Decompile the Rust dlls and look at the BasePlayer class and your answer is there. We are not here to provided support for the Rust dlls.
-
Somebody can say how i can get active item? on lua
-