Files
overextended.github.io/pages/ox_core/Player/Client.mdx
T
2023-06-04 15:15:21 +02:00

18 lines
402 B
Plaintext

When ox_core is imported into a resource it will create the `player` global.
If `player` is nil, then the client has not yet selected a character and spawned.
**Example:**
```lua
print(json.encode(player, { indent = true }))
```
- player?: `table`
- name: `string`
- firstname: `string`
- lastname: `string`
- userid: `number`
- charid: `number`
- groups: `table`
- gender: `string`