1. Post #1
    banini's Avatar
    July 2012
    56 Posts
    Hi guys,
    I am new to Lua an have been creating my own gamemode. I have gotten load outs and starting things working but I want to know how, for example,
    I could add CSS guns into my map, like for my Runner load out, he has the Hl2 pistol and 25 bullets, and I want to replace this with a five seven and 25 bullets.

    I am also having some trouble with player models for different loadouts. For example,I have all the classes, but the code for the different player models doesnt do anything. how can I bypass this issue?
    Yes, I do have CSS :)

    Thanks!
    *i will add the code in the morning

  2. Post #2
    Awesome Gmod Servers!
    brandonj4's Avatar
    September 2011
    2,065 Posts
    There are hooks for this.
    PlayerModel hook:
    http://maurits.tv/data/garrysmod/wik...index99a5.html

    For adding guns in your map you could use this.
    InitPostEntity(for map startup):
    http://maurits.tv/data/garrysmod/wik...indexfa7e.html

    Or just make an entity with:
    http://maurits.tv/data/garrysmod/wik...index22ac.html

  3. Post #3
    banini's Avatar
    July 2012
    56 Posts
    Thanks so much! Sorry I couldn't reply cause of site traffic.
    Cya 'round!