config.lua
return {
---@type boolean Enable/Disable debug messages.
Debug = false,
---@type boolean Automatic creation of tables required for 0r-towtruck.
AutoRunSQL = true,
-- !NOTE!
-- You can add the translation files you have created for the script to the script in the next updates by contacting the support requests/snippets channels or the authorized person named @vezironi (no.1).
-- !NOTE!
---@type string Locale file name (without .json extension) located in the locales folder.
Locale = 'en',
---@type TargetSystem
---Target system to use in the script. Set to 'auto' to automatically detect a supported target system. If you are not using target script set the false (Supported Target Scripts: qb-target, ox_target, sleepless_interact)
Target = 'auto',
---@type NotifySystem
---Notification system to use in the script. Set to 'auto' to automatically detect a supported notification system. (Supported Notification Scripts: 0resmon_notify, brutal_notify, lation_ui, mythic_notify, okokNotify, ox_lib, pNotify, r_notify, t-notify, wasabi_notify)
Notify = '0resmon_notify',
---@type FuelSystem
---Fuel system to use in the script. Set to 'auto' to automatically detect a supported fuel system. (Supported Fuel Scripts: cdn-fuel, esx-sna-fuel, lc_fuel, LegacyFuel, okokGasStation, ox_fuel, ps-fuel, Renewed-Fuel, ti-fuel, x-fuel)
Fuel = 'auto',
---@type VehicleKeySystem
---Vehicle key system to use in the script. Set to 'auto' to automatically detect a supported vehicle key system. (Supported Vehicle Key Scripts: 0r-vehiclekeys, cd_garage, mk_vehiclekeys, MrNewbVehicleKeys, okokGarage, qb-vehiclekeys, qbx_vehiclekeys, Renewed-Vehiclekeys, wasabi_carlock)
VehicleKey = 'auto',
---@type string Distance unit to be used in distance calculations and displayed to the player. Options: 'km' or 'miles'
DistanceUnit = 'km',
--- @type string URL of the server logo to be displayed in the multiplayer data.
ServerLogoURL = 'https://r2.fivemanage.com/ATZ00IXjgOwoZjH5kxuUl/0resmon-logo.png',
--- @type boolean If true, the player's Discord profile photo will be used in multiplayer data. If false, a default profile photo URL will be used.
DiscordProfilePhoto = false,
--- @type string URL of the default profile photo to be used when Discord profile photos are disabled or unavailable.
DefaultProfilePhotoURL = 'https://r2.fivemanage.com/ATZ00IXjgOwoZjH5kxuUl/0resmon-logo.png',
---@type boolean If true, it checks the vehicle's damage status before the towing process. If the vehicle is not damaged enough, you cannot call a tow truck.
CheckDamageBeforeTow = false,
---@type string Context menu primary color in hex format.
ContextMenuPrimaryColor = '#2b7fff',
---@type string Context menu secondary color in hex format.
ContextMenuSecondaryColor = '#155dfc',
---@type number This fee is collected from the player when requesting a tow truck.
TowingServiceFee = 250,
---@type number This fee is collected from the team leader and is refunded upon return of the tow truck at the end of the job.
StartingSalary = 1000,
---@type number Duration (in milliseconds) for the NPC to find a new tow truck job when there are no available jobs.
NPCNewQuestFindingDuration = 1000 * 30, -- 30 seconds
---@type PaymentOptions
---Configuration of payment options for the tow truck job.
PaymentOptions = {
ForEachDelivery = {
money = 500,
exp = 250
},
ExtraLevel = {
enable = true,
money = 200,
exp = 100
}
},
---@type table<string, Location>
Locations = {
['location:1'] = {
hash = `s_m_m_hairdress_01`, -- Ped model hash for the job center NPC.
pedCoords = vec4(408.94, -1622.76, 28.29, 229.2), -- Ped spawn coordinates for the job center NPC.
towtruckSpawnCoords = { -- Coordinates where tow trucks will be spawned for players on duty.
vec4(409.64, -1652.71, 28.38, 319.72),
vec4(405.24, -1648.4, 28.38, 320.08),
vec4(400.61, -1644.05, 28.38, 319.9),
vec4(415.95, -1644.33, 28.38, 49.79)
}
},
},
DeliveryPoints = {
vec3(-217.97, 6253.78, 30.49),
vec3(2414.78, 3100.86, 46.53),
vec3(421.17, -1635.85, 27.66)
},
---@type table<string, ClothingItem[]> Clothing items to be applied to the player when they start the tow truck job.
JobClothes = {
male = {
{ type = 'component', componentId = 3, item = 19, texture = 0 },
{ type = 'component', componentId = 4, item = 129, texture = 3 },
{ type = 'component', componentId = 6, item = 57, texture = 6 },
{ type = 'component', componentId = 8, item = 15, texture = 0 },
{ type = 'component', componentId = 11, item = 241, texture = 0 },
},
female = {
}
},
---@type table<string, Blip> Blip configurations for various points of interest related to the tow truck job.
Blips = {
['towtruck_center'] = {
title = 'Tow Truck Job Center',
sprite = 68,
color = 5,
scale = 0.7
},
['goto_waypoint'] = {
title = 'Go to Waypoint',
sprite = 280,
color = 5,
scale = 0.7,
showRoute = true
},
['target_vehicle'] = {
title = 'Target Vehicle',
sprite = 225,
color = 5,
scale = 0.7
},
['tow_truck'] = {
title = 'Tow Truck',
sprite = 524,
color = 5,
scale = 0.7
},
['delivery_point'] = {
title = 'Delivery Point',
sprite = 318,
color = 5,
scale = 0.7,
showRoute = true
}
},
---@type table<string, VehiclePosition> The position of different vehicle models on the flatbed tow truck.
VehiclePositionOnFlatbed = {
['default'] = { x = 0.0, y = -2.8, z = 0.8, w = 0.0 },
[`t20`] = { x = 0.0, y = -2.8, z = 0.8, w = 0.0 },
[`baller`] = { x = 0.0, y = -2.8, z = 1.25, w = 0.0 },
[`prairie`] = { x = 0.0, y = -2.8, z = 1.0, w = 0.0 },
[`tailgater2`] = { x = 0.0, y = -2.8, z = 0.9, w = 0.0 },
[`vigero2`] = { x = 0.0, y = -2.8, z = 0.9, w = 0.0 },
[`feltzer2`] = { x = 0.0, y = -2.8, z = 1.1, w = 0.0 },
[`drafter`] = { x = 0.0, y = -2.8, z = 1.1, w = 0.0 },
[`sugoi`] = { x = 0.0, y = -2.8, z = 0.7, w = 0.0 },
}
}Last updated