Oxide Policev1.4.5
PatchAdded
- Officers can belong to more than one department. A character can now be hired into several departments at once — for example the city police and the sheriff's office — each keeping its own badge number, callsign, rank, and pay. The department they count as "working" at any moment is whichever police job they currently have selected; duty, the boss menu, the MDT, and field tools all follow that active department. This is off by default. Turn it on with
Config.AllowMultiDepartment = trueinshared/config.lua. With it off, hiring someone into a second department still moves them out of the first, exactly as before. - Works with g-multijob. Oxide Police now plugs into the g-multijob multi-job menu, so officers can switch between their police job and their other jobs from that menu. Hiring or firing an officer automatically adds or removes their police job in the menu, and switching to a non-police job takes them off police duty until they switch back. It turns on by itself when g-multijob is installed (
Config.Compatibility['g-multijob']inshared/config/compat.lua) and needsConfig.AllowMultiDepartment = true. Full setup steps are in the g-multijob section ofdocs/ESX_INSTALL.md.
Changed
/pfirecan target one department. When a player belongs to more than one department, you can now fire them from a single department and leave the others untouched:/pfire <serverID> <departmentName>. Without a department name it still fires them from the department they are currently working.
Fixed
- Station no longer thinks you're on duty when you're not. If you were taken off duty by something other than clocking out yourself — being fired or moved while on duty, or switching to another job — the station's clock-in point could still treat you as on duty and refuse to let you clock back in. It now always matches your real duty status.
Database
- When upgrading, run the new file in
sql/migrations/(005_multi_department.sql) once. It lets a character be stored in more than one department. Fresh installs already include it, and it is safe to run on an existing database.
Notes
- Both new features stay off until you turn them on. If you change nothing, the resource behaves exactly as it did before.
- The new settings live in
shared/config.lua(Config.AllowMultiDepartment) andshared/config/compat.lua(theg-multijobblock). If you use customized copies of those files, copy the additions over to get them — fresh installs already include them.