creationss Posted February 26, 2017 Share Posted February 26, 2017 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 https://forums.kleientertainment.com/forums/topic/75014-making-a-command/ Share on other sites More sharing options...
Cunning fox Posted February 28, 2017 Share Posted February 28, 2017 (edited) local _G - GLOBAL local function GetGlobal(gname,default) local res=_G.rawget(_G,gname) if res == nil and default ~= nil then _G.rawset(_G,gname,default) return default else return res end end GetGlobal("1",2) 1 - Command 2 - function name Edited February 28, 2017 by makar5000 1 Link to comment https://forums.kleientertainment.com/forums/topic/75014-making-a-command/#findComment-875146 Share on other sites More sharing options...
CarlZalph Posted February 28, 2017 Share Posted February 28, 2017 Link to comment https://forums.kleientertainment.com/forums/topic/75014-making-a-command/#findComment-875187 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now