🩺Medical Records
Script developed for the server REVEALED | FR | Free Access | Serious RP
⚡ Getting Started
Make sure to read the README file for full instructions!
💬 How to Open the Medical Menu
You can trigger the medical records UI in several ways:
1. 📋 By Command
- Set the command in config: - Config.Command = "openmedic"
- Players type - /openmedicin chat to open the medical UI.
- Set to - ""to disable the command.
2. 🟦 From Client Event
Trigger this on the client to open the UI locally:
TriggerEvent("bt_medical:showUI")3. 🟧 From Server Event
Ask the server to tell a specific client to open the UI:
TriggerClientEvent("bt_medical:showUI", source)4. 📍 By Proximity (Prompt Zones)
- Define coordinates where a prompt will appear: - Config.FilesRecordsCoords = { -- {x = -740.61, y = -1275.86, z = 43.58, distance = 2.0} }
- When a player enters the range, a prompt appears. 
- Holding the interaction key (default: - U) will open the medical menu.
⚙️ Configuration Example (config.lua)
config.lua)Config = {}
Config.DEBUG = false                -- Auto-open UI on resource restart (for debugging)
Config.Lang = "en"                  -- Supported: fr, en, pt, de, it, es
Config.Txt = {
    OpenPrompt = "Open",
    PromptGroup = "Medical Records"
}
Config.OpenKey = keys["U"]          -- Default interaction key
Config.Command = "openmedic"        -- Command to open the UI ("" to disable)
Config.FilesRecordsCoords = {
    --{x = -740.61, y = -1275.86, z = 43.58, distance = 2.0},
}
Config.WhitelistJobs = {}           -- Only these jobs can access medical records (empty = all jobs allowed)📌 Notes
- Flexible Access: Use command, events, or proximity prompts—choose what fits your server best. 
- Job Restrictions: Use - Config.WhitelistJobsto restrict access to specific jobs (leave empty for everyone).
- Multilingual: Language and prompts are configurable. 
Last updated

