AddUseItemCallback("", "itemname", "entityname", "function", true); // Put this in void OnStart
then you add this too (i will do a door example.)
void function(string &in asItem, string &in asEntity)
{
RemoveItem(asItem);
SetSwingDoorLocked(asEntity, false, true);
}
How this works is by asItem, it's an advanced Syntax sort to speak, it will to say it easily look at the name function, and then to the function as stated. and look at the part of the item, for asItem, and entity for asEntity. Now when you want another one.
Just add the same with function. so you can use it over and over again
! Yay?
Signature to awesome to be displayed.