Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.71 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.71 KB

[CRC][TS] Select Character

Supported by CRC

Character creation menu that follows the character selection menu.

Requires

Highly recommended to get the extension, for better event handling.

Installation

  1. Create a folder in your src folder called crc-create-character.

  2. Add the TypeScript files from this resource, to that folder.

  3. Modify server.toml and ensure it loads whatever you named the folder.

In the case of the example above it should be crc-create-character.

resources = [ 
    'crc-db',
    'crc-native-menu',
    'crc-instructional-buttons',
    'crc-discord-login',
    'crc-create-character'
    'watch-resources'
]

Your resource structure may vary

Developers

  • Selection will immediately follow the login plugins.
  • A selection event or creation event will be pushed after selection.

Server Events

crc-create-character-finish

This is called after the Appearance data has been written to the Database.

alt.on('crc-create-character-finish', (player: alt.Player, _id: string) => {
    console.log(`Their MongoDB 'characters' document ID is ${_id}`);
})