Garry's Mod

Garry's Mod

TTT - Loadout Menu
109 条留言
[3k-36] JAMES 2022 年 10 月 11 日 上午 2:45 
I try it doesn't work I just typing ! bom not working
Afuro 2021 年 11 月 11 日 上午 11:01 
Does this support m9k weapons too?
mexikoedi 2019 年 10 月 28 日 上午 7:44 
It is not working correctly with TTT2, sometimes i dont get my loadouts and sometimes i get my loadouts?
SovetskiDuck 2019 年 7 月 14 日 下午 9:00 
how do you add user groups, do you need to add a line for blacklisting?
S. HITMAN 2017 年 8 月 28 日 下午 4:32 
can you make a seperate mod that makes you automatically spawn with the default pistol?
Two-Tu 2017 年 8 月 21 日 下午 12:04 
How do I add ammo to be spawned at the start of the round?
Mint 2017 年 6 月 15 日 下午 12:40 
Hey, Exho how do you add groups that are aloud to use it:
loadout.whitelist = {}
Reaper 2016 年 11 月 16 日 上午 11:53 
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 2016 年 11 月 13 日 下午 3:17 
Hi, where is the config to edit what groups can use it? I cannot find it.
Nate C. Traxler 2016 年 10 月 28 日 下午 3:47 
Can you make a sandbox version of this?
PeffTayne 2016 年 6 月 27 日 上午 11:19 
it works some rounds, others it doesn't, and there is no error message
PeffTayne 2016 年 6 月 25 日 上午 11:46 
how do i add custom weapons from steam workshop to this?
☠ Peasants ☠ 2016 年 4 月 11 日 上午 12:27 
How can i change he amount of ammo a player spawns with?
Exho  [作者] 2016 年 1 月 16 日 下午 3:20 
Its stored on the server's SQL server as PData. I'm not familiar with how to wipe data from there en masse
Exho  [作者] 2016 年 1 月 15 日 下午 5:01 
Yeah I believe it should if you add them to the config
-Pax12- 2016 年 1 月 15 日 下午 4:34 
this works with ttt weapons like css pack for ttt? (load tmp, p225 for example) thanks :D
Robbobb 2015 年 5 月 26 日 下午 6:11 
Oh ok
Exho  [作者] 2015 年 5 月 26 日 下午 6:07 
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 2015 年 5 月 26 日 下午 5:00 
Maybe in the future you can?
Exho  [作者] 2015 年 5 月 20 日 上午 11:50 
I dont plan on doing that, sorry
Vipes 2015 年 5 月 20 日 上午 8:57 
Can you make one that supports other gamemodes?
Zipping Horizon 2015 年 5 月 2 日 下午 11:54 
is there a sandbox version of this somewhere?
Lourie Parker 2015 年 4 月 1 日 下午 11:35 
Oh okay :3 But you anyway understood what I meant. Thanks for help. I hope I'll have some more experience withi that..
Exho  [作者] 2015 年 4 月 1 日 下午 12:42 
Z is the vertical vector in Source :p
Lourie Parker 2015 年 4 月 1 日 上午 10:01 
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 2015 年 4 月 1 日 上午 9:55 
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  [作者] 2015 年 4 月 1 日 上午 7:58 
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 2015 年 4 月 1 日 上午 7:30 
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  [作者] 2015 年 3 月 31 日 下午 12:57 
Wow that looks really good!
Lourie Parker 2015 年 3 月 31 日 上午 10:16 
http://savepic.net/6593742.jpg Just added some more weapons, third button, settings tab strings and translated to Russian :D
Exho  [作者] 2015 年 2 月 22 日 下午 1:05 
Fixed the smoke grenade issue, thanks
the.3null.4player.6.13.3.10. 2015 年 2 月 22 日 下午 12:29 
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. 2015 年 2 月 22 日 下午 12:16 
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 2015 年 2 月 19 日 下午 8:23 
Thanks so much man :D
Exho  [作者] 2015 年 2 月 19 日 下午 6:15 
The names need to be in quotes like "VIP" because they are strings, not variables.
chewie 2015 年 2 月 19 日 下午 6:10 
http://gyazo.com/1aab0dbd7c6342fd8ced525013d2811b < this is what I did but "user" can still use it
Exho  [作者] 2015 年 2 月 19 日 下午 5:45 
Put every group but user in the whitelist
chewie 2015 年 2 月 19 日 下午 4:41 
So how would I disable the group "user" from using it?
Exho  [作者] 2015 年 2 月 19 日 下午 4:23 
Thats how the whitelist works
chewie 2015 年 2 月 18 日 下午 7:57 
When I add the group {user, regular} to the whitelist section they can still use the command.
Exho  [作者] 2015 年 2 月 6 日 下午 1:52 
You would have to give the ammo after you game them a gun in the server file
InfamoussaltShaker 2015 年 2 月 5 日 下午 7:04 
How can I make it so that when you get your load out you have full ammunition?
Exho  [作者] 2015 年 1 月 13 日 下午 2:34 
It was a blacklist but I changed it to make more sense
»« 2015 年 1 月 12 日 下午 4:50 
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  [作者] 2015 年 1 月 11 日 下午 5:47 
The config lua file. You will have to extract the addon
»« 2015 年 1 月 11 日 下午 5:02 
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  [作者] 2015 年 1 月 10 日 下午 6:35 
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 2014 年 12 月 7 日 下午 10:05 
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. http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=194965598&requirelogin=true
squishy_dancer.ogg 2014 年 11 月 20 日 下午 5:38 
:'(
Exho  [作者] 2014 年 11 月 20 日 下午 2:00 
You cant, sorry