ed
This commit is contained in:
parent
7533584a53
commit
c6be40ffbd
18 changed files with 1492 additions and 3 deletions
19
resources/[jobs]/[crime]/r_moneywash/utils/shared.lua
Normal file
19
resources/[jobs]/[crime]/r_moneywash/utils/shared.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
Language = Language or {}
|
||||
|
||||
---@param str string -- Name of the string to pull from the locale file
|
||||
function _L(str, ...)
|
||||
if str then
|
||||
local string = Language[Cfg.Server.Language][str]
|
||||
if string then
|
||||
return string.format(string, ...)
|
||||
else
|
||||
return "ERR_TRANSLATE_"..(str).."_404"
|
||||
end
|
||||
else
|
||||
return "ERR_TRANSLATE_404"
|
||||
end
|
||||
end
|
||||
|
||||
math.lerp = function(a, b, t)
|
||||
return a + (b - a) * t
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue