Player.AddFrags

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:AddFrags( Integer Frags )
Description:
Increases the number of frags by a specified number.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.AddFrags]Player.AddFrags [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionAdd 10 Frags to the player with the index 1.
Used onNewerServer.png
Code
player.GetAll(1):AddFrags(10)
OutputNone


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox