01客户端导出
| 导出 | 说明 |
|---|---|
IsOpen() | True while the character selection is open. |
OpenSelection() | Opens the selection, for example from your own logout button. |
02服务端导出
| 导出 | 说明 |
|---|---|
GetCharacter(source) | The loaded character (standalone: the full record). |
GetCharacterId(source) | citizenid, ESX identifier or agency:<id> of the loaded character. |
IsInSelection(source) | True while the player is in the selection. |
GetSlots(license) | Slots of a licence. |
AddSlots(license, amount) | Adds slots, returns the new total. |
Logout(source) | Saves the character and opens the selection. |
03事件
| 名称 | 端 | 说明 |
|---|---|---|
agency-multicharacter:server:loaded | 服务端 | A character was loaded or created (source, charid, isNew). |
agency-multicharacter:server:deleted | 服务端 | A character was deleted (source, charid). |
agency:selection | 客户端 | true while a selection screen is open, HUDs can hide themselves. |
