Update lean.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2023-12-07 16:51:51 -08:00
1 parent f21ee5bf26
commit ecf068582e
1 file changed
+2 -3
+2 -3
View File
@@ -27,7 +27,7 @@ end
end) end)
end end
QBCore.Functions.CreateUseableItem(function(source, item) QBCore.Functions.CreateUseableItem('leancup', function(source, item)
local src = source local src = source
local Player = QBCore.Functions.GetPlayer(src) local Player = QBCore.Functions.GetPlayer(src)
local recipe1 = { 'mdlean', 'sprunk', 'leancup'} local recipe1 = { 'mdlean', 'sprunk', 'leancup'}
@@ -64,6 +64,5 @@ if price == 2 then
Player.Functions.AddItem('cupofdextro', 1) Player.Functions.AddItem('cupofdextro', 1)
TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cupofdextro'], "add", 1) TriggerClientEvent("inventory:client:ItemBox", source, QBCore.Shared.Items['cupofdextro'], "add", 1)
end end
end, 'leancup') end)