# sam.Player.set\_rank\_id

> #### sam.Player.set\_rank\_id( [string](https://wiki.facepunch.com/gmod/string) steamid64, [string](https://wiki.facepunch.com/gmod/string) **rank,** *(*[*optional*](https://sam.goobie.me/info-read/optional)*)* [number](https://wiki.facepunch.com/gmod/number) **length** *=* *0* )

## Description

Set a player's rank through his SteamID64.

If the player is in the server then it fallbacks to [sam.Player.set\_rank](https://sam.goobie.me/api/player/functions/sam.player.set_rank)

## Aguments

1. #### [string](https://wiki.facepunch.com/gmod/string) steamid64
2. #### [string](https://wiki.facepunch.com/gmod/string) **rank**
3. #### *(*[*optional*](https://sam.goobie.me/info-read/optional)*)* [number](https://wiki.facepunch.com/gmod/number) **length** *=* *0*

   length is in minutes, 0 = indefinitely
