Garry's Mod Wiki

Garry's Mod Wiki

  Player:ShowProfile()

Description

Opens the player steam profile page in the steam overlay browser.

Example

Frame with all players and when click on it open Steam Profile.

local frame = vgui.Create( "DFrame" ) frame:Center() frame:SetSize( 300, 100 ) frame:SetTitle( "Show Steam Profile" ) for i, ply in ipairs(player.GetHumans()) do local addbutton = vgui.Create( "DButton", frame ) addbutton:SetPos( ( i * 75 ) - 50, 50 ) addbutton:SetSize( 75, 20 ) addbutton:SetText( ply:Name() ) addbutton.DoClick = function() ply:ShowProfile() end end

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...