Installation · origen_vehiclehandling
1. SQL
Run install.sql against your database:
sql
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.
2. server.cfg
text
ensure oxmysql
ensure origen_vehiclehandling3. ACE permissions (optional)
By 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:
text
# 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.
4. License whitelist (optional)
If you want to grant access to specific players regardless of their group, add their identifiers to Config.Permissions.AllowedLicenses in config.lua:
lua
Config.Permissions = {
EnableLicenseWhitelist = true,
AllowedLicenses = {
'license:1234567890abcdef1234567890abcdef12345678',
}
}