Skip to content

Commit

Permalink
Oopsy Daisy
Browse files Browse the repository at this point in the history
  • Loading branch information
TehSteel committed Jan 19, 2023
1 parent 3caeca0 commit 4c85074
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/chemicals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ end

AddEventHandler('onResourceStop', function(resource)
if resource == GetCurrentResourceName() then
for k, v in pairs(Chemicals) do
for _, v in pairs(Chemicals) do
SetEntityAsMissionEntity(v, false, true)
DeleteObject(v)
end
Expand Down
2 changes: 1 addition & 1 deletion client/coke.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ end
local function ValidateCocaLeafCoord(plantCoord)
local validate = true
if spawnedCocaLeaf > 0 then
for k, v in pairs(CocaPlants) do
for _, v in pairs(CocaPlants) do
if #(plantCoord - GetEntityCoords(v)) < 5 then
validate = false
end
Expand Down
2 changes: 1 addition & 1 deletion client/heroin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local QBCore = exports['qb-core']:GetCoreObject()
local function ValidateHeroinCoord(plantCoord)
local validate = true
if spawnedPoppys > 0 then
for k, v in pairs(PoppyPlants) do
for _, v in pairs(PoppyPlants) do
if #(plantCoord - GetEntityCoords(v)) < 5 then
validate = false
end
Expand Down
4 changes: 2 additions & 2 deletions client/hydrochloricacid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ local QBCore = exports['qb-core']:GetCoreObject()
local function ValidateHydrochloricAcidCoord(plantCoord)
local validate = true
if spawnedHydrochloricAcidBarrels > 0 then
for k, v in pairs(HydrochloricAcidBarrels) do
for _, v in pairs(HydrochloricAcidBarrels) do
if #(plantCoord-GetEntityCoords(v)) < 5 then
validate = false
end
Expand Down Expand Up @@ -115,7 +115,7 @@ end)

AddEventHandler('onResourceStop', function(resource)
if resource == GetCurrentResourceName() then
for k, v in pairs(HydrochloricAcidBarrels) do
for _, v in pairs(HydrochloricAcidBarrels) do
SetEntityAsMissionEntity(v, false, true)
DeleteObject(v)
end
Expand Down
4 changes: 2 additions & 2 deletions client/sulfuricacid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ RegisterNetEvent("ps-drugprocessing:pickSulfuric", function()
local nearbyObject, nearbyID

for i=1, #SulfuricAcidBarrels, 1 do
if #(coords - GetEntityCoords(SulfuricAcidBarrels[i])) < 2
if #(coords - GetEntityCoords(SulfuricAcidBarrels[i])) < 2 then
nearbyObject, nearbyID = SulfuricAcidBarrels[i], i
end
end
Expand Down Expand Up @@ -115,7 +115,7 @@ end)

AddEventHandler('onResourceStop', function(resource)
if resource == GetCurrentResourceName() then
for k, v in pairs(SulfuricAcidBarrels) do
for _, v in pairs(SulfuricAcidBarrels) do
SetEntityAsMissionEntity(v, false, true)
DeleteObject(v)
end
Expand Down

0 comments on commit 4c85074

Please sign in to comment.