moved things around

This commit is contained in:
Mustache Dom committed 2024-11-12 02:36:45 -08:00
1 parent abb1bba3fe
commit 8df50c0417
5 files changed
+16 -17

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ end
RegisterNetEvent("coke:pickupCane")
AddEventHandler("coke:pickupCane", function(loc)
local src = source
--if CheckDist(src, Config.CocaPlant[loc].location) then return end
if CheckDist(src, cokeplants[loc].location) then return end
if not cokeplants[loc].taken then
cokeplants[loc].taken = true
GlobalState.CocaPlant = cokeplants
+1 -1
View File
@@ -117,7 +117,7 @@ function checkLoc(source, event, num)
local coord = GetEntityCoords(pos)
local loc = ''
if type(num) =='string' then
loc = Target[event][num]
loc = vector3(Target[event][num].x, Target[event][num].y, Target[event][num].z)
else
loc = Target[event][num].loc
end
+1 -1
View File
@@ -117,7 +117,7 @@ end)
RegisterServerEvent('md-drugs:server:getlabkit', function()
local src = source
local Player = getPlayer(src)
if CheckDist(source, vector3(Config.buylsdlabkit.x, Config.buylsdlabkit.y, Config.buylsdlabkit.z)) then return end
if not checkLoc(src,'singleSpot', 'buylsdlabkit') then return end
if Player.Functions.RemoveMoney('cash', Config.lsdlabkitcost) then
AddItem(src,'lsdlabkit', 1)
Log(GetName(src) ..' Bought A LSD Lab Kit!', 'lsd')