🛠️Installation
Items Installation
Metadata Installation
If you are using ox_inventory or qb-inventory new version, ignore this step.
} 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
You have the option Config.AutoDatabase on config.lua file to insert this automatic.
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