Player.GetFriendStatus
From GMod Wiki
Function | |
Syntax | Player:GetFriendStatus( ) |
Description: | |
Returns if the person is a steam friend. | |
Returns: | String |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.GetFriendStatus]Player.GetFriendStatus [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Simple way to find if a person is a friend. |
---|---|
Used on | |
Code | function IsSteamFriend( ply ) return ply:GetFriendStatus() == "friend" end |
Output | True if the player is a friend, false otherwise. |
Additional Notes
- Should return one of four different things depending on their status on your friends list. Returns "friend", "blocked", "none", or "requested".