Admin Tools
Installation
No SQL — it uses your existing vehicle table. Set your keys event and webhook, then start it.
Steps
1
Copy the resource
Place the
dh_admin folder in your resources directory.2
Check the vehicle table
ESX defaults to
owned_vehicles / owner, QBCore to player_vehicles / citizenid. Change Config.VehicleTable if yours differ.3
Point at your keys resource
Set
Config.SetOwnerEvent to the client event your vehicle keys resource uses.4
Set the webhook
Put your Discord webhook in
webhook.lua, or leave it empty to turn logs off.5
Add to server.cfg
After your framework, ox_lib, ox_inventory and oxmysql.
server.cfg
server.cfg
ensure oxmysql
ensure ox_lib
ensure ox_inventory
# framework (one of):
ensure es_extended
# ensure qb-core
ensure dh_admin
Who counts as admin
- ESX: players whose group is
admin./admingivealluses ESX's ownadmincommand permission - QBCore: players with the
adminpermission
Troubleshooting
"This vehicle is not owned." — The plate isn't in your vehicle table, or
Config.VehicleTable doesn't match your schema.New owner has no keys — Set
Config.SetOwnerEvent to your keys resource's event.QBCore car added but won't spawn — The insert assumes the standard
player_vehicles columns and pillboxgarage. Adjust Bridge.InsertVehicle in server.lua if your schema differs.No Discord logs — Check the URL in
webhook.lua.