π©ΊMedical Records
Script developed for the server REVEALED | FR | Free Access | Serious RP
You need to read the README file.
π¬ How to Open the Menu
You can trigger the medical UI in multiple ways:
1. By Command
Config.Command = "openmedic"
Players can type /openmedic
to access the medical records.
Set to ""
to disable.
2. From Client Event
TriggerEvent("bt_medical:showUI")
Trigger this on the client to open the UI locally.
3. From Server Event
TriggerClientEvent("bt_medical:showUI", source)
Used when you want the server to tell the client to open the UI.
4. By Proximity (Prompt Zones)
Config.FilesRecordsCoords = {
-- {x = -740.61, y = -1275.86, z = 43.58, distance = 2.0}
}
You can define coordinates where a prompt appears (e.g., a desk). When a player enters the distance range, a prompt appears and holding the interaction key will open the UI.
Here is an excerpt from the config.lua file : (parts of the excerpt are hidden)
Config = {}
-- Enables the UI to open automatically on resource restart (ignore WhitelistJobs) (useful for debugging)
Config.DEBUG = false
-- Language setting: choose from "fr", "en", "pt", "de", "it", "es"
Config.Lang = "en"
Config.Txt = {
OpenPrompt = "Open",
PromptGroup = "Medical Records"
}
Config.OpenKey = keys["U"]
--- To open the medical menu, you can use one of the following methods:
--- 1. By using a command:
Config.Command = "openmedic" -- Leave empty "" to disable the command
--- 2. By triggering a client-to-client event:
-- TriggerEvent("bt_medical:showUI")
--- 3. By triggering a server-to-client event:
-- TriggerClientEvent("bt_medical:showUI", source)
--- 4. Coords :
Config.FilesRecordsCoords = {
--{x = -740.61, y = -1275.86, z = 43.58, distance = 2.0},
}
-- VORP JOB RESTRICTIONS
Config.WhitelistJobs = {} -- Only allow these jobs to use medic records
Last updated