SySScripts
  • πŸ‘‹Welcome to SySScripts
  • ⁉️About us
  • scripts
    • πŸ›’Sys-Shops
    • β›½Sys-Fuel
    • πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘§Sys-Multicharacter
    • ⏸️Sys-Pausemenu
    • πŸ’―Sys-Scoreboard
Powered by GitBook
On this page
  • Installation
  • What needs to be Changed
  1. scripts

Sys-Multicharacter

A free script, Multi Character Feature reskinned and improved for QB-Core Framework

Installation

You have to copy the extracted folder "sys-multicharacter" to your resources directory

Remove your current multicharacter probably "qb-multicharacter"

In order for this script to work you have to execute the SQL file in your database. This last is going to create a table that stores the players pictures in base64 format.

CREATE TABLE `player_pictures` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`citizenid` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	`image` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
	PRIMARY KEY (`id`) USING BTREE,
	UNIQUE INDEX `citizenid` (`citizenid`) USING BTREE
)
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=1;

Make sure you start this script by adding the following line to your server.cfg

ensure sys-multicharacter

What needs to be Changed

In less than a minute you can configure this script to satisfy your needs.

  • Change `Config.Clothing` to your clothing system, currently `qb-clothing` and `illenium-appearance`. otherwise the script is not going to work properly.

  • Change `Config.Housing` to your housing system.

Other config options:

Config.Color: A hex color to chagne your UI skin
Config.EnableDeleteButton: Define if the player can delete the character or not
Config.SkipSelection: Skip the spawn selection and spawns the player at the last location
Config.DefaultNumberOfCharacters: Define maximum amount of default characters, Max 4 //ST4LTH
Config.PlayersNumberOfCharacters: {
    -- { license: "license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", numberOfChars: 2 },
    -- Define maximum amount of player characters by rockstar license (you can find this license in your server's database in the player table)
}

Other settings require a bit development knowledge, they are just vectors and positions for things that make the script work properly

PreviousSys-FuelNextSys-Pausemenu

Last updated 9 months ago

πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘§
Page cover image