This section provides a detailed explanation of the configuration options available for the Multicharacter script. You can customize these settings in the cfg.lua file to tailor the script to your server's needs.
1. Debug Mode
Enables or disables debug mode. This is useful for testing purposes.
cfg.debug =false-- Set to true to enable debug mode
2. Ped and Camera Coordinates
These settings define the initial position and orientation of the character ped and camera during character creation.
cfg.pedCoords =vec4(160.3552, -1071.0789, 29.4180, 176.0819)cfg.pedCamCoords =vec4(157.3552, -1071.0789, 29.4180, 360.0)cfg.cameraFov =45.0-- Field of View for the cameracfg.firstSpawn =vec4(147.3672, -1094.5345, 29.8439, 358.2464)
3. Manual Shutdown
If enabled, the script will require manual shutdown. This can be useful for preventing unexpected closures.
cfg.manualShutdown =true-- Set to true to enable manual shutdown
4. Character Slots
Defines the default number of free character slots available to players and whether characters can be deleted.
cfg.defaultFreeSlotAmount =1-- Number of free character slotscfg.canDeleteCharacter =true-- Allow players to delete characters
5. Starter Items
Determines whether players receive starter items when creating a new character and what those items are.
cfg.giveStarterItems =true-- Give players starter itemscfg.starterItems = { { name ='phone', amount =1 }, { name ='id_card', amount =1 }, { name ='driver_license', amount =1 }, { name ='money', amount =1000 }, { name ='burger', amount =2 }, { name ='cola', amount =2 },}
6. Prefix for ESX
Specifies the prefix used for ESX-related functionality. If you're not using ESX, you can leave this part untouched.
cfg.prefixForESX ="char" -- ESX prefix
7. Social Media Links
Allows you to add social media links that players can access within the script. Icons for these links can be customized.
cfg.socialMedias = { { icon ='FaInstagram', link ='https://www.instagram.com/stg/' }, { icon ='FaYoutube', link ='https://www.youtube.com/@stgStore' }, { icon ='FaDiscord', link ='https://discord.gg/stg' }}
8. Admin Settings
Lists the admins who can create new codes for character slots and the command used to create these codes.
cfg.createCodeCommand ='createCode' -- Command to create new codescfg.admins = { ['license:07c122ff7a5062360500154204bf46d8819d4a3e'] =true, ['license:ab9b8cd3eee69e54f1b7a6abe222b00ffe477f8c'] =true}
9. Character Models
Specifies the default models used for male and female characters.
cfg.models = { [0] ="mp_m_freemode_01", -- Male model [1] ="mp_f_freemode_01" -- Female model}
10. Default Clothing
Defines the default clothing and appearance settings for new characters. Separate settings are provided for male ("m") and female ("f") characters.