made makeMenu function, moved all stores from config to server/travellingmerchant.lua
This commit is contained in:
1 parent
e9f722a140
commit
dbed6b3c47
15 files changed
+239
-316
No files matched your search
@@ -1,14 +1,12 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
GlobalState.Mescaline = Config.Mescaline
|
||||
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
for _, v in pairs(Config.Mescaline) do
|
||||
v.taken = false
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
function MescalineCooldown(loc)
|
||||
CreateThread(function()
|
||||
Wait(Config.respawnTime * 1000)
|
||||
@@ -22,7 +20,7 @@ end
|
||||
|
||||
|
||||
RegisterNetEvent("Mescaline:pickupCane", function(loc)
|
||||
if CheckDist(source, Config.Mescaline[loc].location) then return end
|
||||
if CheckDist(source, Config.Mescaline[loc].location) then return end
|
||||
if not Config.Mescaline[loc].taken then
|
||||
Config.Mescaline[loc].taken = true
|
||||
GlobalState.Mescaline = Config.Mescaline
|
||||
|
||||
Reference in new issue
Block a user