- remove locales module
This commit is contained in:
1 parent
d6cffd01bc
commit
07530a8662
25 files changed
+84
-724
No files matched your search
@@ -83,12 +83,12 @@ function Target.AddLocalEntity(entities, _options)
|
||||
end
|
||||
for _, entity in pairs(entities) do
|
||||
local id = lib.string.random('Aa1A', 8) -- Generate a random ID if not provided
|
||||
local title = Language.Locale("target.title")
|
||||
local title = lib.locale("target.title")
|
||||
local menuData = { id = id, title = title, options = {} }
|
||||
for k, v in pairs(fixedOptions) do
|
||||
table.insert(menuData.options, {
|
||||
title = title .. " " .. k,
|
||||
description = Language.Locale("target.description"),
|
||||
description = lib.locale("target.description"),
|
||||
onSelect = function(selected, secondary, args)
|
||||
if v.onSelect then
|
||||
v.onSelect(selected, secondary, args)
|
||||
@@ -99,7 +99,7 @@ function Target.AddLocalEntity(entities, _options)
|
||||
Point.Register(id, entity, 5, nil, function()
|
||||
local coords = GetEntityCoords(entity)
|
||||
local sleep = 3000
|
||||
local test = Language.Locale("target.interact")
|
||||
local test = lib.locale("target.interact")
|
||||
CreateThread(function()
|
||||
while DoesEntityExist(entity) do
|
||||
Wait(sleep)
|
||||
@@ -131,12 +131,12 @@ end
|
||||
function Target.AddBoxZone(name, coords, size, heading, options)
|
||||
local fixedOptions = Target.FixOptions(options)
|
||||
local id = lib.string.random('Aa1A', 8) -- Generate a random ID if not provided
|
||||
local title = Bridge.Language.Locale("target.title")
|
||||
local title = lib.locale("target.title")
|
||||
local menuData = { id = id, title = title, options = {} }
|
||||
for k, v in pairs(fixedOptions) do
|
||||
table.insert(menuData.options, {
|
||||
title = title .. " " .. k,
|
||||
description = Bridge.Language.Locale("target.description"),
|
||||
description = lib.locale("target.description"),
|
||||
onSelect = function(selected, secondary, args)
|
||||
if v.onSelect then
|
||||
v.onSelect(selected, secondary, args)
|
||||
@@ -153,7 +153,7 @@ function Target.AddBoxZone(name, coords, size, heading, options)
|
||||
local distance = #(coords - GetEntityCoords(PlayerPedId()))
|
||||
if distance < 10 then
|
||||
sleep = 0
|
||||
Utility.Draw3DHelpText(coords, Bridge.Language.Locale("target.interact"), 0.35)
|
||||
Utility.Draw3DHelpText(coords, lib.locale("target.interact"), 0.35)
|
||||
if IsControlJustPressed(0, 38) then
|
||||
Menu.Open(menuData, false)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user