fuckin christ
This commit is contained in:
1 parent
314f7381d1
commit
daa1a4f8a3
12 files changed
+425
-384
No files matched your search
+22
-7
@@ -1,20 +1,35 @@
|
||||
|
||||
ps.registerCallback("md-drugs:client:prescriptionpad", function(data, op)
|
||||
if ps.getJobType() ~= 'ems' then return end
|
||||
local input = lib.inputDialog('Who To Give A Prescription To?',{
|
||||
{type = 'select', label = 'Player Name', options = data},
|
||||
{type = 'select', label = 'Prescription', options = op}})
|
||||
local input = exports.ps_lib:input('Who To Give A Prescription To?',{
|
||||
{type = 'select', title = 'Player Name', options = data},
|
||||
{type = 'select', title = 'Prescription', options = op}
|
||||
})
|
||||
if not input[1] then return end
|
||||
if not ps.progressbar(Lang.Pharma.write, 4000, 'notepad') then return end
|
||||
return {who = input[1], what = input[2]}
|
||||
if not ps.progressbar(ps.lang('Pharma.write'), 4000, 'notepad') then return end
|
||||
return {who = input[1], what = input[2]}
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:fillprescription", function(data)
|
||||
if not ps.progressbar(Lang.Pharma.fill, 4000, 'uncuff') then return end
|
||||
if not ps.progressbar(ps.lang('Pharma.fill'), 4000, 'uncuff') then return end
|
||||
TriggerServerEvent("md-drugs:server:fillprescription", data.data)
|
||||
end)
|
||||
|
||||
ps.registerCallback("md-drugs:client:unbottle", function()
|
||||
if not ps.progressbar(Lang.Pharma.open, 4000, 'uncuff') then return end
|
||||
if not ps.progressbar(ps.lang('Pharma.open'), 4000, 'uncuff') then return end
|
||||
return true
|
||||
end)
|
||||
|
||||
|
||||
for k, v in pairs (GlobalState.MDDrugsLocs.FillPrescription) do
|
||||
ps.boxTarget('pharma' ..k , v.loc, {length = v.l, width = v.w, heading = v.rot}, {
|
||||
{
|
||||
icon = 'fa-solid fa-capsules',
|
||||
label = ps.lang('Pharma.fillprescription'),
|
||||
action = function()
|
||||
if not ps.progressbar(ps.lang('Pharma.fill'), 4000, 'uncuff') then return end
|
||||
TriggerServerEvent("md-drugs:server:fillprescription", k)
|
||||
end
|
||||
}
|
||||
})
|
||||
end
|
||||
Reference in new issue
Block a user