added CUI function for createuseableitem. will add support for other frameworks in the future

This commit is contained in:
Mustache Dom committed 2024-12-12 17:26:08 -08:00
1 parent 3043ecd924
commit b56e585691
16 files changed
+66 -71

No files matched your search

+2 -2
View File
@@ -20,7 +20,7 @@ RegisterServerEvent('md-drugs:server:getdiethylamide', function(num)
end)
QBCore.Functions.CreateUseableItem('lsdlabkit', function(source, item)
CUI('lsdlabkit', function(source, item)
local src = source
local Player = getPlayer(src)
local placed, loc = lib.callback.await('md-drugs:client:setlsdlabkit', src)
@@ -195,7 +195,7 @@ local sheets = {
}
for k, v in pairs (sheets) do
QBCore.Functions.CreateUseableItem(v.item, function(source)
CUI(v.item, function(source)
local src = source
local Player = getPlayer(src)
local math = math.random(1,10)