Home › Documentation › Installation · origen_vehiclehandling
Run install.sql against your database:
DROP TABLE IF EXISTS `origen_vehiclehandling`;
CREATE TABLE IF NOT EXISTS `origen_vehiclehandling` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`model` varchar(50) NOT NULL,
`category` varchar(50) DEFAULT 'General',
`handling_data` longtext NOT NULL DEFAULT '{}',
PRIMARY KEY (`id`),
UNIQUE KEY `model` (`model`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;The resource also runs a CREATE TABLE IF NOT EXISTS automatically on every start, so the SQL file is only strictly required if you want to ensure a clean state before the first boot.
ensure oxmysql
ensure origen_vehiclehandlingBy default the resource falls back to origen_admin, QBCore/ESX groups, or the admin / command ACE nodes.
If you prefer explicit ACE control, add the following to your server.cfg:
# Full management access (open menu, save, delete)
add_ace group.admin origen.vehiclehandling allow
# Live-edit access only (apply changes to a vehicle in real time)
add_ace group.moderator origen.vehiclehandling.liveedit alloworigen.vehiclehandling.liveedit grants access to the Live Handling editor only — it does not allow saving or deleting entries from the database.
If you want to grant access to specific players regardless of their group, add their identifiers to Config.Permissions.AllowedLicenses in config.lua:
Config.Permissions = {
EnableLicenseWhitelist = true,
AllowedLicenses = {
'license:1234567890abcdef1234567890abcdef12345678',
}
}