Jump to content

Search the Community

Showing results for tags 'code'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Community News & Announcements
    • Community Announcements
    • Community Rules
    • Community Changelog
    • Official Steam Group
  • Community Hub
    • Introductions
    • Random Discussions
    • General Discussions
    • Custom Game Night
    • Media
    • Bans & Staff Reports
    • IG Servers Application Hub
  • Community Teams
    • Support Team
    • Development Team
    • Twitch Streamer
  • GMOD | Imperial RP
    • Important Information
    • Links
    • Applications
    • PAC3
    • Community Area

Product Groups

There are no results to display.


  • Website Development with Emu


  • Community Calendar
  • Clone Wars RP Schedule
  • Imperial RP Schedule

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me


Found 2 results

  1. Hey everybody, Since I became the RG Commander, I have noticed that if we want to change from our battle armour to our robes, we need to call staff and waste there time. To fix this, I have written a small, lightweight script that can be put in the servers serverside autorun that allows people to switch between their battle armor and robes using a simple chat command !switch. The addon has been made in such a way that other regiments can be added with minimal effort. Thanks for considering this @Martibo @Caboose and @Wolf. The code is as follows and should be placed in garrysmod\lua\autorun\server: local SwitchPairs = { {"models/player/starwars/mistersweetroll/imperialguard.mdl","models/player/ven/guard.mdl"}, // just add a pair of models here } local SwitchTable = {} for k,v in pairs(SwitchPairs) do table.insert(SwitchTable,0,v) table.insert(SwitchTable,0,table.Reverse(v)) end hook.Add("PlayerSay","SwitchModel",function (ply,txt) if string.lower(txt) == "!switch" then for k,v in pairs(SwitchTable) do if ply:GetModel() == v[1] then ply:SetModel(v[2]) return "" end end end end)
  2. Hello there. Basically the first 5 people to respond to this will be sent a random steam game code that I have. Good Luck
  • Create New...