This page covers the minimum setup required to get 0r-ambulancejob running correctly.
Required Dependencies#
Optional Dependencies#
These resources are optional, but recommended for the shipped ambulance vehicle and assistive flows:
emspropsiak_wheelchairqua_ambulance_int
If you do not use them, disable or replace the related actions in config/hotbar.lua and the ambulance vehicle settings.
Recommended server.cfg Start Order#
ensure oxmysql
ensure ox_lib
ensure framework
ensure 0r_lib
ensure [ambulance-job]
Use the correct framework resource name for your server, such as es_extended, qb-core, or qbx_core.
Database Setup#
Import the SQL before first start. It will be generated automatically by the script, but you can also execute it manually in case of any problems.
The SQL creates these facility persistence tables:
0resmon_ambulance_facilities0resmon_ambulance_staff_roster0resmon_ambulance_facility_logs0resmon_ambulance_facility_accounts0resmon_ambulance_facility_account_transactions0resmon_ambulance_facility_invoices0resmon_ambulance_facility_permission_overrides
Local Setup Checklist#
- Import
read-me/database.sqlinto your database. - Review every file in
config/*.lua. - Add the required inventory items from
items.md. - If
Config.facility.panel.openWithItem.active = true, create the configured panel item. - Create the item configured by
Config.facility.runtime.medBag.itemif you use the med bag flow. - Set
Config.inventoryImagesFolderso treatment item icons can load from your inventory image path. - Review
config/hotbar.luaand disable actions that rely on optional resources you do not run. - Keep hotbar UI icons in
ui/build/itemsaligned with theimagevalues used inconfig/hotbar.lua.
Localization#
The resource loads its locale from Config.locale in config/init.lua.
Config = {
locale = "en",
}
Locale files live in locales/*.json.
Admin Commands#
The default command names are configured in config/init.lua.
/911e: alert EMS/revive: admin revive/kill [id] [laststand]: force a player into dead or laststand state/revivep: revive nearest player/medtest [state]: start an admin treatment panel self-test/hotbar_assistive_debug [values]: tune active assistive equipment offset / rotation
/kill marks all body regions as fatal by default. If the optional laststand argument is used, the target is forced into laststand instead.
/hotbar_assistive_debug is controlled by Config.commands.hotbarAssistiveDebug and is restricted to group.admin by default.