mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
Merge pull request #64 from rukshanchamindu/patch-1
This commit is contained in:
@@ -121,7 +121,7 @@ function craftingMenu(data)
|
|||||||
for k, v in pairs(Recipes[i]) do
|
for k, v in pairs(Recipes[i]) do
|
||||||
if not excludeKeys[k] then
|
if not excludeKeys[k] then
|
||||||
if not Recipes[i].amount then Recipes[i].amount = 1 end
|
if not Recipes[i].amount then Recipes[i].amount = 1 end
|
||||||
tempCarryTable[k] = tempCarryTable[k] and (tempCarryTable[k] < Recipes[i].amount) or Recipes[i].amount
|
tempCarryTable[k] = math.max(tempCarryTable[k] or 0, Recipes[i].amount)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -596,4 +596,5 @@ RegisterNetEvent(getScript()..":Crafting:GetItem", function(ItemMake, craftable,
|
|||||||
-- Optionally, add experience here:
|
-- Optionally, add experience here:
|
||||||
-- for example:
|
-- for example:
|
||||||
-- if isStarted("core_skills") then exports["core_skills"]:AddExperience(src, 2) end
|
-- if isStarted("core_skills") then exports["core_skills"]:AddExperience(src, 2) end
|
||||||
end)
|
|
||||||
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user