For the complete documentation index, see llms.txt. This page is also available as Markdown.

Installation

Before you start, make sure you're logged into the CFX portal. This ensures you can download the asset and receive future updates.

Downloading Dependencies

Dependencies are required before you start op-ambulancejob.

3

fivem-freecam

Used by Hospital Admin prop placer.

4

op-ambulancejob-props

Shipped with the package. Streams stretcher, wheelchair and CK skeleton models. Start it before op-ambulancejob.

5

op-ambulancemdt

Shipped with the package


Server.cfg

Start dependencies before our script. Framework and inventory must also be running.

ensure oxmysql
ensure ox_lib
ensure fivem-freecam
ensure op-ambulancejob-props
ensure op-ambulancejob
ensure op-ambulancemdt

Database

On first start the script creates its own tables automatically.

Table
Purpose

opa_hospitals

Hospitals created in /hospitaladmin

opa_hospital_clothing

Saved wardrobe outfits

opa_medical

Persisted medical state

opa_ck_permits

CK permits

opa_ck_characters

CK character records

opa_ck_corpses

World corpses / body bags

It also adds insuranceDate on users / players when missing, and optional job / configName columns on owned vehicle tables for job garage.


First Setup

1

Create items

Create Items
2

Grant Hospital Admin

Follow How to add player to Hospital Admin, then open /hospitaladmin.

3

Create a hospital

Follow How to setup the first hospital. Link real framework job names (for example ambulance).

4

Configure locale / currency

Edit config/MainConfig.lua (Config.Locale, Config.Currency) and check other files listed in Config Files.

EMS jobs come from hospitals you create in Hospital Admin - there is no static job name list to maintain for medic access.

Last updated