added CUI function for createuseableitem. will add support for other frameworks in the future
This commit is contained in:
1 parent
3043ecd924
commit
b56e585691
16 files changed
+66
-71
No files matched your search
@@ -1,7 +1,7 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
for k, v in pairs(Consumables.Items) do
|
||||
QBCore.Functions.CreateUseableItem(k, function(source, item)
|
||||
CUI(k, function(source, item)
|
||||
if not Itemcheck(source, k, 1) then return end
|
||||
local time = v.time or Consumables.defaulttime
|
||||
local effect = v.effect or 0
|
||||
|
||||
Reference in new issue
Block a user