mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
Locale/oxmysql
MUST UPDATE OXMYSQL TO 1.9 OR HIGHER
This commit is contained in:
+1
-3
@@ -21,9 +21,7 @@ local function translateKey(phrase, subs)
|
||||
-- Initial Scan over result looking for substituions
|
||||
for k, v in pairs(subs) do
|
||||
local templateToFind = '%%{' .. k .. '}'
|
||||
print('Template to find:', templateToFind)
|
||||
print('Replace val:', v)
|
||||
result = result:gsub(templateToFind, v)
|
||||
result = result:gsub(templateToFind, tostring(v)) -- string to allow all types
|
||||
end
|
||||
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user