Basic knowlage on making a gamemode.

Started by LinkinEleven, 14-11-2009

0 Members and 1 Guest are viewing this topic.


If you don't already know lua, this tutorial isn't for you.

First download this.

There are three files in your gamemode folder, or should be.

One init.lua
Two cl_init.lua
Three Shared.lua

cl_init.lua is where your derma frames and other menus are going to go.
init.lua is where server side information will go such as player load outs, player spawn, commands ect.
shared.lua is where your main format for the gamemode should be, it should look like the following

GM.Name = ""
GM.Author = ""
GM.Email = ""
GM.Website        = ""

This is also where your team will be set up.

While setting up your gamemode you should normally be on this page for server side commands in lua

and clientside

There is no shared lua because shared isn't a big part of the lua library.

simple as that.