Explanation:
Well, this is a simple script for hospital care. The aim is to create an additional tool for the doctor / nurse to interact with a patient. Basically, this is a Medical Record, which must be completed by the employee who attended the patient. The employee will be able to collect information about the patient, such as his name and reason for being in the hospital, and thus give a medical prescription. This record is saved and the employee can search for it later and see all the appointments the patient has already made at the hospital.
Features:
Configuration:
Edit the position, size in proportion, the selection color and the NUI Logo image.
Change the phrases and translate to the language you want.
in Client/Config.lua
-- Keyboard configuration
config_keys = {
moveUP = 172, -- default 172
moveDown = 173, -- default 173
moveLeft = 174, -- default 174
moveRight = 175, -- default 175
enter = 176, -- default 176
back = 177 -- default 177
}
-- Whem activated, the medical Record will disappear whem the box appears
-- To enter the information.
-- This is recommended for users with low screen resolution
-- or whem the position of the card is more centralized.
hiddenWhenWriting = true
-- Change the value of these variables according to your language.
translate = {
TR_FICHA_MEDICA = "Medical Record",
TR_NOME_HOSPITAL = "Hospital for GTA V",
TR_BUTTON_PESQUISAR = "Search",
TR_BUTTON_REGISTRAR = "Register",
TR_TEXT_CONSULTAS_1 = "queries are over",
TR_TEXT_CONSULTAS_2 = "carried out with us!",--
TR_PESQUISA_TITULO = "Search for",
TR_PESQUISA_ID = "ID",
TR_PESQUISA_NOME = "Name",
TR_PESQUISA_ALL = "See all patients",--
TR_RESULTADO_TITULO = "Patients found",
TR_COUNT_CONSULTA_TEXT_1 = "Consulted",
TR_COUNT_CONSULTA_TEXT_2 = "Times",
TR_NAO_ENCONTRADO = "No patient found",--
TR_PACIENTE_N_CONSULTA = "Consultation Nº",
TR_MOTIVO_CONSULTA = "Reason for consultation:",
TR_DESCRICAO_CONSULTA = "Medical description:",--
TR_REGISTRO_TITULO = "New registration",
TR_MAX_CARACTERES = "Max 200 characters"
}
-- medical record settings
config = {
CFG_POSITION_X = "90%", -- default "90%"
CFG_POSITION_Y = "50%", -- default "50%"
-- Size of the medical record in proportion ( recommended from 0.8 to 1.0
CFG_SIZE = "1.0", -- default "1.0"
-- This will change the identification color of what is beign selected
-- You can also use hexadecimal values as na example: #444444FF
CFG_COR_SELECT = "rgba(23, 94, 248, 0.705)", -- default = "rgba(23, 94, 248, 0.705)"
-- Place the LOGO image of your server or a hospital here
-- Recommended size: ( 128x128 px )
-- Acceptable types: png, jpg e gif. If you want add another type
-- add 'html/img/*.TYPEHERE' to the file fxmanifest.lua
CFG_LOGO_IMG = "./img/logo.png"
}You can also change the command in the Server.lua file and add which jobs will have access to this feature:
-- This is the command that will open the medical record
RegisterCommand('record', function(source, args)
local idJ = source
-- Here you define wihch job will be alowed to open the medical Record
-- example: if xPlayer.job.name == 'Medic' thenUpdate-1.0:
Dependencies: