Configuration
Instructions & guide on configuration t1ger_lib
Config.Debug
Config.Debug = true -- Enable or disable debug printsType:
booleanDescription: Enables or disables debug prints.
Usage: Set to
trueto enable debug prints. Set tofalseto disable them.
Config.Triggers
-- Framework Triggers:
Config.Triggers = { -- Triggers to update if you've changed them or if your anticheat requires it:
['ESX'] = { -- update your triggers/event-names here if changed:
resource = 'es_extended', -- esx resource name
obj = 'esx:getSharedObject',
load = 'esx:playerLoaded',
job = 'esx:setJob'
},
['QB'] = { -- update your triggers/event-names here if changed:
resource = 'qb-core', -- qb-core resource name
obj = 'QBCore:GetObject',
load = 'QBCore:Client:OnPlayerLoaded',
job = 'QBCore:Client:OnJobUpdate',
uObjCL = 'QBCore:Client:UpdateObject',
uObjSV = 'QBCore:Server:UpdateObject',
dutyToggle = 'QBCore:ToggleDuty',
},
} -- Do not delete anything from here!!!Do not deleting anything from these options. Only change the trigger names if you are instructed so by your anticheat or if you have some kind of custom triggers.
Config.PoliceJobs
Config.PoliceJobs = {['police'], ['lspd']} -- Whitelisted police jobsDefines the whitelisted police jobs used to fetch the online police count. Customize this list to match the job names used in your framework.
Type:
tableDefault:
{['police'], ['lspd']}Description: Specifies the police jobs that are whitelisted for counting online police.
Usage: Add or remove job names based on your framework's job definitions for police roles.
Config.PoliceNotification
Config.PoliceNotification = 'default' -- Set the police notification methodSets the method of police notifications for alerts.
Type:
stringDefault:
'default'Options:
'default'- Built-in police alerts.'cd_'- Use Codesign alerts.'custom'- Use a custom notification system (requires implementation inTriggerPoliceNotificationfunction int1ger_lib/utils.lua).
Config.AcePermissions
Config.AcePermissions = {'command'} -- Ace permissions for admin accessSpecifies the Ace permissions used to check if a player has admin access or specific permissions.
Type:
tableDefault:
{'command'}Description: Contains Ace permissions to provide admin access to commands. Modify to include additional permissions as required.
Usage: Add permissions that should be checked for admin access or other command permissions.
Config.UseFrameworkNotification
Config.UseFrameworkNotification = false -- Use framework notifications or customDetermines whether to use the default framework (ESX/QB) notifications or a custom notification system.
Type:
booleanDefault:
falseDescription: Set to
trueto use the default ESX/QB notifications. Set tofalseto use a custom notification system defined inLib.Notification.
Config.VehicleKeys
Config.VehicleKeys = 'default' -- Set the vehicle keys handling methodSpecifies the method for handling vehicle keys.
Type:
stringDefault:
'default'Options:
'default'- Uses native checks for locked/unlocked status.'t1ger-keys'- Usest1ger_keysexports.'custom'- Uses a custom vehicle keys system.
Config.VehiclePrice
Config.VehiclePrice = 'database' -- Set the method for vehicle price retrievalDefines the method for retrieving vehicle prices.
Type:
stringDefault:
'database'Options:
'database'- Vehicle prices are stored in a database table.'lua'- Vehicle prices are stored in a Lua file, such asqb/shared/vehicles.lua.'handling'- Vehicle prices are stored in the vehicle'shandling.metafile.
Usage: Depending on your selection, you may need to update
server/framework.luaand theCreateCoreVehiclesfunction to align with your data storage method.
Config.VehicleMeta
Config.VehicleMeta = {Props = { ['mileage'] = true, ['service'] = true, ['health'] = true }} -- Vehicle metadata propertiesDefines vehicle metadata properties. This configuration should generally not be modified.
Type:
tableDefault:
{Props = { ['mileage'] = true, ['service'] = true, ['health'] = true }}Description: Contains metadata properties for vehicles, such as mileage, service status, and health.
Usage: Typically, this configuration should remain unchanged as it specifies essential vehicle properties.
Last updated