Garry's Mod

Garry's Mod

FA:S 2.0 Alpha SWEPs
Barkyns May 30, 2015 @ 8:34am
How to spawn weapon with only 1 magazine.
This tutorial only works for Desert Eagle and m1911.

Script looks like this :

...if SERVER then
AddCSLuaFile("shared.lua")
SWEP.ExtraMags = 6...

...if CLIENT then...
...-- Primary Fire Attributes --
SWEP.Primary.ClipSize = 7
SWEP.Primary.DefaultClip = 14
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = ".50 AE"...

You need to edit it to this :

...if SERVER then
AddCSLuaFile("shared.lua")
SWEP.ExtraMags = 0
SWEP.Primary.DefaultClip = 7...

...if CLIENT then...
...-- Primary Fire Attributes --
SWEP.Primary.ClipSize = 7
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = ".50 AE"...



Did somebody managed to do it on any other weapon ? Why does it work only on these weapons ?