πΏInstallation
Discover how to install your script.
β’ STEP 1: DEPENDENCIES
Make sure the folder name is zr-multicharacter and that you have the following resources installed in your server!
oxmysql.
esx or qbcore (if you have different core name, you must change that in the config file).
zr-identity. (both versions are compatible)
β’ STEP 2: START ORDER
ensure zr-identity
ensure zr-multicharacter
Important for ESX !
Make sure in es_extended -> config.lua to change
Config.Multichar = GetResourceState("esx_multicharacter") ~= "missing"
And make it :
Config.Multichar = true
Config.Identity = true
β’ STEP 3: DATABASE
DATABASE FOR QBCORE
CREATE TABLE IF NOT EXISTS `players` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`citizenid` varchar(50) NOT NULL,
`cid` int(11) DEFAULT NULL,
`license` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`money` text NOT NULL,
`charinfo` text,
`job` text NOT NULL,
`gang` text,
`position` text NOT NULL,
`metadata` text NOT NULL,
`inventory` longtext,
`last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`citizenid`),
KEY `id` (`id`),
KEY `last_updated` (`last_updated`),
KEY `license` (`license`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
COMMIT;
CREATE TABLE IF NOT EXISTS `users` (
`identifier` varchar(46) NOT NULL,
`accounts` longtext,
`group` varchar(50) DEFAULT 'user',
`inventory` longtext,
`job` varchar(20) DEFAULT 'unemployed',
`job_grade` int(11) DEFAULT '0',
`loadout` longtext,
`position` varchar(255) DEFAULT '{"x":-269.4,"y":-955.3,"z":31.2,"heading":205.8}',
`firstname` varchar(16) DEFAULT NULL,
`lastname` varchar(16) DEFAULT NULL,
`dateofbirth` varchar(10) DEFAULT NULL,
`sex` varchar(1) DEFAULT NULL,
`height` int(11) DEFAULT NULL,
`skin` longtext,
`status` longtext,
`is_dead` tinyint(1) DEFAULT '0',
`id` int(11) NOT NULL AUTO_INCREMENT,
`disabled` tinyint(1) DEFAULT '0',
`last_property` varchar(255) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`last_seen` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`phone_number` int(11) DEFAULT NULL,
`pincode` int(11) DEFAULT NULL,
PRIMARY KEY (`identifier`),
UNIQUE KEY `id` (`id`),
UNIQUE KEY `index_users_phone_number` (`phone_number`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
COMMIT;
Last updated