Garry's Mod Wiki

Revision Difference

util.SteamIDFrom64#552161

<function name="SteamIDFrom64" parent="util" type="libraryfunc"> <description>Given a 64bit SteamID will return a STEAM_0: style Steam ID</description>⤶ <description>Given a <page text="64bit SteamID">Player:SteamID64</page> will return a <page text="STEAM_0:0:0">Player:SteamID</page> style Steam ID.⤶ ⤶ <note>This operation induces data loss. Not all fields of a 64bit SteamID can be represented using the `STEAM_0:0:0` format.</note>⤶ </description>⤶ <realm>Shared</realm> <file_name>src/garrysmod/Library/gl_util.cpp</file_name>⤶ <file_line>1295</file_line>⤶ <args> <arg name="id" type="string">The 64 bit Steam ID</arg> </args> <rets> <ret name="" type="string">STEAM_0 style Steam ID</ret>⤶ <ret name="" type="string">String <page text="STEAM_0:0:0">Player:SteamID</page> style Steam ID representation.</ret>⤶ </rets> </function>