Eclipse CORE | Character Creation documentation
- Put
Eclipse_Core
&&Eclipse_CC
in your resource directory - Add ensure in your
server.cfg
Command | Description |
---|---|
ensure eclipse_Core |
You must ensure this resource the first |
ensure eclipse_CC |
just add it ;/ |
- MySql settings (resources\eclipse_Core\config\database.json)
- Turn on Mysql
- Load dump database in your mysql client
dump.zip - Change NUI language in
resources\eclipse_CC\config\config.json
. You can choose EN(English) and RU(Russian), for now
- Start your server
- Enjoy!
API
You can try doesn't use Eclipse Core and connect CharacterCreation for your framework(vRP, Esx, etc..)
ServerEvent | Data | Description |
---|---|---|
ECLIPSE:CreateCharacter |
string, string | This event triggered when you create your character. You get CharacterData https://pastebin.com/uD4EUVC5 and CharacterCloth https://pastebin.com/Npe1MEnK. You need diserialize(decode) it on server-side |
ECLIPSE:LoadCharacter |
int | It triggered when you choose character. It sends character id |
ECLIPSE:LoadCharactersList |
- | It triggered when you first spawn. You need make array with CharacterInfo https://pastebin.com/jEm4wrBM and CharacterData(for spawn ped) https://pastebin.com/uD4EUVC5 and than you need trigger client event ECLIPSE:StartCharactersCreation |
ClientEvent | Data | Description |
---|---|---|
ECLIPSE:StartCharactersCreation |
string, string | This event you need triggered when you want start character select. You need send two array. CharacterInfo https://pastebin.com/jEm4wrBM and CharacterData(for spawn ped). Correct example: ECLIPSE:StartCharactersCreation(charactersInfo, charactersData) |
For more question and works, help write in Discord. https://discord.gg/8nXR6rfB2C