moved more
This commit is contained in:
1 parent
bcdf71b17a
commit
5bc0e9f4e0
12 files changed
+242
-275
No files matched your search
@@ -373,7 +373,8 @@ end
|
||||
local hit = 0
|
||||
function SpawnCarPedChase()
|
||||
local stoploc = vector3(-1157.63, -3056.71, 13.94)
|
||||
local start = Config.StartLoc[math.random(1,#Config.StartLoc)]
|
||||
local config = lib.callback.await('md-drugs:server:getLocs', false)
|
||||
local start = config.StartLoc[math.random(1,#config.StartLoc)]
|
||||
if started then
|
||||
Notify(Lang.lean.act,'error')
|
||||
else
|
||||
@@ -434,7 +435,8 @@ end
|
||||
function SpawnMethCarPedChase()
|
||||
local ped = GetEntityCoords(PlayerPedId())
|
||||
local stoploc = vector3(-1157.63, -3056.71, 13.94)
|
||||
local start = Config.StartLoc[math.random(1,#Config.StartLoc)]
|
||||
local config = lib.callback.await('md-drugs:server:getLocs', false)
|
||||
local start = config.StartLoc[math.random(1,#config.StartLoc)]
|
||||
local startedmeth = false
|
||||
|
||||
if startedmeth then
|
||||
|
||||
+3
-2
@@ -15,8 +15,9 @@ end)
|
||||
|
||||
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getoxylocationroute", function()
|
||||
local CurrentLocation = Config.oxylocations[math.random(#Config.oxylocations)]
|
||||
RegisterNetEvent("md-drugs:client:getoxylocationroute", function()
|
||||
local config = lib.callback.await('md-drugs:server:getLocs', false)
|
||||
local CurrentLocation = config.oxylocations[math.random(#config.oxylocations)]
|
||||
if CurrentLocation ~= nil then
|
||||
SetNewWaypoint(CurrentLocation.x, CurrentLocation.y)
|
||||
local current = "g_m_y_famdnf_01"
|
||||
|
||||
@@ -4,9 +4,8 @@ CreateThread(function()
|
||||
local current = "g_m_y_famdnf_01"
|
||||
lib.requestModel(current, Config.RequestModelTime)
|
||||
local num = lib.callback.await('md-drugs:server:GetMerchant', false)
|
||||
local CurrentLocation = Config.Travellingmerchant[num]
|
||||
local travellingmerchant = CreatePed(0, current,CurrentLocation.x,CurrentLocation.y,CurrentLocation.z-1, CurrentLocation.w, false, false)
|
||||
Freeze(travellingmerchant, true, CurrentLocation.w)
|
||||
local travellingmerchant = CreatePed(0, current,num.x,num.y,num.z-1, num.w, false, false)
|
||||
Freeze(travellingmerchant, true, num.w)
|
||||
AddSingleModel(travellingmerchant, { label = Lang.targets.travel.travel, icon = "fas fa-eye",
|
||||
action = function()
|
||||
makeMenu('travellingMerchant')
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ end)
|
||||
|
||||
CreateThread(function()
|
||||
local config = lib.callback.await('md-drugs:server:getLocs', false)
|
||||
AddBoxZoneMulti('weeddry', Config.WeedDry, {
|
||||
AddBoxZoneMulti('weeddry', config.WeedDry, {
|
||||
name = 'dryweed',
|
||||
icon = "fas fa-sign-in-alt",
|
||||
label = Lang.targets.weed.dry,
|
||||
|
||||
Reference in new issue
Block a user