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

Page Links


Special Pages


Wikis

?

Render Time: 32ms

DB GetPage 3
Generate Html 5
SaveChanges (1) 8
Render Body 0
Render Sidebar 12