- delete test commands
This commit is contained in:
1 parent
d9fcb11930
commit
1f3d7154aa
2 files changed
-27
No files matched your search
@@ -2,23 +2,6 @@
|
|||||||
local minigametype = Config.minigametype
|
local minigametype = Config.minigametype
|
||||||
local dispatch = Config.Dispatch
|
local dispatch = Config.Dispatch
|
||||||
|
|
||||||
RegisterCommand('te', function(source, args)
|
|
||||||
if #args < 1 then
|
|
||||||
print('Usage: /te eventname [arg1] [arg2] ...')
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local eventName = args[1]
|
|
||||||
|
|
||||||
local eventArgs = {}
|
|
||||||
for i = 2, #args do
|
|
||||||
local arg = args[i]
|
|
||||||
local num = tonumber(arg)
|
|
||||||
table.insert(eventArgs, num ~= nil and num or arg)
|
|
||||||
end
|
|
||||||
|
|
||||||
TriggerServerEvent(eventName, table.unpack(eventArgs))
|
|
||||||
end, false)
|
|
||||||
|
|
||||||
function loadParticle(dict)
|
function loadParticle(dict)
|
||||||
if not HasNamedPtfxAssetLoaded(dict) then
|
if not HasNamedPtfxAssetLoaded(dict) then
|
||||||
|
|||||||
@@ -41,16 +41,6 @@ function verifyHas(source, items)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
RegisterCommand('TestMissing', function(source)
|
|
||||||
local items = {
|
|
||||||
coke = 5,
|
|
||||||
heroin = 2,
|
|
||||||
lsd = 1
|
|
||||||
}
|
|
||||||
local src = source
|
|
||||||
verifyHas(src, items)
|
|
||||||
end)
|
|
||||||
|
|
||||||
local function handleFresh(source)
|
local function handleFresh(source)
|
||||||
local table = json.encode({
|
local table = json.encode({
|
||||||
coke = 0,lsd = 0,heroin = 0,dealerrep = 0,
|
coke = 0,lsd = 0,heroin = 0,dealerrep = 0,
|
||||||
|
|||||||
Reference in new issue
Block a user