condense locales
This commit is contained in:
1 parent
fc8a623067
commit
c752baffda
22 files changed
+228
-131
No files matched your search
@@ -7,6 +7,7 @@ local function spawn()
|
||||
Freeze(ped, true, data.loc.w)
|
||||
Bridge.Target.AddLocalEntity(ped, {
|
||||
{
|
||||
icon = Bridge.Language.Locale('merchant.targetIcon'),
|
||||
label = Bridge.Language.Locale('merchant.targetOpen'),
|
||||
action = function()
|
||||
local options = {}
|
||||
|
||||
+11
-11
@@ -104,8 +104,8 @@ function PoliceCall(chance)
|
||||
local math = math.random(1,100)
|
||||
if math <= chance then
|
||||
Bridge.Dispatch.SendAlert({
|
||||
message = "Suspisous Handoff",
|
||||
code = "10-31",
|
||||
message = Bridge.Language.Locale('Dispatch.header'),
|
||||
code = Bridge.Language.Locale('Dispatch.code'),
|
||||
coords = GetEntityCoords(PlayerPedId()),
|
||||
jobs = {"police"},
|
||||
blipData = {
|
||||
@@ -114,7 +114,7 @@ function PoliceCall(chance)
|
||||
scale = 1.0
|
||||
},
|
||||
time = 300000,
|
||||
icon = "fas fa-exclamation-triangle"
|
||||
icon = Bridge.Language.Locale('Dispatch.icon')
|
||||
})
|
||||
else
|
||||
return
|
||||
@@ -124,7 +124,7 @@ end
|
||||
function GetCops(number)
|
||||
if number == 0 then return true end
|
||||
local amount = Bridge.Callback.Trigger('md-drugs:server:GetCoppers')
|
||||
if amount >= number then return true else Bridge.Notify.SendNotify('You Need '.. number - amount .. ' More Cops To Do This', 'error') end
|
||||
if amount >= number then return true else Bridge.Notify.SendNotify(string.format(Bridge.Language.Locale('Catches.YouNeedMoreCops'), number - amount), 'error') end
|
||||
end
|
||||
|
||||
function Freeze(entity, toggle, head)
|
||||
@@ -272,14 +272,14 @@ RegisterCommand('DrugRep', function()
|
||||
local rep = GetRep()
|
||||
Bridge.Menu.Open({
|
||||
id = 'drugrep',
|
||||
title = 'Drug Reputation',
|
||||
description = 'Your Current Drug Reputation Stats',
|
||||
title = Bridge.Language.Locale('DrugRep.header'),
|
||||
description = Bridge.Language.Locale('DrugRep.increased'),
|
||||
options = {
|
||||
{icon = "fa-solid fa-face-flushed", title = 'Cocaine: '..rep.coke},
|
||||
{icon = "fa-solid fa-syringe", title = 'Heroin: '..rep.heroin},
|
||||
{icon = "fa-solid fa-vial", title = 'LSD: '..rep.lsd},
|
||||
{icon = "fa-solid fa-plug", title = 'Dealer: '..rep.dealerrep},
|
||||
{icon = "fa-solid fa-money-bill", title = 'Corner Selling: ' .. rep.cornerselling.rep, description = 'Rank: ' .. rep.cornerselling.label }
|
||||
{icon = Bridge.Language.Locale('DrugRep.coke.icon'), title = Bridge.Language.Locale('DrugRep.coke.title', rep.coke)},
|
||||
{icon = Bridge.Language.Locale('DrugRep.heroin.icon'), title = Bridge.Language.Locale('DrugRep.heroin.title', rep.heroin)},
|
||||
{icon = Bridge.Language.Locale('DrugRep.lsd.icon'), title = Bridge.Language.Locale('DrugRep.lsd.title', rep.lsd)},
|
||||
{icon = Bridge.Language.Locale('DrugRep.dealerrep.icon'), title = Bridge.Language.Locale('DrugRep.dealerrep.title', rep.dealerrep)},
|
||||
{icon = Bridge.Language.Locale('DrugRep.cornerselling.icon'), title = Bridge.Language.Locale('DrugRep.cornerselling.title', rep.cornerselling.rep), description = Bridge.Language.Locale('DrugRep.cornerselling.description', rep.cornerselling.label) }
|
||||
}
|
||||
})
|
||||
end, false)
|
||||
|
||||
+1
-1
@@ -74,7 +74,7 @@ for k, v in pairs (location.SyrupVendor) do
|
||||
Freeze(leanPeds[k], true, v.loc.w)
|
||||
Bridge.Target.AddLocalEntity(leanPeds[k], {
|
||||
{
|
||||
icon = Bridge.Language.Locale('lean.startMission'),
|
||||
icon = Bridge.Language.Locale('lean.startMissionIcon'),
|
||||
label = Bridge.Language.Locale('lean.startMission'),
|
||||
action = function()
|
||||
SpawnCarPedChase()
|
||||
|
||||
+9
-9
@@ -12,7 +12,7 @@ local function createLabKit(coord, head)
|
||||
tableout = true
|
||||
local options = {
|
||||
{
|
||||
icon = "fa-solid fa-temperature-high",
|
||||
icon = Bridge.Language.Locale('lsd.targetHeatIcon'),
|
||||
label = Bridge.Language.Locale('lsd.targetHeat'),
|
||||
action = function()
|
||||
if not minigame() then
|
||||
@@ -30,7 +30,7 @@ local function createLabKit(coord, head)
|
||||
end
|
||||
},
|
||||
{
|
||||
icon = "fa-solid fa-temperature-high",
|
||||
icon = Bridge.Language.Locale('lsd.targetRefineIcon'),
|
||||
label = Bridge.Language.Locale('lsd.targetRefine'),
|
||||
action = function()
|
||||
if not itemCheck('lsd_one_vial') then return end
|
||||
@@ -43,7 +43,7 @@ local function createLabKit(coord, head)
|
||||
end
|
||||
},
|
||||
{
|
||||
icon = "fa-regular fa-note-sticky",
|
||||
icon = Bridge.Language.Locale('lsd.targetDippingIcon'),
|
||||
label = Bridge.Language.Locale('lsd.targetDipping'),
|
||||
action = function()
|
||||
if not itemCheck('tab_paper') then return end
|
||||
@@ -56,7 +56,7 @@ local function createLabKit(coord, head)
|
||||
end
|
||||
},
|
||||
{
|
||||
icon = "fas fa-box-circle-check",
|
||||
icon = Bridge.Language.Locale('lsd.targetPickupIcon'),
|
||||
label = Bridge.Language.Locale('lsd.targetPickup'),
|
||||
action = function()
|
||||
if not progressbar(Bridge.Language.Locale('lsd.packup')) then return end
|
||||
@@ -69,7 +69,7 @@ local function createLabKit(coord, head)
|
||||
end
|
||||
},
|
||||
{
|
||||
icon = "fa-solid fa-hand-sparkles",
|
||||
icon = Bridge.Language.Locale('lsd.targetCleanIcon'),
|
||||
label = Bridge.Language.Locale('lsd.targetClean'),
|
||||
action = function()
|
||||
if not itemCheck('cleaningkit') then return end
|
||||
@@ -89,7 +89,7 @@ for k, v in pairs (locations.lysergicacid) do
|
||||
Bridge.Target.AddBoxZone('lysergicacid'..k,v.loc, vector3(v.l, v.w, 2.0), v.loc.w or 180.0, {
|
||||
{
|
||||
label = Bridge.Language.Locale('lsd.targetLys'),
|
||||
icon = 'fa-solid fa-temperature-high',
|
||||
icon = Bridge.Language.Locale('lsd.targetLysIcon'),
|
||||
action = function()
|
||||
if not minigame() then TriggerServerEvent("md-drugs:server:faillysergic") return end
|
||||
if not progressbar(Bridge.Language.Locale('lsd.stealLys')) then return end
|
||||
@@ -107,7 +107,7 @@ for k, v in pairs (locations.diethylamide) do
|
||||
Bridge.Target.AddBoxZone('diethylamide'..k, v.loc, vector3(v.l, v.w, 2.0), v.loc.w or 180.0, {
|
||||
{
|
||||
label = Bridge.Language.Locale('lsd.targetDie'),
|
||||
icon = 'fa-solid fa-temperature-high',
|
||||
icon = Bridge.Language.Locale('lsd.targetDieIcon'),
|
||||
action = function()
|
||||
if not minigame() then TriggerServerEvent("md-drugs:server:faildiethylamide") return end
|
||||
if not progressbar(Bridge.Language.Locale('lsd.stealDie')) then return end
|
||||
@@ -125,7 +125,7 @@ for k, v in pairs (locations.gettabs) do
|
||||
Bridge.Target.AddBoxZone('gettabs'..k, v.loc, vector3(v.l, v.w, 2.0), v.loc.w or 180.0, {
|
||||
{
|
||||
label = Bridge.Language.Locale('lsd.targetBuyTab'),
|
||||
icon = 'fa-solid fa-hand-holding-dollar',
|
||||
icon = Bridge.Language.Locale('lsd.targetBuyTabIcon'),
|
||||
action = function()
|
||||
TriggerServerEvent("md-drugs:server:gettabpaper", k)
|
||||
end,
|
||||
@@ -145,7 +145,7 @@ for k, v in pairs (locations.buyLSDkit) do
|
||||
Bridge.Target.AddLocalEntity(seller[k], {
|
||||
{
|
||||
label = Bridge.Language.Locale('lsd.targetBuyKit'),
|
||||
icon = 'fa-solid fa-hand-holding-dollar',
|
||||
icon = Bridge.Language.Locale('lsd.targetBuyKitIcon'),
|
||||
action = function()
|
||||
if Bridge.Inventory.HasItem('lsdlabkit') then
|
||||
Bridge.Notify.SendNotify(Bridge.Language.Locale('lsd.alreadyOwn'), 'error')
|
||||
|
||||
@@ -21,7 +21,7 @@ for k, v in pairs (locations.DryOutMescaline) do
|
||||
icon = 'fa-solid fa-temperature-high',
|
||||
action = function()
|
||||
if not itemCheck('cactusbulb') then return end
|
||||
if not progressbar(Bridge.Language.Locale('mescaline.dry')) then return end
|
||||
if not progressbar(Bridge.Language.Locale('mesc.dry')) then return end
|
||||
TriggerServerEvent("md-drugs:server:drymescaline", k)
|
||||
end,
|
||||
canInteract = function()
|
||||
@@ -36,7 +36,7 @@ RegisterNetEvent("md-drugs:client:takemescaline", function()
|
||||
local chance, chance2 = math.random(1,100), math.random(1,100)
|
||||
local weapon = ''
|
||||
if chance2 == 100 then weapon = 'weapon_rpg' else weapon = 'weapon_flaregun' end
|
||||
if not progressbar(Bridge.Language.Locale('mescaline.eat')) then return end
|
||||
if not progressbar(Bridge.Language.Locale('mesc.eat')) then return end
|
||||
if chance <= badTrip then
|
||||
AlienEffect()
|
||||
Wait(math.random(3000,6000))
|
||||
|
||||
+21
-18
@@ -41,7 +41,7 @@ local function SpawnMethCarPedChase(loc)
|
||||
Bridge.Target.AddLocalEntity(methVan, {
|
||||
{
|
||||
name = 'methcar',
|
||||
icon = 'fa-solid fa-car',
|
||||
icon = Bridge.Language.Locale('meth.targetStealFromCarIcon'),
|
||||
label = Bridge.Language.Locale('meth.targetStealFromCar'),
|
||||
action = function()
|
||||
if not minigame() then return end
|
||||
@@ -66,10 +66,13 @@ for k, v in pairs (locations.MethHeist) do
|
||||
Freeze(peds[k], true, v.loc.w)
|
||||
Bridge.Target.AddLocalEntity(peds[k], {
|
||||
{
|
||||
icon = 'fa-solid fa-user-secret',
|
||||
icon = Bridge.Language.Locale('meth.targetHeistIcon'),
|
||||
label = Bridge.Language.Locale('meth.targetHeist'),
|
||||
action = function()
|
||||
if startedmeth then Bridge.Notify.SendNotify(Bridge.Language.Locale('meth.alreadyChasing'),'error') return end
|
||||
if startedmeth then
|
||||
Bridge.Notify.SendNotify(Bridge.Language.Locale('meth.alreadyChasing'),'error')
|
||||
return
|
||||
end
|
||||
SpawnMethCarPedChase(k)
|
||||
end,
|
||||
canInteract = function()
|
||||
@@ -268,7 +271,7 @@ local function smash(coords, offset, rotation, buckets, k)
|
||||
Bridge.Target.AddLocalEntity(bucket, {
|
||||
{
|
||||
name = 'bucket',
|
||||
icon = "fa-solid fa-sack-xmark",
|
||||
icon = Bridge.Language.Locale('meth.targetBagIcon'),
|
||||
label = Bridge.Language.Locale('meth.targetBag'),
|
||||
action = function()
|
||||
DeleteObject(bucket)
|
||||
@@ -312,7 +315,7 @@ for k, v in pairs (locations.CookMeth) do
|
||||
Bridge.Target.AddBoxZone('cookMeth'..k, v.loc, vector3(v.l, v.w, 2.0), v.loc.w or 180.0, {
|
||||
{
|
||||
label = Bridge.Language.Locale('meth.targetCook'),
|
||||
icon = 'fa-solid fa-temperature-high',
|
||||
icon = Bridge.Language.Locale('meth.targetCookIcon'),
|
||||
action = function()
|
||||
startcook(k, v.loc, v.offset or vec3(0,0,0), v.rotation or vector3(0,0,180.0))
|
||||
end,
|
||||
@@ -324,7 +327,7 @@ for k, v in pairs (locations.CookMeth) do
|
||||
end,
|
||||
},
|
||||
{
|
||||
icon = "fas fa-sign-in-alt",
|
||||
icon = Bridge.Language.Locale('meth.targetGrabTrayIcon'),
|
||||
label = Bridge.Language.Locale('meth.targetGrabTray'),
|
||||
action = function() trayscarry() end,
|
||||
canInteract = function()
|
||||
@@ -341,15 +344,15 @@ for k, v in pairs (locations.MethDials) do
|
||||
Bridge.Target.AddBoxZone('adjustMethDials'..k, v.loc, vector3(v.l, v.w, 1.0), v.loc.w or 180.0, {
|
||||
{
|
||||
name = 'adjustdials',
|
||||
icon = "fa-solid fa-temperature-three-quarters",
|
||||
icon = Bridge.Language.Locale('meth.targetHeatIcon'),
|
||||
label = Bridge.Language.Locale('meth.targetHeat'),
|
||||
action = function()
|
||||
dials(locations.CookMeth[k].loc)
|
||||
end,
|
||||
--canInteract = function()
|
||||
-- if not handleGang(v.gang) then return false end
|
||||
-- if amonia and heated == false then return true end
|
||||
--end
|
||||
canInteract = function()
|
||||
if not handleGang(v.gang) then return false end
|
||||
if amonia and heated == false then return true end
|
||||
end
|
||||
}
|
||||
})
|
||||
end
|
||||
@@ -358,7 +361,7 @@ for k, v in pairs (locations.MethSmash) do
|
||||
Bridge.Target.AddBoxZone('smashMeth'..k, v.loc, vector3(v.l, v.w, 1.0), v.loc.w or 180.0, {
|
||||
{
|
||||
name = 'smash',
|
||||
icon = "fa-solid fa-weight-scale",
|
||||
icon = Bridge.Language.Locale('meth.targetSmashIcon'),
|
||||
label = Bridge.Language.Locale('meth.targetSmash'),
|
||||
action = function()
|
||||
smash(v.loc, v.offset, v.rotation, v.bucket,k)
|
||||
@@ -374,8 +377,8 @@ end
|
||||
for k, v in pairs (locations.MethTele) do
|
||||
Bridge.Target.AddBoxZone('meth_tele'..k, v.inside, vector3(v.l, v.w, 1.0), v.rot, {
|
||||
{
|
||||
icon = 'fa-solid fa-door-open',
|
||||
label = Bridge.Language.Locale('coke.teleOut'),
|
||||
icon = Bridge.Language.Locale('meth.teleOutIcon'),
|
||||
label = Bridge.Language.Locale('meth.teleOut'),
|
||||
action = function()
|
||||
SetEntityCoords(PlayerPedId(), v.outside)
|
||||
end,
|
||||
@@ -386,8 +389,8 @@ for k, v in pairs (locations.MethTele) do
|
||||
})
|
||||
Bridge.Target.AddBoxZone('meth_teleout'..k, v.outside, vector3(v.l, v.w, 1.0), v.rot, {
|
||||
{
|
||||
icon = 'fa-solid fa-door-closed',
|
||||
label = Bridge.Language.Locale('coke.teleIn'),
|
||||
icon = Bridge.Language.Locale('meth.teleInIcon'),
|
||||
label = Bridge.Language.Locale('meth.teleIn'),
|
||||
action = function()
|
||||
SetEntityCoords(PlayerPedId(), v.inside)
|
||||
end,
|
||||
@@ -409,7 +412,7 @@ for k, v in pairs (locations.MethEph) do
|
||||
Bridge.Target.AddBoxZone('stealMethEph'..k, v.loc, vector3(v.l, v.w, 1.0), v.loc.w or 180.0, {
|
||||
{
|
||||
label = Bridge.Language.Locale('meth.targetStealEPH'),
|
||||
icon = 'fa-solid fa-bucket',
|
||||
icon = Bridge.Language.Locale('meth.targetStealEPHIcon'),
|
||||
action = function()
|
||||
if not progressbar(Bridge.Language.Locale('meth.stealingEPH')) then return end
|
||||
TriggerServerEvent("md-drugs:server:geteph", k)
|
||||
@@ -424,7 +427,7 @@ for k, v in pairs (locations.MethAce) do
|
||||
Bridge.Target.AddBoxZone('stealMethAce'..k, v.loc, vector3(v.l, v.w, 1.0), v.loc.w or 180.0, {
|
||||
{
|
||||
label = Bridge.Language.Locale('meth.targetStealACE'),
|
||||
icon = 'fa-solid fa-bucket',
|
||||
icon = Bridge.Language.Locale('meth.targetStealACEIcon'),
|
||||
action = function()
|
||||
if not progressbar(Bridge.Language.Locale('meth.stealingACE')) then return end
|
||||
TriggerServerEvent("md-drugs:server:getace", k)
|
||||
|
||||
+3
-3
@@ -27,7 +27,7 @@ local function getRoute()
|
||||
Bridge.Target.AddLocalEntity(oxybuyer,{
|
||||
{
|
||||
label = Bridge.Language.Locale('oxy.targetHandoff'),
|
||||
icon = "fa-solid fa-dollar-sign",
|
||||
icon = Bridge.Language.Locale('oxy.targetHandOffIcon'),
|
||||
action = function()
|
||||
if carryPackage then
|
||||
if not progressbar(Bridge.Language.Locale('oxy.handingoff')) then return end
|
||||
@@ -48,7 +48,7 @@ end
|
||||
for k, v in pairs(locations.OxyPayForTruck) do
|
||||
Bridge.Target.AddBoxZone('oxyTruckPur' ..k , v.loc, vector3(v.l, v.w, 2.0), v.loc.w or 180.0, {
|
||||
{
|
||||
icon = 'fa-solid fa-truck-fast',
|
||||
icon = Bridge.Language.Locale('oxy.targetPayIcon'),
|
||||
label = Bridge.Language.Locale('oxy.targetPay'),
|
||||
action = function()
|
||||
requestModel("burrito3", 30000)
|
||||
@@ -65,7 +65,7 @@ for k, v in pairs(locations.OxyPayForTruck) do
|
||||
|
||||
Bridge.Target.AddLocalEntity(vehicle, {
|
||||
{
|
||||
icon = "fa-solid fa-box",
|
||||
icon = Bridge.Language.Locale('oxy.targetGetPackageIcon'),
|
||||
label = Bridge.Language.Locale('oxy.targetGetPackage'),
|
||||
action = function()
|
||||
if carryPackage then
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ end)
|
||||
for k, v in pairs (locations.FillPrescription) do
|
||||
Bridge.Target.AddBoxZone('pharma' ..k , v.loc,vector3(v.l, v.w, 1.0), v.loc.w or 180, {
|
||||
{
|
||||
icon = 'fa-solid fa-capsules',
|
||||
icon = Bridge.Language.Locale('pharma.fillIcon'),
|
||||
label = Bridge.Language.Locale('pharma.targetFill'),
|
||||
action = function()
|
||||
if not progressbar(Bridge.Language.Locale('pharma.fill')) then return end
|
||||
|
||||
@@ -7,6 +7,7 @@ local DrugPlants = {
|
||||
return true
|
||||
end,
|
||||
allow = Config.Drugs.cocaine,
|
||||
icon = Bridge.Language.Locale('coke.pickIcon'),
|
||||
},
|
||||
{model = 'prop_plant_01b', label = 'heroin',langs = Bridge.Language.Locale('heroin.targetPick'), tbl = GlobalState.PoppyPlants, plantTbl = {},
|
||||
pick = function(loc)
|
||||
@@ -15,6 +16,7 @@ local DrugPlants = {
|
||||
return true
|
||||
end,
|
||||
allow = Config.Drugs.heroin,
|
||||
icon = Bridge.Language.Locale('heroin.pickIcon'),
|
||||
},
|
||||
{model = 'prop_cactus_03', label = 'Mescaline', langs = Bridge.Language.Locale('mesc.targetPick'), tbl = GlobalState.Mescaline, plantTbl = {},
|
||||
pick = function(loc)
|
||||
@@ -23,6 +25,7 @@ local DrugPlants = {
|
||||
return true
|
||||
end,
|
||||
allow = Config.Drugs.mescaline,
|
||||
icon = Bridge.Language.Locale('mesc.pickIcon'),
|
||||
|
||||
},
|
||||
{model = 'prop_weed_01', label = 'weed', langs = Bridge.Language.Locale('weed.targetPick'), tbl = GlobalState.WeedPlant, plantTbl = {},
|
||||
@@ -32,6 +35,7 @@ local DrugPlants = {
|
||||
return true
|
||||
end,
|
||||
allow = Config.Drugs.weed,
|
||||
icon = Bridge.Language.Locale('weed.pickIcon'),
|
||||
},
|
||||
{model = 'mushroom', label = 'shrooms', langs = Bridge.Language.Locale('shrooms.targetPick'), tbl = GlobalState.shrooms, plantTbl = {},
|
||||
pick = function(loc)
|
||||
@@ -40,6 +44,7 @@ local DrugPlants = {
|
||||
return true
|
||||
end,
|
||||
allow = Config.Drugs.shrooms,
|
||||
icon = Bridge.Language.Locale('shrooms.pickIcon'),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
+10
-10
@@ -3,7 +3,7 @@ local locations, recipes = GlobalState.MDDrugsLocations.Weed, GlobalState.MDDrug
|
||||
for k, v in pairs (locations.WeedDry) do
|
||||
Bridge.Target.AddBoxZone('weed_dry'..k, v.loc, vector3(v.l or 1.0, v.w or 1.0, 1.0), v.loc.w or 180.0, {
|
||||
{
|
||||
icon = 'fa-solid fa-cannabis',
|
||||
icon = Bridge.Language.Locale('weed.targetDryIcon'),
|
||||
label = Bridge.Language.Locale('weed.targetDry'),
|
||||
action = function()
|
||||
if not itemCheck("wetcannabis") then return end
|
||||
@@ -17,7 +17,7 @@ for k, v in pairs (locations.WeedDry) do
|
||||
Bridge.Notify.SendNotify(Bridge.Language.Locale('weed.take'), "success")
|
||||
Bridge.Target.AddLocalEntity(weedplant, {
|
||||
{
|
||||
icon = "fa-solid fa-cannabis",
|
||||
icon = Bridge.Language.Locale('weed.targetDryIcon'),
|
||||
label = Bridge.Language.Locale('weed.targetDryed'),
|
||||
action = function()
|
||||
DeleteEntity(weedplant)
|
||||
@@ -38,7 +38,7 @@ end
|
||||
for k, v in pairs (locations.WeedTele) do
|
||||
Bridge.Target.AddBoxZone('weed_tele'..k, v.inside, vector3(v.l or 1.0, v.w or 1.0, 1.0), v.rot or 180.0, {
|
||||
{
|
||||
icon = 'fa-solid fa-door-open',
|
||||
icon = Bridge.Language.Locale('weed.teleportOutIcon'),
|
||||
label = Bridge.Language.Locale('weed.teleportOut'),
|
||||
action = function()
|
||||
SetEntityCoords(PlayerPedId(), v.outside)
|
||||
@@ -47,7 +47,7 @@ for k, v in pairs (locations.WeedTele) do
|
||||
})
|
||||
Bridge.Target.AddBoxZone('weed_teleout'..k, v.outside, vector3(v.l or 1.0, v.w or 1.0, 1.0), v.rot or 180.0, {
|
||||
{
|
||||
icon = 'fa-solid fa-door-closed',
|
||||
icon = Bridge.Language.Locale('weed.teleportInIcon'),
|
||||
label = Bridge.Language.Locale('weed.teleportIn'),
|
||||
action = function()
|
||||
SetEntityCoords(PlayerPedId(), v.inside)
|
||||
@@ -126,7 +126,7 @@ for k, v in pairs (locations.WeedSalesman) do
|
||||
SetBlockingOfNonTemporaryEvents(ped, true)
|
||||
Bridge.Target.AddLocalEntity(ped, {
|
||||
{
|
||||
icon = "fa-solid fa-cannabis",
|
||||
icon = Bridge.Language.Locale('weed.salesIcon'),
|
||||
label = Bridge.Language.Locale('weed.targetSales'),
|
||||
action = function()
|
||||
local options = {}
|
||||
@@ -137,8 +137,8 @@ for k, v in pairs (locations.WeedSalesman) do
|
||||
title = itemInfo.label,
|
||||
description = '$' .. d,
|
||||
onSelect = function()
|
||||
local input = Bridge.Input.Open('Amount To Buy',{
|
||||
{type = 'number', title = 'How Many To Buy', min = 1, max = 1000}
|
||||
local input = Bridge.Input.Open(Bridge.Language.Locale('weed.salesHeader'),{
|
||||
{type = 'number', title = Bridge.Language.Locale('weed.salesDesc'), min = 1, max = 1000}
|
||||
})
|
||||
if not input and input[1] then return end
|
||||
if not progressbar(Bridge.Language.Locale('weed.buying', Bridge.Inventory.GetItemInfo(m).label)) then return end
|
||||
@@ -148,7 +148,7 @@ for k, v in pairs (locations.WeedSalesman) do
|
||||
end
|
||||
Bridge.Menu.Open({
|
||||
id = 'weedDude',
|
||||
title = 'Weed Salesman',
|
||||
title = Bridge.Language.Locale('weed.salessHeader'),
|
||||
options = options,
|
||||
})
|
||||
end
|
||||
@@ -166,7 +166,7 @@ for locationKey, locationData in pairs (locations.MakeButter) do
|
||||
SetEntityHeading(props[#props], locationData.loc.w)
|
||||
Bridge.Target.AddLocalEntity(props[#props], {
|
||||
{
|
||||
icon = "fa-solid fa-cannabis",
|
||||
icon = Bridge.Language.Locale('weed.cannabisIcon'),
|
||||
label = Bridge.Language.Locale('weed.targetMakeButter'),
|
||||
action = function()
|
||||
local options = {}
|
||||
@@ -202,7 +202,7 @@ for locationKey, locationData in pairs (locations.MakeOil) do
|
||||
SetEntityHeading(props[#props], locationData.loc.w)
|
||||
Bridge.Target.AddLocalEntity(props[#props], {
|
||||
{
|
||||
icon = "fa-solid fa-cannabis",
|
||||
icon = Bridge.Language.Locale('weed.cannabisIcon'),
|
||||
label = Bridge.Language.Locale('weed.targetMakeOil'),
|
||||
action = function()
|
||||
local options = {}
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ local function spawnShops()
|
||||
Bridge.Target.AddLocalEntity(ped, {
|
||||
{
|
||||
label = Bridge.Language.Locale('Whippit.targetShop'),
|
||||
icon = 'fa-solid fa-cart-shopping',
|
||||
icon = Bridge.Language.Locale('Whippit.whippitIcon'),
|
||||
action = function()
|
||||
local menu = {}
|
||||
for item, price in pairs (GlobalState.MDDrugsRecipes.Whippit.shop) do
|
||||
|
||||
+12
-12
@@ -26,7 +26,7 @@ Bridge.Callback.Register('md-drugs:client:setpress', function(xtcData)
|
||||
Freeze(press, true, head)
|
||||
local options = {
|
||||
{
|
||||
icon = "fas fa-eye",
|
||||
icon = Bridge.Language.Locale('xtc.pressIcon'),
|
||||
label = Bridge.Language.Locale('xtc.targetMake'),
|
||||
distance = 2.0,
|
||||
action = function()
|
||||
@@ -39,7 +39,7 @@ Bridge.Callback.Register('md-drugs:client:setpress', function(xtcData)
|
||||
title = Bridge.Language.Locale(k),
|
||||
description = descript,
|
||||
onSelect = function()
|
||||
if not minigame() then Bridge.Notify.SendNotify(Bridge.Language.Locale('xtc.fail'), "error") return end
|
||||
if not minigame() then return end
|
||||
if not progressbar(Bridge.Language.Locale('xtc.making', Bridge.Language.Locale(k))) then return end
|
||||
TriggerServerEvent("md-drugs:server:makextc", k)
|
||||
end,
|
||||
@@ -57,7 +57,7 @@ Bridge.Callback.Register('md-drugs:client:setpress', function(xtcData)
|
||||
end
|
||||
},
|
||||
{
|
||||
icon = "fas fa-eye",
|
||||
icon = Bridge.Language.Locale('xtc.pressIcon'),
|
||||
label = Bridge.Language.Locale('xtc.targetPickup'),
|
||||
action = function()
|
||||
if not progressbar(Bridge.Language.Locale('xtc.picking')) then return end
|
||||
@@ -77,10 +77,10 @@ end)
|
||||
for k, v in pairs(locations.mdp2p) do
|
||||
Bridge.Target.AddBoxZone('mdp2p'..k, v.loc, vector3(v.l, v.w, 2.0), v.rot or 180.0, {
|
||||
{
|
||||
icon = 'fa-solid fa-flask',
|
||||
icon = Bridge.Language.Locale('xtc.mdp2pIcon'),
|
||||
label = Bridge.Language.Locale('xtc.targetStealMDP2P'),
|
||||
action = function()
|
||||
if not minigame() then Bridge.Notify.SendNotify(Bridge.Language.Locale('xtc.fail'), "error") return end
|
||||
if not minigame() then return end
|
||||
if not progressbar(Bridge.Language.Locale('xtc.stealingMDP2P')) then return end
|
||||
TriggerServerEvent("md-drugs:server:stealmdp2p", k)
|
||||
end,
|
||||
@@ -93,10 +93,10 @@ end
|
||||
for k, v in pairs(locations.isosafrole) do
|
||||
Bridge.Target.AddBoxZone('isosafrole'..k, v.loc, vector3(v.l, v.w, 2.0), v.rot or 180.0, {
|
||||
{
|
||||
icon = 'fa-solid fa-flask',
|
||||
icon = Bridge.Language.Locale('xtc.isosafroleIcon'),
|
||||
label = Bridge.Language.Locale('xtc.targetStealIsosafrole'),
|
||||
action = function()
|
||||
if not minigame() then Bridge.Notify.SendNotify(Bridge.Language.Locale('xtc.fail'), "error") return end
|
||||
if not minigame() then return end
|
||||
if not progressbar(Bridge.Language.Locale('xtc.stealingIsosafrole')) then return end
|
||||
TriggerServerEvent("md-drugs:server:stealisosafrole", k)
|
||||
end,
|
||||
@@ -110,10 +110,10 @@ end
|
||||
for k, v in pairs(locations.rawxtcloc) do
|
||||
Bridge.Target.AddBoxZone('xtcraw'..k, v.loc, vector3(v.l, v.w, 2.0), v.rot or 180.0, {
|
||||
{
|
||||
icon = 'fa-solid fa-flask',
|
||||
icon = Bridge.Language.Locale('xtc.rawIcon'),
|
||||
label = Bridge.Language.Locale('xtc.targetRaw'),
|
||||
action = function()
|
||||
if not minigame() then Bridge.Notify.SendNotify(Bridge.Language.Locale('xtc.fail'), "error") return end
|
||||
if not minigame() then return end
|
||||
if not progressbar(Bridge.Language.Locale('xtc.makingRaw')) then return end
|
||||
TriggerServerEvent("md-drugs:server:makingrawxtc", k)
|
||||
end,
|
||||
@@ -130,7 +130,7 @@ for k, v in pairs(locations.xtcpress) do
|
||||
Freeze(ped, true, v.loc.w)
|
||||
Bridge.Target.AddLocalEntity(ped, {
|
||||
{
|
||||
icon = 'fa-solid fa-flask',
|
||||
icon = Bridge.Language.Locale('xtc.pressIcon'),
|
||||
label = Bridge.Language.Locale('xtc.getPress'),
|
||||
onSelect = function()
|
||||
local options = {}
|
||||
@@ -179,7 +179,7 @@ end
|
||||
for k, v in pairs (locations.stamp) do
|
||||
Bridge.Target.AddBoxZone('xtcstamp'..k, v.loc, vector3(v.l, v.w, 2.0), v.rot or 180.0, {
|
||||
{
|
||||
icon = 'fa-solid fa-flask',
|
||||
icon = Bridge.Language.Locale('xtc.stampIcon'),
|
||||
label = Bridge.Language.Locale('xtc.targetStamp'),
|
||||
onSelect = function()
|
||||
local item = {
|
||||
@@ -195,7 +195,7 @@ for k, v in pairs (locations.stamp) do
|
||||
title = d.label,
|
||||
description = Bridge.Language.Locale('xtc.stamp_desc', d.color),
|
||||
action = function()
|
||||
if not minigame() then Bridge.Notify.SendNotify(Bridge.Language.Locale('xtc.fail'), "error") return end
|
||||
if not minigame() then return end
|
||||
if not progressbar(Bridge.Language.Locale('xtc.stamping', d.label)) then return end
|
||||
TriggerServerEvent("md-drugs:server:stamp", k, d.color)
|
||||
end,
|
||||
|
||||
Reference in new issue
Block a user