diff --git a/client/meth.lua b/client/meth.lua index 9557c24..02ef146 100644 --- a/client/meth.lua +++ b/client/meth.lua @@ -370,6 +370,33 @@ for k, v in pairs (locations.MethSmash) do }) end +for k, v in pairs (locations.MethTele) do + ps.boxTarget('meth_tele'..k, v.inside, {length = v.l, width = v.w, heading = v.rot}, { + { + icon = 'fa-solid fa-door-open', + label = ps.lang('coke.teleOut'), + action = function() + SetEntityCoords(PlayerPedId(), v.outside) + end, + canInteract = function() + return handleGang(v.gang) + end + } + }) + ps.boxTarget('meth_teleout'..k, v.outside, {length = v.l, width = v.w, heading = v.rot}, { + { + icon = 'fa-solid fa-door-closed', + label = ps.lang('coke.teleIn'), + action = function() + SetEntityCoords(PlayerPedId(), v.inside) + end, + canInteract = function() + return handleGang(v.gang) + end + } + }) +end + RegisterCommand('offset', function() local pos = GetEntityCoords(PlayerPedId()) Wait(4000) @@ -408,3 +435,4 @@ for k, v in pairs (locations.Methace) do }) end + diff --git a/client/oxyruns.lua b/client/oxyruns.lua index 47e6b02..062fc55 100644 --- a/client/oxyruns.lua +++ b/client/oxyruns.lua @@ -55,7 +55,11 @@ for k, v in pairs(locations.OxyPayForTruck) do if not paid then return end local oxycar = CreateVehicle("burrito3",v.truckSpawn.x, v.truckSpawn.y, v.truckSpawn.z, v.truckSpawn.w, true, false) - exports[Config.Fuel]:SetFuel(oxycar, 100.0) + if Config.Fuel == "ox_fuel" then + Entity(oxycar).state.fuel = 100.0 + else + exports[Config.Fuel]:SetFuel(oxycar, 100.0) + end TriggerEvent("vehiclekeys:client:SetOwner", GetVehicleNumberPlateText(oxycar)) ps.notify(ps.lang('oxy.keys'), 'success') onMission = true @@ -91,4 +95,5 @@ for k, v in pairs(locations.OxyPayForTruck) do end } }) -end \ No newline at end of file + +end diff --git a/locales/en.lua b/locales/en.lua index e6d464c..23b6f03 100644 --- a/locales/en.lua +++ b/locales/en.lua @@ -152,7 +152,9 @@ Lang.meth = { targetStealACE = 'Steal Acetone', stealingACE = 'Stealing Acetone', notOnRun = 'You Are Not On A Meth Run', - onCooldown = 'You Are On A Cooldown' + onCooldown = 'You Are On A Cooldown', + teleIn = 'Enter the Lab', + teleOut = 'Exit the Lab', } Lang.oxy = { @@ -247,4 +249,4 @@ Lang.merchant = { targetOpen = 'Open Merchant Menu', } -return Lang \ No newline at end of file +return Lang diff --git a/server/meth.lua b/server/meth.lua index 73534da..c10ad0d 100644 --- a/server/meth.lua +++ b/server/meth.lua @@ -18,7 +18,7 @@ local methLocs = { MethEph = { -- get ephedrine {loc = vector3(3559.86, 3673.9, 28.13), l = 1.0, w = 1.0, rot = 45.0, gang = ""}, }, - Methace = { -- get acetone + MethAce = { -- get acetone {loc = vector3(3535.41, 3661.05, 28.12), l = 1.0, w = 1.0, rot = 45.0, gang = ""}, }, MethHeist = { @@ -36,7 +36,7 @@ local methLocs = { local methRecipes = { cook = { - heat = {take = {ephedrine = 1, acetone = 1}, give = {}} + heat = {take = {ephedrine = 1, acetone = 1}, give = {}} --Missing item }, bag = { bags = {take = {empty_weed_bag = 5}, give = {methbags = 5} } @@ -143,3 +143,5 @@ ps.registerCallback('md-drugs:server:registerMeth', function(source) end end) + + diff --git a/shared/config.lua b/shared/config.lua index 6ea7b24..0327c47 100644 --- a/shared/config.lua +++ b/shared/config.lua @@ -3,7 +3,7 @@ ps = exports.ps_lib:init() ps.loadLangs("uwu") Config.respawnTime = 100 -- Seconds -Config.Fuel = "LegacyFuel" -- type the name of script you use i.e. ps-fuel, cdn-fuel, LegacyFuel +Config.Fuel = "LegacyFuel" -- type the name of script you use i.e. ps-fuel, cdn-fuel, LegacyFuel, ox_fuel Config.TierSystem = true -- allows for three tiers of certain drugs ( coke, heroin, crack, lsd) Config.RequestModelTime = 30000 -- if you need more time than this, uhhhh wow Config.Badtrip = 20 -- number means % chance to spawn a clone that chases and attacks while on mescaline @@ -66,4 +66,5 @@ Config.Bzz = { -- if you have BZZZ props for these turn it on if you want heroin =false, shrooms = false, weed = false, -} \ No newline at end of file + +}