From 32ae064060d1cb7080ce417bd397db5884eea487 Mon Sep 17 00:00:00 2001 From: solareon <769465+solareon@users.noreply.github.com> Date: Fri, 19 Jan 2024 11:45:09 +0000 Subject: [PATCH] fix: more locale issues --- client/job.lua | 2 +- client/main.lua | 4 ++-- client/setdownedstate.lua | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/job.lua b/client/job.lua index 652c726..794e89b 100644 --- a/client/job.lua +++ b/client/job.lua @@ -104,7 +104,7 @@ RegisterNetEvent('hospital:client:CheckStatus', function() TriggerEvent('chat:addMessage', { color = { 255, 0, 0 }, multiline = false, - args = { locale('info.status'), locale('info.is_status', { status = status.bleedState }) } + args = { locale('info.status'), locale('info.is_status', status.bleedState) } }) end diff --git a/client/main.lua b/client/main.lua index 5e878a1..4526ecc 100644 --- a/client/main.lua +++ b/client/main.lua @@ -23,7 +23,7 @@ RegisterNetEvent('hospital:client:ambulanceAlert', function(coords, text) local transG = 250 local blip = AddBlipForCoord(coords.x, coords.y, coords.z) local blip2 = AddBlipForCoord(coords.x, coords.y, coords.z) - local blipText = locale('info.ems_alert', { text = text }) + local blipText = locale('info.ems_alert', text) SetBlipSprite(blip, 153) SetBlipSprite(blip2, 161) SetBlipColour(blip, 1) @@ -75,7 +75,7 @@ RegisterNetEvent('hospital:client:SendBillEmail', function(amount) TriggerServerEvent('qb-phone:server:sendNewMail', { sender = locale('mail.sender'), subject = locale('mail.subject'), - message = locale('mail.message', { gender = gender, lastname = charInfo.lastname, costs = amount }), + message = locale('mail.message', gender, charInfo.lastname, amount), button = {} }) end) diff --git a/client/setdownedstate.lua b/client/setdownedstate.lua index f0fc59c..eaf8970 100644 --- a/client/setdownedstate.lua +++ b/client/setdownedstate.lua @@ -9,9 +9,9 @@ end local function displayRespawnText() local deathTime = exports.qbx_medical:getDeathTime() if deathTime > 0 and doctorCount > 0 then - DrawText2D(locale('info.respawn_txt', { deathtime = math.ceil(deathTime) }), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255) + DrawText2D(locale('info.respawn_txt', math.ceil(deathTime)), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255) else - DrawText2D(locale('info.respawn_revive', { holdtime = exports.qbx_medical:getRespawnHoldTimeDeprecated(), cost = sharedConfig.checkInCost }), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255) + DrawText2D(locale('info.respawn_revive', exports.qbx_medical:getRespawnHoldTimeDeprecated(), sharedConfig.checkInCost), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255) end end @@ -52,9 +52,9 @@ end local function handleLastStand() local laststandTime = exports.qbx_medical:getLaststandTime() if laststandTime > config.laststandTimer or doctorCount == 0 then - DrawText2D(locale('info.bleed_out', { time = math.ceil(laststandTime) }), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255) + DrawText2D(locale('info.bleed_out', math.ceil(laststandTime)), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255) else - DrawText2D(locale('info.bleed_out_help', { time = math.ceil(laststandTime) }), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255) + DrawText2D(locale('info.bleed_out_help', math.ceil(laststandTime)), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255) handleRequestingEms() end