removed core export: fixed bugs

This commit is contained in:
Mustache Dom committed 2024-12-12 15:26:48 -08:00
1 parent a07118d0cb
commit 3043ecd924
24 files changed
+39 -41

No files matched your search

+2 -1
View File
@@ -48,6 +48,7 @@ local src = source
end)
RegisterServerEvent("heroin:pickupCane", function(loc)
if CheckDist(source, h[loc].location) then return end
if not h[loc].taken then
h[loc].taken = true
GlobalState.PoppyPlants = h
@@ -103,7 +104,7 @@ RegisterServerEvent('md-drugs:server:getheroinlabkit', function()
local Player = getPlayer(src)
if not checkLoc(source, 'singleSpot', 'buyheroinlabkit') then return end
local has = Player.Functions.GetItemByName('heroinlabkit')
if has then Notifys(src, 'You Already Have A Heroin Lab Kit', 'error') return end
if has then Notifys(src, Lang.Heroin.haskit, 'error') return end
if Player.Functions.RemoveMoney('cash', prices.heroinlabkitprice) then
AddItem(src, 'heroinlabkit', 1)
else
+2 -2
View File
@@ -54,13 +54,13 @@ function WeedCooldown(loc)
end
RegisterNetEvent("weed:pickupCane", function(loc)
local src = source
if CheckDist(source, weedPlant[loc].location) then return end
if not weedPlant[loc].taken then
weedPlant[loc].taken = true
GlobalState.WeedPlant = weedPlant
TriggerClientEvent("weed:removeCane", -1, loc)
WeedCooldown(loc)
AddItem(src, 'wetcannabis', 1)
AddItem(source, 'wetcannabis', 1)
Log(GetName(source) .. ' Picked Weed With a distance of ' .. dist(source, weedPlant[loc].location) .. ' vectors', 'weed')
end
end)
+2 -2
View File
@@ -19,10 +19,10 @@ for k, v in pairs (burners) do
QBCore.Functions.CreateUseableItem(k, function(source, item)
local src = source
local Player = getPlayer(src)
if getCops() < Config.PoliceCount then return Notifys(src, 'Nobody Answered, Try Again Later', 'error') end
if getCops() < Config.PoliceCount then return Notifys(src, Lang.Wholesale.na, 'error') end
for m, d in pairs (active) do
if d.cid == Player.PlayerData.citizenid then
return Notifys(src, 'You Already Have A Delivery To Make', 'error' )
return Notifys(src, Lang.Wholesale.al, 'error' )
end
end
local tab = ''