Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add License Types & Providers #416

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,29 @@ GetPlayerIdentifiers(Player player)
### Required arguments
- **player**: The ID of the player to get the identifiers from.

License Types
--------

| Type ID | Provider | Type | Data Type |
|------------|--------------------------|---------------------------------------------------------------------------|-----------|
| `steam` | Steam | [Steam Id](https://partner.steamgames.com/doc/webapi/isteamuserauth) | hex |
| `discord` | Discord | [User Id](https://discord.com/developers/docs/resources/user#user-object) | int |
| `xbl` | Xbox Live | | int |
| `live` | Microsoft PUID | Passport Unique Identifier | int |
| `license` | Rockstar Online Services | Hash | hex |
| `license2` | Rockstar Online Services | Hash | hex |
| `fivem` | CFX.re | User Id | int |
| `ip` | IP Address | IPv4 | string |

\* `licence2` - This identifier is present if the user has switched Social Club accounts

** `license2` - This can be the same value as `license`


Examples
--------

Check for all possible identifiers using this method; works well when triggered by playerConnecting event.
Check for commonly used identifiers with this method; works well when triggered by the `playerConnecting` event.
TheGamerzs marked this conversation as resolved.
Show resolved Hide resolved

```lua
local steamid = false
Expand Down