Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...