Jump to content

Making a command

Recommended Posts

Basically what the title said. I want to make my own commands for a server I'm making, how would I go about doing it? For example if I wanted a mod that instantly spawns specific items to my inventory any way example on how I can do that? Or where I could start?

Link to comment
Share on other sites

local _G - GLOBAL
local function GetGlobal(gname,default)
	local res=_G.rawget(_G,gname)
	if res == nil and default ~= nil then
		return default
		return res


1 - Command

2 - function name

Edited by makar5000
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...