- fix Weed Blunts
This commit is contained in:
1 parent
30f12ebbe5
commit
0f80534168
4 files changed
+18
-6
No files matched your search
+4
-4
@@ -102,8 +102,8 @@ local function createBluntOptions(contextId, contextTitle, eventLabelPrefix, tab
|
|||||||
title = itemData.label,
|
title = itemData.label,
|
||||||
onSelect = function()
|
onSelect = function()
|
||||||
if not minigame() then return end
|
if not minigame() then return end
|
||||||
if not progressbar(eventLabelPrefix .. itemData.label) then return end
|
if not progressbar( Bridge.Language.Locale(eventLabelPrefix, itemData.label)) then return end
|
||||||
TriggerServerEvent('md-drugs:server:MakeWeedItems', {item = item, recipe = 'weed', num = k, table = tableName})
|
TriggerServerEvent('md-drugs:server:RollBlunt', tableName, item)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
@@ -115,11 +115,11 @@ local function createBluntOptions(contextId, contextTitle, eventLabelPrefix, tab
|
|||||||
end
|
end
|
||||||
|
|
||||||
RegisterNetEvent('md-drugs:client:makeBluntWrap', function(data)
|
RegisterNetEvent('md-drugs:client:makeBluntWrap', function(data)
|
||||||
createBluntOptions('mddrugsbluntwraps', "Dipping Syrup", Bridge.Language.Locale('weed.bluntWrap'), 'bluntwrap')
|
createBluntOptions('mddrugsbluntwraps', "Dipping Syrup", 'weed.bluntWrap', 'bluntwrap')
|
||||||
end)
|
end)
|
||||||
|
|
||||||
RegisterNetEvent('md-drugs:client:rollBlunt', function(data)
|
RegisterNetEvent('md-drugs:client:rollBlunt', function(data)
|
||||||
createBluntOptions('mddrugsblunts', "Roll Blunts", Bridge.Language.Locale('weed.blunts'), 'blunts')
|
createBluntOptions('mddrugsblunts', "Roll Blunts", 'weed.rolling', 'blunts')
|
||||||
end)
|
end)
|
||||||
|
|
||||||
for k, v in pairs (locations.WeedSalesman) do
|
for k, v in pairs (locations.WeedSalesman) do
|
||||||
|
|||||||
+3
-1
@@ -267,7 +267,9 @@
|
|||||||
"invalidTableWarn": "Player: %s attempted to exploit the weed event by triggering the event with an invalid recipe table butter/oil.",
|
"invalidTableWarn": "Player: %s attempted to exploit the weed event by triggering the event with an invalid recipe table butter/oil.",
|
||||||
"recipeDoesntExistWarn": "Player: %s attempted to exploit the weed event by triggering the event with a non existent recipe name: %s.",
|
"recipeDoesntExistWarn": "Player: %s attempted to exploit the weed event by triggering the event with a non existent recipe name: %s.",
|
||||||
"targetMakeButter": "Make Edible Products",
|
"targetMakeButter": "Make Edible Products",
|
||||||
"targetMakeOil": "Make Oil"
|
"targetMakeOil": "Make Oil",
|
||||||
|
"making": "Making %s ",
|
||||||
|
"rolling": "Rolling %s"
|
||||||
},
|
},
|
||||||
|
|
||||||
"wholesale": {
|
"wholesale": {
|
||||||
|
|||||||
@@ -73,6 +73,16 @@ RegisterServerEvent('md-drugs:server:MakeWeedItems', function(tabl, item, loc)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
RegisterNetEvent('md-drugs:server:RollBlunt', function(tabl, item)
|
||||||
|
local src = source
|
||||||
|
if timeOut(src, 'md-drugs:server:RollBlunt') then return end
|
||||||
|
local recipe = Config.Weed.Recipes[tabl][item]
|
||||||
|
if not recipe then
|
||||||
|
Bridge.Prints.Warn(Bridge.Language.Locale('weed.recipeDoesntExistWarn', Bridge.Framework.GetPlayerIdentifier(src), item))
|
||||||
|
return
|
||||||
|
end
|
||||||
|
if not craft(src, recipe) then return end
|
||||||
|
end)
|
||||||
Bridge.Framework.RegisterUsableItem("dabrig", function(source, item)
|
Bridge.Framework.RegisterUsableItem("dabrig", function(source, item)
|
||||||
local src = source
|
local src = source
|
||||||
if Bridge.Inventory.HasItem(src, "butanetorch") then
|
if Bridge.Inventory.HasItem(src, "butanetorch") then
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ Config.Tier2 = 300 -- amount to hit for level 3
|
|||||||
|
|
||||||
|
|
||||||
--- Customizations
|
--- Customizations
|
||||||
Config.Dispatch = 'ps' -- either 'ps', 'cd', 'core', 'aty'
|
Config.Dispatch = 'ox' -- either 'ps', 'cd', 'core', 'aty'
|
||||||
Config.Minigames = {
|
Config.Minigames = {
|
||||||
ps_circle = {amount = 2, speed = 8,},
|
ps_circle = {amount = 2, speed = 8,},
|
||||||
ps_maze = {timelimit = 15},
|
ps_maze = {timelimit = 15},
|
||||||
|
|||||||
Reference in new issue
Block a user