GM:PlayerLoadout

From Garry's Mod
Jump to: navigation, search
 GM:PlayerLoadout( )

Contents

Description

Called to give players the default set of weapons.

NOTE 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

Player ply

Player to give weapons to.

Examples

Example

Gives the player only a pistol.

function GM:PlayerLoadout( ply )
	ply:Give( "weapon_pistol" )

	-- Prevent default Loadout.
	return true
end


Personal tools
Navigation