News

   Join the HGN Steam Group!
Click here.
collapse

Basic knowlage on making a gamemode.

LinkinEleven · 1345

0 Members and 1 Guest are viewing this topic.

Offline LinkinEleven

  • Loner
  • *
    • Posts: 4
If you don't already know lua, this tutorial isn't for you.

First download this.

http://www.garrysmod.org/downloads/?a=view&id=39584

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

Code
 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

http://wiki.garrysmod.com/?title=Serverside_Lua#gamemode

and clientside

http://wiki.garrysmod.com/?title=Clientside_Lua#gamemode

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

simple as that.









friendly
0
funny
0
informative
0
agree
0
disagree
0
pwnt
0
like
0
dislike
0
late
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions



Tags:
     

    * Hello there Guest

    Welcome to the HyperGaming Network forums! We are a large gaming and mod community. Please signup to gain access to other sections of the forum.




    If you are having problems navigating the forums, please see this topic.

    Forum News

       Join the HGN Steam Group!
    Click here.

    * Users Online

    RanmaChanAndrew Weasleythe_grub2.0

    Dot Guests: 560 | Dot Users
    SimplePortal 2.3.7 © 2008-2021, SimplePortal