ps-ui fix
This commit is contained in:
1 parent
79569a18b6
commit
aca346cc1c
6 files changed
+7
-6
No files matched your search
@@ -60,7 +60,6 @@ function Cornersell()
|
|||||||
until #(GetEntityCoords(PlayerPedId()) - GetEntityCoords(targ)) < 2.0
|
until #(GetEntityCoords(PlayerPedId()) - GetEntityCoords(targ)) < 2.0
|
||||||
lib.requestAnimDict("rcmme_tracey1")
|
lib.requestAnimDict("rcmme_tracey1")
|
||||||
TaskStartScenarioInPlace(targ, "WORLD_HUMAN_STAND_IMPATIENT_UPRIGHT", 0, false) FreezeEntityPosition(targ, true)
|
TaskStartScenarioInPlace(targ, "WORLD_HUMAN_STAND_IMPATIENT_UPRIGHT", 0, false) FreezeEntityPosition(targ, true)
|
||||||
print(data.ped)
|
|
||||||
AddMultiModel(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",
|
{ 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,
|
action = function() sellDrug(data.item, data.amount, data.price, targ) end,
|
||||||
|
|||||||
@@ -92,24 +92,28 @@ function minigame()
|
|||||||
exports['ps-ui']:Maze(function(success)
|
exports['ps-ui']:Maze(function(success)
|
||||||
check = success
|
check = success
|
||||||
end, game['ps_maze'].timelimit)
|
end, game['ps_maze'].timelimit)
|
||||||
|
repeat Wait(10) until check ~= nil
|
||||||
return check
|
return check
|
||||||
elseif minigametype == 'ps_scrambler' then
|
elseif minigametype == 'ps_scrambler' then
|
||||||
local check
|
local check
|
||||||
exports['ps-ui']:Scrambler(function(success)
|
exports['ps-ui']:Scrambler(function(success)
|
||||||
check = success
|
check = success
|
||||||
end, game['ps_scrambler'].type, game['ps_scrambler'].time, game['ps_scrambler'].mirrored)
|
end, game['ps_scrambler'].type, game['ps_scrambler'].time, game['ps_scrambler'].mirrored)
|
||||||
|
repeat Wait(10) until check ~= nil
|
||||||
return check
|
return check
|
||||||
elseif minigametype == 'ps_var' then
|
elseif minigametype == 'ps_var' then
|
||||||
local check
|
local check
|
||||||
exports['ps-ui']:VarHack(function(success)
|
exports['ps-ui']:VarHack(function(success)
|
||||||
check = success
|
check = success
|
||||||
end, game['ps_var'].numBlocks, game['ps_var'].time)
|
end, game['ps_var'].numBlocks, game['ps_var'].time)
|
||||||
|
repeat Wait(10) until check ~= nil
|
||||||
return check
|
return check
|
||||||
elseif minigametype == 'ps_thermite' then
|
elseif minigametype == 'ps_thermite' then
|
||||||
local check
|
local check
|
||||||
exports['ps-ui']:Thermite(function(success)
|
exports['ps-ui']:Thermite(function(success)
|
||||||
check = success
|
check = success
|
||||||
end, game['ps_thermite'].time, game['ps_thermite'].gridsize, game['ps_thermite'].incorrect)
|
end, game['ps_thermite'].time, game['ps_thermite'].gridsize, game['ps_thermite'].incorrect)
|
||||||
|
repeat Wait(10) until check ~= nil
|
||||||
return check
|
return check
|
||||||
elseif minigametype == 'ox' then
|
elseif minigametype == 'ox' then
|
||||||
local success = lib.skillCheck(game['ox'], {'1', '2', '3', '4'})
|
local success = lib.skillCheck(game['ox'], {'1', '2', '3', '4'})
|
||||||
@@ -530,7 +534,6 @@ function AddSingleModel(model, data, num)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function AddMultiModel(model, data, num)
|
function AddMultiModel(model, data, num)
|
||||||
print(model)
|
|
||||||
local options = {}
|
local options = {}
|
||||||
for k, v in pairs (data) do
|
for k, v in pairs (data) do
|
||||||
table.insert(options, {
|
table.insert(options, {
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ lib.callback.register("md-drugs:client:prescriptionpad", function(data, op)
|
|||||||
local input = lib.inputDialog('Who To Give A Prescription To?',{
|
local input = lib.inputDialog('Who To Give A Prescription To?',{
|
||||||
{type = 'select', label = 'Player Name', options = data},
|
{type = 'select', label = 'Player Name', options = data},
|
||||||
{type = 'select', label = 'Prescription', options = op}})
|
{type = 'select', label = 'Prescription', options = op}})
|
||||||
|
if not input[1] then return end
|
||||||
if not progressbar(Lang.Pharma.write, 4000, 'notepad') then return end
|
if not progressbar(Lang.Pharma.write, 4000, 'notepad') then return end
|
||||||
return {who = input[1], what = input[2]}
|
return {who = input[1], what = input[2]}
|
||||||
end)
|
end)
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
local QBCore = exports['qb-core']:GetCoreObject()
|
|
||||||
local cokeplants = {
|
local cokeplants = {
|
||||||
{ location = vector3(1474.25, -2643.87, 42.88), heading = 334.49, model = "prop_plant_01a" },
|
{ 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" },
|
{ location = vector3(1472.35, -2649.3, 41.87), heading = 329.56, model = "prop_plant_01a" },
|
||||||
|
|||||||
@@ -152,7 +152,6 @@ CUI('heroinlabkit', function(source, item)
|
|||||||
})
|
})
|
||||||
Notifys(src, Lang.Heroin.placed, "success")
|
Notifys(src, Lang.Heroin.placed, "success")
|
||||||
end
|
end
|
||||||
print(json.encode(heroinLabKits))
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
RegisterServerEvent('md-drugs:server:heatliquidheroin', function()
|
RegisterServerEvent('md-drugs:server:heatliquidheroin', function()
|
||||||
@@ -250,5 +249,4 @@ AddEventHandler('playerDropped', function()
|
|||||||
AddItem(src, 'heroinlabkit', 1)
|
AddItem(src, 'heroinlabkit', 1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
json.encode(heroinLabKits)
|
|
||||||
end)
|
end)
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
local QBCore = exports['qb-core']:GetCoreObject()
|
|
||||||
local coke = { "cokebaggy", "cokebaggystagethree", "cokebaggystagetwo"}
|
local coke = { "cokebaggy", "cokebaggystagethree", "cokebaggystagetwo"}
|
||||||
local crack = {"baggedcracked", "baggedcrackedstagetwo", "baggedcrackedstagethree"}
|
local crack = {"baggedcracked", "baggedcrackedstagetwo", "baggedcrackedstagethree"}
|
||||||
local lsd = {'smiley_tabs', 'yinyang_tabs', 'wildcherry_tabs', 'pineapple_tabs', 'bart_tabs', 'gratefuldead_tabs'}
|
local lsd = {'smiley_tabs', 'yinyang_tabs', 'wildcherry_tabs', 'pineapple_tabs', 'bart_tabs', 'gratefuldead_tabs'}
|
||||||
|
|||||||
Reference in new issue
Block a user