I want to make if player types a command like /givecar 255 255 255 to add arguments but not only for givecar but for all command even if command does not have arguments 
if (string.find(guiGetText(chatLabel), "/")) then 
            local cleanCommand = string.gsub(guiGetText(chatLabel), "/", "") 
            local param1, param2, param3, param4 = false 
                if string.find(guiGetText(chatLabel), " ") then 
                param1, param2, param3, param4 = split(cleanCommand, " ") 
                end 
                triggerServerEvent("executeCommand", localPlayer, cleanCommand, param1, param2, param3, param4) 
 
Execute like this: 
executeCommandHandler(command, source, p1, p2, p3, p4)