Config File
The script is fully configurable, allowing complete customization of its behavior and features. Below is a list of configuration files included in the resource.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- Dependency Check Helper
-- (Information) βΊ Returns the first matching started resource alias from provided table.
-- (Information) βΊ Used by Fuel/Keys/TextUI/Inventory/Target detection above.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
function scriptCheck(data) -- Do not modify unless you know what you're doing.
for k, v in pairs(data) do
if GetResourceState(k):find('started') ~= nil then
return v
end
end
return false
end
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- OTHERPLANET / OP Ambulance MDT / Main CONFIGURATION
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- This configuration file controls all customizable behaviour of OP Ambulance MDT
-- Always make a backup before editing.
-- Wrong edits can break the resource.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config = {}
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- Locale & Debug
-- (Information) βΊ Locale controls which language file from locales/* will be used.
-- (Information) βΊ Debug enables extra logging to help with issue tracking.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.Locale = "en" -- Supported: EN, DE, EL, SK, SV
Config.Debug = false -- true = verbose debug output in console.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- Currency Formatting
-- (Information) βΊ Visual formatting of money values in the UI (JS Intl.NumberFormat).
-- (Information) βΊ This does NOT change internal game currency logic, only display.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.CurrencySettings = {
-- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
currency = "USD",
style = "currency",
format = "en-US"
}
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- MISC CONFIGURATION
-- (Information) βΊ Notifications and Target
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
local targets = { -- Target libraries detection
['ox_target'] = "ox-target",
['qb-target'] = "qb-target"
}
local notifyScripts = { -- Notify libraries detection
['op-hud'] = "op_hud",
['okokNotify'] = "okokNotify",
['vms_notify'] = "vms_notify",
['ox_lib'] = "ox_lib",
['brutal_notify'] = "brutal_notify",
}
Config.Target = scriptCheck(targets) or 'none' -- Supported: ox-target / qb-target / none
Config.Notify = scriptCheck(notifyScripts) or 'none'
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- Text UI Dependency Detection
-- (Information) βΊ Auto-detects supported 3D/2D Text UI libraries.
-- (Information) βΊ If none is found, some prompts may fallback to default behaviour.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
local textUIScripts = {
['ox_lib'] = "ox_lib",
['jg-textui'] = "jg-textui",
['okokTextUI'] = "okokTextUI",
['brutal_textui'] = "brutal_textui",
['0r-textui'] = "0r-textui",
}
Config.TextUI = scriptCheck(textUIScripts) or 'none'
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- Banking SCRIPT Detection
-- (Information) βΊ Auto-detects supported banking scripts
-- (Information) βΊ If none is found, some prompts may fallback to default behaviour.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
local bankingScripts = {
['esx_addonaccount'] = "esx_addonaccount",
['qb-banking'] = "qb-banking",
['fd_banking'] = "fd_banking",
['okokBanking'] = "okokBanking",
['Renewed-Banking'] = "Renewed-Banking",
['tgg-banking'] = "tgg-banking"
}
Config.Banking = scriptCheck(bankingScripts) or 'none'
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- Garage Script
-- (Information) βΊ Manual selection of external garage script integration.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.GarageScript = "op-garages" -- op-garages / jg-advancedgarages
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- Jobs Configuration
-- (Information) βΊ Defines which jobs can access the MDT.
-- (Information) βΊ Each job has its own separated tablet and data.
-- (Information) βΊ This is NOT a multi-job tablet β each job must be defined separately.
-- (Information) βΊ Key = job name | Value = job display label.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.Jobs = {
["ambulance"] = "Emergency Medical Services",
}
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- Commands Configuration
-- (Information) βΊ Enables or disables available MDT-related commands.
-- (Information) βΊ Commands are optional and can be fully disabled.
-- (Information) βΊ Command names must be unique and not conflict with other scripts.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.Commands = {
openMDT = {
enable = true,
command = "ambulancemdt"
},
adjustdispatch = {
enable = true,
command = "adjustdispatch"
},
toggleDispatch = {
enable = true,
command = "toggledispatch"
}
}
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- Vehicle Shop Configuration
-- (Information) βΊ Defines vehicles available for purchase via MDT.
-- (Information) βΊ Vehicles are assigned per job.
-- (Information) βΊ Prices, resale value and preview images are configurable.
-- (Information) βΊ Vehicle models must exist in the server files.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.VehicleShop = {
["ambulance"] = {
{
label = "Ambulance",
model = "ambulance",
price = 95000,
image = "https://docs.fivem.net/vehicles/ambulance.webp",
resellPrice = 8500,
},
{
label = "Lifeguard",
model = "lguard",
price = 120000,
image = "https://docs.fivem.net/vehicles/lguard.webp",
resellPrice = 100000,
},
}
}
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- Insurance System Configuration
-- (Information) βΊ Controls the insurance system used by MDT.
-- (Information) βΊ Players can extend insurance for a selected time period.
-- (Information) βΊ Insurance time is stored in UTC ISO format.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.Insurance = {
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- Insurance Extend Options
-- (Information) βΊ Available insurance extension plans.
-- (Information) βΊ Key does not matter, value.value defines duration.
-- (Information) βΊ Time value is defined in HOURS.
-- (Information) βΊ Price is charged from selected payment method.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ExtendOptions = {
[24] = {
value = 24, -- Time in hours
price = 5500
},
[72] = {
value = 72, -- Time in hours
price = 9500
},
[144] = {
value = 144, -- Time in hours
price = 14500
},
},
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- Insurance Ped Configuration
-- (Information) βΊ Defines NPC used to access insurance features.
-- (Information) βΊ NPC can be interacted with via target or marker.
-- (Information) βΊ Ped animation and prop are fully configurable.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
InsurancePed = {
ped_coords = vec4(340.8385, -1398.8954, 31.5093, 71.7369),
ped_model = "s_m_m_paramedic_01",
ped_gender = "male",
ped_animation = false,
--ped_animation = {
-- Dict = "missheistdockssetup1clipboard@base",
-- Lib = "base",
-- Prop = {
-- Prop = 'prop_notepad_01',
-- PropBone = 18905,
-- PropPlacement = {
-- 0.1,
-- 0.02,
-- 0.05,
-- 10.0,
-- 0.0,
-- 0.0
-- }
-- }
--},
enable = true,
-- Marker settings (used only when target system is disabled)
markerColor = {
r = 219,
g = 0,
b = 0,
},
-- Map blip configuration
ped_blip = {
BlipScale = 0.8,
blipId = 51,
blipColor = 7
}
},
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- Insurance Command Configuration
-- (Information) βΊ Optional command to open insurance menu.
-- (Information) βΊ Useful when NPC is disabled or for quick access.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
InsuranceCommand = {
enable = false,
command = "myinsurance"
}
}
Config.TabletAnimation = {
enable = true,
dict = "amb@code_human_in_bus_passenger_idles@female@tablet@idle_a",
name = "idle_a",
prop = { -- Replace prop table with false (prop = false) if you want to disable it!
Prop = "prop_cs_tablet",
PropBone = 28422,
PropPlacement = {
-0.05,
0.0,
0.0,
0.0,
-90.0,
0.0
}
}
}Last updated