Garry's Mod

Garry's Mod

TTT - Loadout Menu
109 Comments
[3k-36] JAMES 11 Oct, 2022 @ 2:45am 
I try it doesn't work I just typing ! bom not working
Afuro 11 Nov, 2021 @ 11:01am 
Does this support m9k weapons too?
mexikoedi 28 Oct, 2019 @ 7:44am 
It is not working correctly with TTT2, sometimes i dont get my loadouts and sometimes i get my loadouts?
SovetskiDuck 14 Jul, 2019 @ 9:00pm 
how do you add user groups, do you need to add a line for blacklisting?
S. HITMAN 28 Aug, 2017 @ 4:32pm 
can you make a seperate mod that makes you automatically spawn with the default pistol?
Two-Tu 21 Aug, 2017 @ 12:04pm 
How do I add ammo to be spawned at the start of the round?
Mint 15 Jun, 2017 @ 12:40pm 
Hey, Exho how do you add groups that are aloud to use it:
loadout.whitelist = {}
Reaper 16 Nov, 2016 @ 11:53am 
I am getting the following error spammed in my console, any idea why?

[ERROR] addons/ttt_-_loadout_menu_301839781/lua/autorun/cl_loadoutpanel.lua:32: attempt to index global 'loadout' (a nil value)
1. fn - addons/ttt_-_loadout_menu_301839781/lua/autorun/cl_loadoutpanel.lua:32
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109
Deluxe 13 Nov, 2016 @ 3:17pm 
Hi, where is the config to edit what groups can use it? I cannot find it.
Nate C. Traxler 28 Oct, 2016 @ 3:47pm 
Can you make a sandbox version of this?
PeffTayne 27 Jun, 2016 @ 11:19am 
it works some rounds, others it doesn't, and there is no error message
PeffTayne 25 Jun, 2016 @ 11:46am 
how do i add custom weapons from steam workshop to this?
☠ Peasants ☠ 11 Apr, 2016 @ 12:27am 
How can i change he amount of ammo a player spawns with?
Exho  [author] 16 Jan, 2016 @ 3:20pm 
Its stored on the server's SQL server as PData. I'm not familiar with how to wipe data from there en masse
Exho  [author] 15 Jan, 2016 @ 5:01pm 
Yeah I believe it should if you add them to the config
-Pax12- 15 Jan, 2016 @ 4:34pm 
this works with ttt weapons like css pack for ttt? (load tmp, p225 for example) thanks :D
Robbobb 26 May, 2015 @ 6:11pm 
Oh ok
Exho  [author] 26 May, 2015 @ 6:07pm 
I made this for TTT as a clone of a TTT addon, I'm just not going to try to port it to other gamemodes especially since the code in it is godawful
Robbobb 26 May, 2015 @ 5:00pm 
Maybe in the future you can?
Exho  [author] 20 May, 2015 @ 11:50am 
I dont plan on doing that, sorry
Vipes 20 May, 2015 @ 8:57am 
Can you make one that supports other gamemodes?
Zipping Horizon 2 May, 2015 @ 11:54pm 
is there a sandbox version of this somewhere?
Lourie Parker 1 Apr, 2015 @ 11:35pm 
Oh okay :3 But you anyway understood what I meant. Thanks for help. I hope I'll have some more experience withi that..
Exho  [author] 1 Apr, 2015 @ 12:42pm 
Z is the vertical vector in Source :p
Lourie Parker 1 Apr, 2015 @ 10:01am 
Still have a lot of nice ideas I would make in future.. :3 DNA scanner upgrades, more traps for Traitors, Random quiz which increases probability to stay a T, Only Y vector Newton Launcher, custom C4 and Jihad sounds.. Already done a role sounds with win\lose sounds for each role. Proud of myself for that :3
Lourie Parker 1 Apr, 2015 @ 9:55am 
I wanted to make a new passive item for D. Its work required a client to server request of amount of alive players. I thought It would be easy: New item which makes a boolean true and sends a console command. Server gets that command and checks a boolean is true. If true, by net.Send(p) it will send back the players variables. Client recieves that information and draws a gui. Timer to repeat with hooks in case of round end or player death. But there was a LOT more problems I expected: Adding a new passive item requires using table.insert. That "insert" won't work properly if I add it as SERVER. AddNetworkString wont work if it not SERVER only. Concommands doesn't want to work on SERVER... I'm confused. I tried to make it step-by-step using print() to debug my success. But every next step I lost my success with previous one. Coffee is out, 8 hours of work.. But I'm not gonna give up. Just, maybe there's any simple manual for that things.. :gmod:
Exho  [author] 1 Apr, 2015 @ 7:58am 
CLIENT and SERVER are global booleans which return true in their respective realms. If you load a lua file on the server then SERVER will be true. You really only use them if you are calling a Lua file on both the client and server
Lourie Parker 1 Apr, 2015 @ 7:30am 
The third button asks the loadout table. And if the table is empty server will say "Nothing chosen" insted "Chosen , and !"
And.. by the way.. Not asking about debugging, but about how-to (was helping noobs on c++ and I know how it annoying). I'm going to create something, but not really can figure out how exactly info sharing between client and server works (what is util.*, how net.* works and when you should use "if CLIENT" and where you don't)... Sorry in advance.
Exho  [author] 31 Mar, 2015 @ 12:57pm 
Wow that looks really good!
Lourie Parker 31 Mar, 2015 @ 10:16am 
http://savepic.net/6593742.jpg Just added some more weapons, third button, settings tab strings and translated to Russian :D
Exho  [author] 22 Feb, 2015 @ 1:05pm 
Fixed the smoke grenade issue, thanks
the.3null.4player.6.13.3.10. 22 Feb, 2015 @ 12:29pm 
Found the problem please compare line 256 and line 246 in the clientside script.

on line 256 gChoice = WL_WEAPON_10 should be gChoice = WL_WEAPON_11
the.3null.4player.6.13.3.10. 22 Feb, 2015 @ 12:16pm 
I noticed that when I select a smoke grenade in the menu. I recieve a discombob instead.

note: i have added a small amount of lua to the server file to allow me to bind the menu to f4 it is as follows.


function openloadout( ply ) --Start the function
net.Start("OpenLoadoutMenu")
net.Send(ply)
end --End the function
hook.Add("ShowSpare2", "LoadoutMenuButton", openloadout) --Add the hook "LoadoutMenuButton" so it opens with F4
chewie 19 Feb, 2015 @ 8:23pm 
Thanks so much man :D
Exho  [author] 19 Feb, 2015 @ 6:15pm 
The names need to be in quotes like "VIP" because they are strings, not variables.
chewie 19 Feb, 2015 @ 6:10pm 
http://gyazo.com/1aab0dbd7c6342fd8ced525013d2811b < this is what I did but "user" can still use it
Exho  [author] 19 Feb, 2015 @ 5:45pm 
Put every group but user in the whitelist
chewie 19 Feb, 2015 @ 4:41pm 
So how would I disable the group "user" from using it?
Exho  [author] 19 Feb, 2015 @ 4:23pm 
Thats how the whitelist works
chewie 18 Feb, 2015 @ 7:57pm 
When I add the group {user, regular} to the whitelist section they can still use the command.
Exho  [author] 6 Feb, 2015 @ 1:52pm 
You would have to give the ammo after you game them a gun in the server file
InfamoussaltShaker 5 Feb, 2015 @ 7:04pm 
How can I make it so that when you get your load out you have full ammunition?
Exho  [author] 13 Jan, 2015 @ 2:34pm 
It was a blacklist but I changed it to make more sense
»« 12 Jan, 2015 @ 4:50pm 
I did. I put this in the lua file:
WL_Whitelist = {user, regular}

Everyone is still able to use it though. Also, it says blacklist in the comment, but whitelist in the actual option.
Exho  [author] 11 Jan, 2015 @ 5:47pm 
The config lua file. You will have to extract the addon
»« 11 Jan, 2015 @ 5:02pm 
I can't seem to make it so that only certain groups can use !loadout. Can someone tell me where to set that up?
Exho  [author] 10 Jan, 2015 @ 6:35pm 
Thats not how it works, this is not my best work and so I only coded it to work with the weapons I set it. The positions are hard coded
nathan00107 7 Dec, 2014 @ 10:05pm 
Do you think you could make this work with the 'TTT Weapons Collection' addon as most servers these days have this addon as an essential install. Here is the link for the addon. https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=194965598&requirelogin=true
squishy_dancer.ogg 20 Nov, 2014 @ 5:38pm 
:'(
Exho  [author] 20 Nov, 2014 @ 2:00pm 
You cant, sorry