diff --git a/client/cornerselling.lua b/client/cornerselling.lua index b3748bd..c9dc85b 100644 --- a/client/cornerselling.lua +++ b/client/cornerselling.lua @@ -60,7 +60,6 @@ function Cornersell() until #(GetEntityCoords(PlayerPedId()) - GetEntityCoords(targ)) < 2.0 lib.requestAnimDict("rcmme_tracey1") TaskStartScenarioInPlace(targ, "WORLD_HUMAN_STAND_IMPATIENT_UPRIGHT", 0, false) FreezeEntityPosition(targ, true) - print(data.ped) AddMultiModel(data.ped, { { label = string.format(Lang.targets.CornerSell.sell, data.amount, GetLabel(data.item), data.price), icon ="fa-solid fa-money-bill", action = function() sellDrug(data.item, data.amount, data.price, targ) end, diff --git a/client/functions.lua b/client/functions.lua index fd2c9a2..c2dc04b 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -92,24 +92,28 @@ function minigame() exports['ps-ui']:Maze(function(success) check = success end, game['ps_maze'].timelimit) + repeat Wait(10) until check ~= nil return check elseif minigametype == 'ps_scrambler' then local check exports['ps-ui']:Scrambler(function(success) check = success end, game['ps_scrambler'].type, game['ps_scrambler'].time, game['ps_scrambler'].mirrored) + repeat Wait(10) until check ~= nil return check elseif minigametype == 'ps_var' then local check exports['ps-ui']:VarHack(function(success) check = success end, game['ps_var'].numBlocks, game['ps_var'].time) + repeat Wait(10) until check ~= nil return check elseif minigametype == 'ps_thermite' then local check exports['ps-ui']:Thermite(function(success) check = success end, game['ps_thermite'].time, game['ps_thermite'].gridsize, game['ps_thermite'].incorrect) + repeat Wait(10) until check ~= nil return check elseif minigametype == 'ox' then local success = lib.skillCheck(game['ox'], {'1', '2', '3', '4'}) @@ -530,7 +534,6 @@ function AddSingleModel(model, data, num) end function AddMultiModel(model, data, num) - print(model) local options = {} for k, v in pairs (data) do table.insert(options, { diff --git a/client/pharma.lua b/client/pharma.lua index 3793d9d..b3b225c 100644 --- a/client/pharma.lua +++ b/client/pharma.lua @@ -4,6 +4,7 @@ lib.callback.register("md-drugs:client:prescriptionpad", function(data, op) local input = lib.inputDialog('Who To Give A Prescription To?',{ {type = 'select', label = 'Player Name', options = data}, {type = 'select', label = 'Prescription', options = op}}) + if not input[1] then return end if not progressbar(Lang.Pharma.write, 4000, 'notepad') then return end return {who = input[1], what = input[2]} end) diff --git a/server/cocaine.lua b/server/cocaine.lua index 9363ace..e34859c 100644 --- a/server/cocaine.lua +++ b/server/cocaine.lua @@ -1,4 +1,4 @@ -local QBCore = exports['qb-core']:GetCoreObject() + local cokeplants = { { location = vector3(1474.25, -2643.87, 42.88), heading = 334.49, model = "prop_plant_01a" }, { location = vector3(1472.35, -2649.3, 41.87), heading = 329.56, model = "prop_plant_01a" }, diff --git a/server/heroin.lua b/server/heroin.lua index 4f932bd..fa2f620 100644 --- a/server/heroin.lua +++ b/server/heroin.lua @@ -152,7 +152,6 @@ CUI('heroinlabkit', function(source, item) }) Notifys(src, Lang.Heroin.placed, "success") end - print(json.encode(heroinLabKits)) end) RegisterServerEvent('md-drugs:server:heatliquidheroin', function() @@ -250,5 +249,4 @@ AddEventHandler('playerDropped', function() AddItem(src, 'heroinlabkit', 1) end end - json.encode(heroinLabKits) end) \ No newline at end of file diff --git a/server/wholesale.lua b/server/wholesale.lua index c64bbb0..12e6e0d 100644 --- a/server/wholesale.lua +++ b/server/wholesale.lua @@ -1,4 +1,4 @@ -local QBCore = exports['qb-core']:GetCoreObject() + local coke = { "cokebaggy", "cokebaggystagethree", "cokebaggystagetwo"} local crack = {"baggedcracked", "baggedcrackedstagetwo", "baggedcrackedstagethree"} local lsd = {'smiley_tabs', 'yinyang_tabs', 'wildcherry_tabs', 'pineapple_tabs', 'bart_tabs', 'gratefuldead_tabs'}