Garry's Mod

Garry's Mod

random weapons at respawn
51 Comments
【nutmeg】 24 Mar @ 2:06pm 
Hey man I know you probably won't see this but I absolutely love your mod, the ease of use and everything else is just great. I was wondering if there is anyway to increase the cap of the given weapons at respawn? Let me know if you can thanks :)).
K-los 2 Mar @ 10:37am 
next time you want a devleoper to add something for YOUR comfort, be nice about it
Slag 28 Apr, 2024 @ 6:14pm 
for christ sake, pleae make it so you can delete a specific weapon from the list instead of having to CLEAR IT ALL just to get rid of one thing, i had 100 weapons in a list, and i accidently added a admin thing, and i had to remove all 100, just to remove that 1 thing, so please fix this
Mirage 25 Apr, 2024 @ 4:59pm 
So.... It doesn't give RANDOM weapons from the list, its gives ALL the weapons from the list. weird. :steamfacepalm:
jermapilled 22 Sep, 2023 @ 1:26am 
[random weapons at respawn] lua/autorun/expertdao_random_weapon_after_spawn.lua:255: bad argument #1 to 'len' (string expected, got nil)
1. len - [C]:-1
2. LoadFromFile - lua/autorun/expertdao_random_weapon_after_spawn.lua:255
3. DoClick - lua/autorun/expertdao_random_weapon_after_spawn.lua:524
4. unknown - lua/vgui/dlabel.lua:237
Vidgamenut 12 Jul, 2023 @ 6:52pm 
Great mod.
father grigori 8 Jul, 2023 @ 5:36pm 
is there a way i can get this to work on gamemodes without the spawnmenu?
combine soldier 13 May, 2023 @ 11:09am 
Был годовой пресет, жалко не работает. Ошибка

[random weapons at respawn] lua/autorun/expertdao_random_weapon_after_spawn.lua:255: bad argument #1 to 'len' (string expected, got nil)
1. len - [C]:-1
2. LoadFromFile - lua/autorun/expertdao_random_weapon_after_spawn.lua:255
3. DoClick - lua/autorun/expertdao_random_weapon_after_spawn.lua:524
4. unknown - lua/vgui/dlabel.lua:237
CollChuuk 26 Mar, 2023 @ 11:33pm 
Doesn't seem to be working. Getting the following error:

[random weapons at respawn] lua/autorun/expertdao_random_weapon_after_spawn.lua:1160: attempt to index local 'weapon' (a nil value)
1. GiveWeaponAndAmmoToPlayer - lua/autorun/expertdao_random_weapon_after_spawn.lua:1160
2. GiveAllWeaponsFromTransferredList - lua/autorun/expertdao_random_weapon_after_spawn.lua:1219
3. func - lua/autorun/expertdao_random_weapon_after_spawn.lua:1244
4. unknown - lua/includes/extensions/net.lua:33
Imrgrim 9 Mar, 2023 @ 11:07am 
Is there a way to make it run everytime i start the game?
Syzzor 19 Nov, 2022 @ 10:30am 
if you want to add me I can send screenshots to show the problem. thanks
Syzzor 19 Nov, 2022 @ 10:30am 
I tried that addon and it does give me ammo at spawn, but only reserve ammo. the magazine inside any weapon is empty (I tested with gmod weapons and modern warfare weapons). that addon fixes a bit of the problem, but the weapons come with zero bullets to shoot, we need to reload before and that is extremly annoying... thank you for trying to help tho, I appreciate it...
expertdao  [author] 19 Nov, 2022 @ 10:24am 
After another update gmod developers broke the function
Weapon Player:Give( string weaponClassName, boolean bNoAmmo = false )
which should return a weapon entity.
Now The function always returns nil.
So the ammo doesn't work.
there is a good addon, it will help
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=651030150
Syzzor 19 Nov, 2022 @ 10:02am 
I'm having an issue that everything is spawning without ammo, even after I set it all to 9999. And it even remove the ammo default inside the gun... Is it possible to fix this? I use this to play with friends but now we cant play.... Thank you
Syzzor 19 Nov, 2022 @ 7:45am 
my weapons are now spawning with no ammo on them...
Smallbuster 19 Nov, 2022 @ 6:45am 
Your back after 5 years! Sick to see an update to this awesome mod.:cq2happy:
expertdao  [author] 19 Nov, 2022 @ 5:59am 
enjoy
Apothem | #FIXTF2 16 Aug, 2022 @ 12:37pm 
does not work, it just gives me the first weapon in the list, plz fix
Smallbuster 30 May, 2022 @ 5:23am 
@Commie_egg I believe so that's what the other selves are fro the 1, 2, 3 buttons above the list.
slav egg 30 May, 2022 @ 12:43am 
Is it possible to have multiple weapons at the same time?
Nigel From Half Life 11 Mar, 2022 @ 11:10am 
this is like fiesta in halo
GamingSportsCar19084208 5 Feb, 2022 @ 6:40pm 
For those having an issue changing the time delay, you can change it in the console.
put expertdao.rwas.ConVar.TheTimeDelayBeforeDeliveryOfWeapons into the console followed by the time delay you want.:muney::muney::muney::muney:
Syzzor 8 Nov, 2021 @ 3:03am 
Why cant I ever change the time delay?
Cloudy 20 Sep, 2021 @ 10:48pm 
Can I change it so it doesn't affect everyone in the server?
samolivarez 9 Aug, 2021 @ 12:51pm 
How is it working for everyone? mine says that the hook engine isn't working
박태명 29 Mar, 2021 @ 8:46pm 
How do you use this?
This is not random
The weapon of choice comes to me
Nerd 28 Mar, 2021 @ 6:07pm 
Is there console commands i could use to enable this on another gamemode?

I want to be able to fight people with randomized weapons without the risk of them cheating by spawning things in with the spawn menu.
SilkMoth 12 Feb, 2021 @ 1:05am 
How do i make it have a empty slot that gives you no weapon?
76561198167566727 2 Nov, 2020 @ 8:24am 
I want to add every weapon in the server all at once, how?
ByEverly 21 Aug, 2020 @ 2:37pm 
YEEEEEEEEEEEEES THAT'S WHAT I EXACTLY WAS LOOKING FOR!
THANKS DUUUUUUDE!!!!!!
Salil Al-Sawarim 400BPM Edit 15 Aug, 2020 @ 2:57pm 
Mind making it easier to delete weapons that have been added? I have to clear the preset every time I make a mistake
Smallbuster 7 Aug, 2020 @ 6:17am 
@ShadowGhost0x01 Just tested it and it still seems to work so It must be on your end.
ShadowGhost0x01 7 Aug, 2020 @ 12:29am 
Seems that this tool has broken or incompatible..I use it about 3years ago and it worked properly however now it can only spawn a weapon and stop running,so sad.
L Rizz 6 Mar, 2020 @ 11:27am 
Uhhh, why cant i select my entire weapons and drop them all in, why do i have to do it 1 by 1? plz fix
Smallbuster 18 Aug, 2019 @ 3:38pm 
@Bassictan Try putting less item's in the randomizer
[SFBOT] Sgt. K. Bassiclan 18 Aug, 2019 @ 3:35pm 
The addon causes high ping for whoever joins my server
[SFBOT] Sgt. K. Bassiclan 10 Aug, 2019 @ 5:59pm 
What does step 4 say?
VaneZ 30 Jun, 2019 @ 10:09am 
expertdao, please help,when i do all from instructions,all weapons spawned from the list,not a random
BIG GUY 8 Jun, 2019 @ 6:03pm 
s u g o i !
ilya 19 Apr, 2019 @ 9:40am 
Ну у меня из идей к названию только ( Random Weapon Loadout . Random Weapon Sets ) или что то типо Random Weapon Giver???
Smallbuster 19 Apr, 2019 @ 3:37am 
If you can just add a few touch ups like getting melee weapons to work and other samll inprovments. This addon can become top tear. I love it so much
expertdao  [author] 19 Apr, 2019 @ 12:41am 
Thank you.
What would you call this addon? I think my addon is hard to find...
ilya 9 Apr, 2019 @ 9:52am 
very cool
Turtofraise 24 Mar, 2019 @ 4:25am 
Really underrated addon.
Very useful for deathmatches!

The only thing it needs is maybe a second random weapon setup.
When the first random weapon doesn't have ammo anymore,a second melee weapon would be nice!
Smallbuster 12 Feb, 2019 @ 1:13pm 
I don't Know what happend you have any idea's I love this addon ut this bug won't let it start the random weapons.

[random weapon after death] lua/includes/extensions/net.lua:182: net.ReadType: Couldn't read type 240
1. error - [C]:-1
2. ReadType - lua/includes/extensions/net.lua:182
3. ReadType - lua/includes/extensions/net.lua:121
4. ReadTable - lua/includes/extensions/net.lua:124
5. func - lua/autorun/expertdao_random_weapon_after_spawn.lua:1229
6. unknown - lua/includes/extensions/net.lua:32
Trigger (D-962) 8 Jul, 2018 @ 12:57pm 
how i delete a weapon from my list?
[[Frimpimy]] 10 Apr, 2018 @ 5:50pm 
This mod is cool pls touch it up and make it better

I'd love you for that
S. HITMAN 22 Dec, 2017 @ 9:58pm 
I think the recent update broke this mod.

[random weapon after death] lua/autorun/expertdao_random_weapon_after_spawn.lua:1160: attempt to index local 'weapon' (a nil value)
1. GiveWeaponAndAmmoToPlayer - lua/autorun/expertdao_random_weapon_after_spawn.lua:1160
2. GiveAllWeaponsFromTransferredList - lua/autorun/expertdao_random_weapon_after_spawn.lua:1219
3. func - lua/autorun/expertdao_random_weapon_after_spawn.lua:1244
4. unknown - lua/includes/extensions/net.lua:32
S. HITMAN 2 Oct, 2017 @ 9:05pm 
Can you add an extension to this addon that doesn't allow the player to spawn weapons?
ticorex 30 Sep, 2017 @ 9:46am 
hey, thats pretty good