Server Functions

CreateUseableItem

Register an item that can be used from the inventory. e.g sandwiches, phones etc.

Parameter
Required
Type
Description

name

string

Name of the item

callback

Function

Callback Function, Ran on item use

TMC.Functions.CreateUseableItem('tmc_giftcard', function(source, item, index)
    --
end)

Last updated