🛠️Installation

Item Installation

aviator_license = { 
    name = 'aviator_license', 
    label = 'Aviator Licenses', 
    weight = 10, 
    type = 'item', 
    image = 'aviator_license.png', 
    unique = true, 
    useable = true, 
    shouldClose = true, 
    description = '' 
}, 

Metadata Installation

} else if (itemData.name == "aviator_license") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "<p><strong>Name: </strong><span>" +
        itemData.info.name +
        "</span></p><p><strong>Description: </strong><span>" +
        itemData.info.description +
        "</span></p>"
    );

Database Installation

CREATE TABLE IF NOT EXISTS `aviator_licenses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `charid` varchar(50) NOT NULL,
  `owner_name` varchar(50) NOT NULL,
  `owner_licenses` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`owner_licenses`)),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

Jobs Installation

['aviator'] = {
	label = 'Aviator',
	grades = { 
		['0'] = { name = 'Recruit'},
		['1'] = { name = 'Teacher' },
		['2'] = { name = 'Boss', isboss = true },
	},
},

Last updated