Separate names with a comma.
Should be ITEM:OnUse, not ITEM:OnUsed.
© 2015 CloudSixteen.com do not share, re-distribute or modify
without permission of its author ([email protected]).
Plugin & Content: https://github.com/Vizurez/immersive_rations
Workshop Content (sound files):...
Assuming that you have the equipable item base plugin installed, you will want to change your item to use the equipable item base instead of the...
This code will only affect the icon of the item:
ITEM.iconModel = "models/example.mdl";
ITEM.iconSkin = 1;
This code will affect both the icon...
My bad, I didn't look at the code correctly.
Using a negative value will increase the player's hunger/thirst/sleep, as it's...
-- Called when a player uses an item.
function PLUGIN:PlayerUseItem(player, itemTable, itemEntity)
if itemTable.hunger then...