🩺Medical & Law Records

Script developed for the server REVEALED | FR | Free Access | Serious RP

πŸ’¬ How to Open the Menu (Medical & Law)

You can trigger the UI in several ways. Use the correct event/command depending on the script.

1. πŸ“‹ By Command

Set the command in config.lua:

bt_medicalfiles

Config.Command = "openmedic"
-- /openmedic 2  => opens records_id = 2

Players type /openmedic in chat.

bt_lawrecords

Config.Command = "openlaw"
-- /openlaw 2  => opens records_id = 2

Players type /openlaw in chat.

Set to "" to disable the command.


2. 🟦 From Client Event

Trigger on the client to open the UI locally:

bt_medicalfiles

bt_lawrecords


3. 🟧 From Server Event

Ask the server to tell a specific client to open the UI:

bt_medicalfiles

bt_lawrecords


4. πŸ“ By Proximity (Prompt Zones)

Define coordinates where a prompt will appear:

When a player enters the range, a prompt appears. Holding the interaction key (default: U) opens the menu.

New: id groups records. Zones with the same id share the same records.


βš™οΈ Configuration Example (config.lua)

bt_medicalfiles

bt_lawrecords


πŸ“Œ Notes

  • Flexible Access: Use command, events, or proximity promptsβ€”choose what fits your server best.

  • Job Restrictions: Use Config.WhitelistJobs to restrict access (empty = all jobs allowed).

  • Multilingual: Language and prompts are configurable.

  • Records Grouping (id): Zones sharing the same id read/write the same group of records.


πŸ—„οΈ Database

Both scripts create/update the DB table automatically on resource start (no SQL file required). If you want a clean reset, drop the table and restart the resource:

bt_medicalfiles

bt_lawrecords


Last updated