Job menu (F6)
F6 (or /jobmenu) opens the actions of the player's job, on duty. Resources add their own; the core picks the target and checks everything again (job, grade, duty, distance):
lua
RLX.RegisterJobAction({
id = "cuff", label = "Cuff", description = "The closest person.",
job = "police", -- or { "police", "sheriff" }, or { police = 2 } (minimum grade)
target = "player", -- "player", "vehicle" or nil
distance = 2.0, onDuty = true, order = 10,
}, function(source, target)
-- target: the aimed player (source) or the vehicle (netId)
end)Provided: Bill (rlx_billing, every company job), Calls (rlx_dispatch), the police actions (rlx_police), the EMS actions (rlx_ambulance), repair (mechanic) and impound (police, mechanic) in rlx_basics/server/jobs.lua, to turn off if your resource does better. RLX.GetJobActions(source) gives a player's list.