I have forgotten the problem. It's easy to solve. SpawnZombie = function(module, command, player, args) if command == "SpawnZombie" then spawnHorde(arg.x,arg.y,argz,arg.zb) end end Events.OnClientCommand.Add(SpawnZombie); Send command to the server to handle with, the problem is solved.