Player.Give
From GMod Wiki
Function | |
Syntax | Player:Give( String item ) |
Description: | |
Give the player an item. | |
Returns: | Entity |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.Give]Player.Give [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This example will give the player a crowbar. |
---|---|
Used on | |
Code | Player:Give("weapon_crowbar") |
Output | N/A |
Additional Notes
- The item can be any of the default items supplied with the game (weapon_crowbar, weapon_stunstick, weapon_physcannon, weapon_physgun, weapon_pistol, weapon_357, weapon_smg1, weapon_ar2, weapon_shotgun, weapon_crossbow, weapon_annabelle, weapon_frag, weapon_rpg, weapon_slam, weapon_bugbait, item_ml_grenade, item_ar2_grenade, item_ammo_ar2_altfire, item_healthkit, item_healthvial, item_suit, item_battery, gmod_camera, gmod_tool) or a SWEP.
- If the name of a normal entity is given, it will spawn at the player's feet.