Garry's Mod Wiki

GM:PlayerLoadout

  GM:PlayerLoadout( Player ply )

Description

Called to give players the default set of weapons.

This function may not work in your custom gamemode if you have overridden your GM:PlayerSpawn and you do not use self.BaseClass.PlayerSpawn or hook.Call.

Arguments

1 Player ply
Player to give weapons to.

Example

Gives the player only a pistol.

function GM:PlayerLoadout( ply ) ply:Give( "weapon_pistol" ) -- Prevent default Loadout. return true end