Revision Difference
Player:ShowProfile#527311
<function name="ShowProfile" parent="Player" type="classfunc">
<description>Opens the player steam profile page in the steam overlay browser.</description>
<realm>Client</realm>
</function>
⤶
⤶
<example>⤶
<description>Frame with all players and when click on it open Steam Profile</description>⤶
<code>⤶
local frame = vgui.Create("DFrame")⤶
frame:Center()⤶
frame:SetSize(300, 100)⤶
frame:SetTitle("Show Steam Profile")⤶
⤶
for k, v in pairs(player.GetAll()) do⤶
local addbutton = vgui.Create("DButton", frame)⤶
addbutton:SetPos((k * 75) - 50, 50)⤶
addbutton:SetSize(75, 20)⤶
addbutton:SetText(v:Name())⤶
⤶
addbutton.DoClick = function()⤶
v:ShowProfile()⤶
end⤶
end⤶
</code>⤶
<upload src="8e3f9/8d813044c539c3b.png" size="13108" name="image.png" />⤶
<output><image src="8e3f9/8d813044c539c3b.png"/></output>⤶
</example>⤶