⚙️
TMC v2 Core
DiscordWebsite
  • Guides
    • Get Started
    • Kuzzle
  • TMC Core Object
    • Client Functions
      • Vehicle Functions
      • Interaction Ped Functions
      • Interaction Object Functions
      • Interaction Prompts
      • Polyzones
    • Client Menus
    • Events
      • Client
      • Server
    • Server Functions
      • General Functions
      • Commands
      • Player Functions
    • Common Functions
    • 🚘Vehicle Names
  • Object Models
    • Job
  • 📄Other Resources
    • ✨Status Effects
    • 📤Dispatch
    • 🫂Parties
    • 💶Banking
    • 🔍Evidence
Powered by GitBook
On this page
  1. TMC Core Object

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)
PreviousServerNextGeneral Functions

Last updated 1 year ago