Garry's Mod Wiki

Revision Difference

Player:GetFriendStatus#512738

<function name="GetFriendStatus" parent="Player" type="classfunc">⤶ <description>Returns the steam "relationship" towards the player.</description>⤶ <realm>Client</realm>⤶ <rets>⤶ <ret name="" type="string">Should return one of four different things depending on their status on your friends list: "friend", "blocked", "none" or "requested".</ret>⤶ </rets>⤶ </function>⤶ ⤶ <example>⤶ <description>Prints the steam relationship towards another player</description>⤶ <code>print(ply:GetFriendStatus())</code>⤶ <output>"friend"</output>⤶ ⤶ </example>