Player.GetFriendStatus

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:GetFriendStatus( )
Description:
Returns if the person is a steam friend.
Returns: String
In Object: Player
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetFriendStatus]Player.GetFriendStatus [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSimple way to find if a person is a friend.
Used onNewerClient.png
Code
function IsSteamFriend( ply )
   return ply:GetFriendStatus() == "friend"
end
OutputTrue if the player is a friend, false otherwise.


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox