Admin Tools
Configuration
Settings are in config.lua. The Discord webhook is in webhook.lua.
config.lua
Config.Cooldown = 30 -- seconds between /givecarkey uses
Config.NotifyTitle = 'Vehicle System'
Config.VehicleTable = {
esx = { table = 'owned_vehicles', ownerColumn = 'owner' },
qb = { table = 'player_vehicles', ownerColumn = 'citizenid' },
}
Config.SetOwnerEvent = {
esx = 'vehiclekeys:client:SetOwner',
qb = 'vehiclekeys:client:SetOwner',
}
webhook.lua
Config.DiscordWebhook = '' -- your Discord webhook URL, or '' to disable
webhook.lua is loaded as a shared script, which means it's sent to every player's game client and anyone can read the URL. Treat the webhook as public, and replace it if it gets spammed.