Garry's Mod Wiki

Player:Frags

  number Player:Frags()

Description

Returns the amount of frags a player has.

The value will change depending on the player's kill or suicide: +1 for a kill, -1 for a suicide.

Returns

1 number
frags

Example

Prints the users frags in console.

print( Entity( 1 ):Frags() )
Output: 0