🛠️Installation

Items Installation

['vehicle_inspection'] = {['name'] = 'vehicle_inspection', ['label'] = 'Vehicle Inspection', ['weight'] = 500, ['type'] = 'item', ['image'] = 'vehicle_inspection.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},

Metadata Installation

} else if (itemData.name == "vehicle_inspection") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        '<p><strong>Plate: </strong><span>' + itemData.info.plate + '</span></p>' +
        '<p><strong>Model: </strong><span>' + itemData.info.model + '</span></p>' +
        '<p><strong>Status: </strong><span>' + itemData.info.status + '</span></p>' +
        '<p><strong>Created At: </strong><span>' + itemData.info.created_at + '</span></p>' +
        '<p><strong>Expires At: </strong><span>' + itemData.info.expires_at + '</span></p>' +
        '<p><strong>Office Accepted: </strong><span>' + (itemData.info.office_accepted ? "Yes" : "No") + '</span></p>'
    );

Database Installation

CREATE TABLE IF NOT EXISTS `m_inspections` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `plate` varchar(20) NOT NULL,
  `char_id` varchar(100) NOT NULL,
  `vehicle_model` varchar(100) NOT NULL,
  `status` enum('valid','expired','suspended') NOT NULL DEFAULT 'valid',
  `reason` text DEFAULT NULL,
  `created_at` int(11) NOT NULL,
  `expires_at` int(11) NOT NULL,
  `office_accepted` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

Last updated