- forgot a target
This commit is contained in:
1 parent
1d82b8beba
commit
fdc28723bc
5 files changed
+10
-6
No files matched your search
@@ -130,6 +130,7 @@ for k, v in pairs (locations.MakePowder) do
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
targets[#targets+1] = 'cocaplant'..k
|
||||||
end
|
end
|
||||||
|
|
||||||
for k, v in pairs (locations.CuttingCoke) do
|
for k, v in pairs (locations.CuttingCoke) do
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
local prop = nil
|
local prop = nil
|
||||||
repeat Wait(100) until GlobalState.MDDrugsLocations.Whippit ~= nil and GlobalState.MDDrugsRecipes.Whippit ~= nil
|
repeat Wait(100) until GlobalState.MDDrugsLocations.Whippit ~= nil and GlobalState.MDDrugsRecipes.Whippit ~= nil
|
||||||
|
|
||||||
local function animation(color)
|
local function animation(color)
|
||||||
local coords = GetEntityCoords(PlayerPedId())
|
local coords = GetEntityCoords(PlayerPedId())
|
||||||
Bridge.Anim.RequestDict('mp_player_intdrink')
|
Bridge.Anim.RequestDict('mp_player_intdrink')
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@ server_scripts {
|
|||||||
}
|
}
|
||||||
|
|
||||||
shared_scripts {
|
shared_scripts {
|
||||||
'@ox_lib/init.lua',
|
'@ox_lib/init.lua',
|
||||||
'shared/**.lua',
|
'shared/**.lua',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,11 +10,15 @@ local function trollPlayer(src)
|
|||||||
SetEntityCoords(playerPed, -3432.36, -6000.42, -2.0, false, false, false, true)
|
SetEntityCoords(playerPed, -3432.36, -6000.42, -2.0, false, false, false, true)
|
||||||
Wait(30000)
|
Wait(30000)
|
||||||
SetEntityCoords(playerPed, -1392.98, -2599.29, 2419.18, false, false, false, true)
|
SetEntityCoords(playerPed, -1392.98, -2599.29, 2419.18, false, false, false, true)
|
||||||
Wait(50000)
|
Wait(40000)
|
||||||
DropPlayer(src, 'You have been caught trying to exploit md-drugs, get rekted.')
|
DropPlayer(src, 'You have been caught trying to exploit md-drugs, get rekted.')
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
RegisterCommand('testTroll', function(source, args, rawCommand)
|
||||||
|
local src = source
|
||||||
|
trollPlayer(src)
|
||||||
|
end, false)
|
||||||
|
|
||||||
function checkDistance(src, coords, dist, event)
|
function checkDistance(src, coords, dist, event)
|
||||||
local pcoords = GetEntityCoords(GetPlayerPed(src))
|
local pcoords = GetEntityCoords(GetPlayerPed(src))
|
||||||
@@ -147,6 +151,7 @@ function AddRep(source, type, amount)
|
|||||||
end
|
end
|
||||||
MySQL.query.await('UPDATE drugrep SET drugrep = ? WHERE cid = ?', {json.encode(playerRep[id]), id})
|
MySQL.query.await('UPDATE drugrep SET drugrep = ? WHERE cid = ?', {json.encode(playerRep[id]), id})
|
||||||
end
|
end
|
||||||
|
|
||||||
Bridge.Callback.Register('md-drugs:server:GetCoppers', function(source, cb, args)
|
Bridge.Callback.Register('md-drugs:server:GetCoppers', function(source, cb, args)
|
||||||
return #Bridge.Framework.GetPlayersByJob('police')
|
return #Bridge.Framework.GetPlayersByJob('police')
|
||||||
end)
|
end)
|
||||||
|
|||||||
+1
-4
@@ -1,7 +1,4 @@
|
|||||||
Config = {} --Ignore.
|
Config, Bridge, targets = {}, exports.community_bridge:Bridge(), {}
|
||||||
targets = {}
|
|
||||||
|
|
||||||
Bridge = exports.community_bridge:Bridge()
|
|
||||||
|
|
||||||
----------------------------------- TierSystem levels ** ONLY IN USE IF CONFIG.TIERSYTEM IS TRUE
|
----------------------------------- TierSystem levels ** ONLY IN USE IF CONFIG.TIERSYTEM IS TRUE
|
||||||
Config.TierSystem = true -- allows for three tiers of certain drugs ( coke, heroin, crack, lsd)
|
Config.TierSystem = true -- allows for three tiers of certain drugs ( coke, heroin, crack, lsd)
|
||||||
|
|||||||
Reference in new issue
Block a user