22 lines
		
	
	
	
		
			931 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			931 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
while not Core do
 | 
						|
    Wait(100)
 | 
						|
end
 | 
						|
 | 
						|
local arguments = {
 | 
						|
    { name = 'item_name',   help = 'The Item You Want To Test (Make Sure It Exists In Config)' },
 | 
						|
    { name = 'action',      help = 'The Action You Want To Test For The Item' },
 | 
						|
    { name = 'with_prop',   help = 'Attach Prop To The Player (1 = Yes, 0 = No)' },
 | 
						|
    { name = 'freeze_anim', help = 'Freeze The Animation (1 = Yes, 0 = No)' }
 | 
						|
}
 | 
						|
 | 
						|
local argsRequired = true -- if this is true the command won't work without args entered
 | 
						|
 | 
						|
Core.Commands.Add('consumes:debug', 'Test Action Animations For Attaching Props', arguments, argsRequired,
 | 
						|
    function(source, args)
 | 
						|
        if not Config.Debug then
 | 
						|
            Notify(source, 'This Command Is Disabled Because Debug Mode Is Off', 'error')
 | 
						|
            return
 | 
						|
        end
 | 
						|
        TriggerClientEvent("mr-consumables:debug:testAnim", source, args[1], args[2], tonumber(args[3]),
 | 
						|
            tonumber(args[4]))
 | 
						|
    end, 'god')
 |