Exports
Server exports let your other resources drive the medical equipment system; client exports open the treatment UI programmatically.
Server exports
exports['gravitas_casts']:ApplyEquipment(src, target, item, zone, minutes, opts)
exports['gravitas_casts']:RemoveEquipment(target, zone)
exports['gravitas_casts']:GetEquipment(target)
exports['gravitas_casts']:ClearEquipment(target)| Export | Effect |
|---|---|
ApplyEquipment | Applies item to zone on target for minutes |
RemoveEquipment | Removes equipment from one zone early |
GetEquipment | Returns the equipment currently worn by target |
ClearEquipment | Clears every equipment on target |
ApplyEquipment accepts an options table:
local opts = { free = true, force = true, variant = 'normal' }free and force are server-only flags. No client may send them —
the server rejects any client payload carrying them, together with full
payload validation and rate limiting.
Client export
exports['gravitas_casts']:OpenMenu(targetServerId)Opens the medical equipment menu for the given patient, exactly like the
/equipment command or the ox_target interaction.