Встановлення
Installation
1. Dependencies
Install and start ox_lib and oxmysql before this resource. Both are hard dependencies.
2. Drop the resource in
Place bupa-syncstatus in your resources folder (for example inside a [BUPA] category folder).
3. server.cfg — ensure order
ensure ox_lib
ensure oxmysql
ensure bupa-syncstatus4. Database
Nothing to import. On first start the server creates the table named in Config.Table (default bupa_syncstatus) if it does not already exist, with an index on citizenid.
Only change Config.Table if the name clashes with something else on your database. Renaming it after annotations exist starts you off with an empty table.
5. Medic jobs
Out of the box, ambulance, ems and doctor may examine other players. Change the list to match your server:
Config.Permissions = {
EditOthers = { 'ambulance', 'ems', 'doctor' },
MinGrade = 0,
UseAce = false,
Ace = 'bupa.syncstatus',
}Set EditOthers = {} to disable examining other players entirely. If you also want admins to be able to do it, set UseAce = true and grant the ACE:
add_ace group.admin bupa.syncstatus allow6. Commands and keybind
Config.Command = 'status' -- opens the panel
Config.ClearCommand = 'statusclear' -- wipes what you may remove
Config.Keybind = '' -- e.g. 'F6'; empty disables the keybindThe keybind is off by default. Set it to a key name to register a keymapping — players can then rebind it under Settings → Key Bindings → FiveM.
7. Language
Language follows ox_lib's global locale convar, so every BUPA script on your server speaks the same language from one line:
setr ox:locale "tr"See Localization for the shipped languages.
Config.Debug prints a line in the console on every write. Useful while you configure body parts and permissions, noisy in production — leave it false once you are live.