Skip to content

Commit c8ff349

Browse files
committed
Update GetCitizenId Docs
1 parent 987e935 commit c8ff349

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pages/it_bridge/exports/framework/server.mdx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,17 @@ local playerName = exports.it_bridge:GetPlayerName(player)
5757
print(playerName)
5858
```
5959

60-
## GetPlayerCitizenId
60+
## GetCitizenId
6161
```lua
62-
exports.it_bridge:GetPlayerCitizenId(player)
62+
exports.it_bridge:GetCitizenId(source)
6363
```
64-
- player: `object`: The player object.
64+
- source: `number`: The player's server ID.
6565

6666
Returns the the player's citizen ID. For every framework, the citizen ID is unique.
6767

6868
**Example**
6969
```lua
70-
local player = exports.it_bridge:GetPlayer(source)
71-
local citizenId = exports.it_bridge:GetPlayerCitizenId(player)
70+
local citizenId = exports.it_bridge:GetCitizenId(source)
7271
print(citizenId)
7372
```
7473

0 commit comments

Comments
 (0)