Customizations
Customizations for Advanced PubCop.
Customizations
Advanced PubCop includes an editable cl_customize.lua file for common server-specific integrations. This file is meant for notification systems and custom vehicle key systems, so buyers normally do not need to edit client.lua or server.lua.
When To Use This File
- Use TeedleCustomNotify() when Config.NotifySystem = 'custom'.
- Use TeedleCustomGiveVehicleKeys() when Config.VehicleKeys = 'custom'.
- Leave this file alone if you are using the built-in qb, ox_lib, wasabi, chat, none, or default QBCore vehicle key options.
- Keep changes inside cl_customize.lua unless Teedle Scripts support specifically tells you to edit core files.
Custom Notifications
Set Config.NotifySystem = 'custom' in config.lua, then add your notify event/export inside TeedleCustomNotify(message, notifyType, title, duration).
Custom Vehicle Keys
Set Config.VehicleKeys = 'custom' in config.lua, then add your key event/export inside TeedleCustomGiveVehicleKeys(vehicle, plate). This is where servers can support systems such as qs-vehiclekeys, cd_garage, Renewed-Vehiclekeys, wasabi_carlock, or another custom key script.
cl_customize.lua
cl_customize.lua
--[[
Teedle Scripts - Community Officer Resource
cl_customize.lua
This file is intentionally editable.
Use this file if your server uses a custom notification system or custom
vehicle key system. You usually do NOT need to edit client.lua/server.lua.
]]
function TeedleCustomNotify(message, notifyType, title, duration)
-- This function only runs when Config.NotifySystem = 'custom'.
-- notifyType examples: 'success', 'error', 'primary', 'info'.
-- Example: custom event style
-- TriggerEvent('your_notify:client:Notify', message, notifyType, duration)
-- Example: custom export style
-- exports['your_notify']:Notify(message, notifyType, duration)
-- Fallback while custom notify is not configured.
print(('[Community Officer] Custom notify selected but not configured: [%s] %s'):format(tostring(notifyType), tostring(message)))
end
function TeedleCustomGiveVehicleKeys(vehicle, plate)
-- This function only runs when Config.VehicleKeys = 'custom'.
-- Use this for qs-vehiclekeys, cd_garage, Renewed-Vehiclekeys, wasabi_carlock,
-- or any other key system your server uses.
if not vehicle or vehicle == 0 then return false end
if not plate or plate == '' then return false end
-- Example: client event style
-- TriggerEvent('your-keys-resource:client:GiveKeys', plate)
-- Example: server event style
-- TriggerServerEvent('your-keys-resource:server:GiveKeys', plate)
-- Example: export style
-- exports['your-keys-resource']:GiveKeys(plate)
print(('[Community Officer] Custom vehicle keys selected but not configured for plate: %s'):format(tostring(plate)))
return false
end
Next
Common Issues & Fixes
→
Last updated August 6, 2026