Browse docs

X-Ray

Action hooks for the X-ray scan system.

Actions

ActionSideDescription
xray:startclient + serverAn X-ray scan has started.
xray:endclient + serverAn X-ray scan has finished (results ready).

Context

FieldTypeSideDescription
stationIdstringclient + serverThe X-ray station identifier.
stationNamestringclient + serverDisplay name of the station.
targetIdnumberclient + serverServer ID of the patient being scanned.
medicIdnumberserver onlyServer ID of the medic performing the scan.

Example

exports["sky_ambulancejob"]:onAction("xray:start", function(ctx)
    TriggerEvent("your_mlo:xray:animate", ctx.stationId, true)
end)

exports["sky_ambulancejob"]:onAction("xray:end", function(ctx)
    TriggerEvent("your_mlo:xray:animate", ctx.stationId, false)
end)

Support

Need help? Our support team is always ready to assist

Join Discord