Announcement

Collapse
No announcement yet.

Console support for command

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Console support for command

    As in title, right now i have to restart server to restart packages, ability to do it via command speed up whole process. Sometimes nice to have option to do something at server without entering

    #2
    For now, you can only do it by adding a command in game.

    See the example here : https://dev.playonset.com/wiki/StartPackage.

    Code:
    function cmd_restartpack(player, package_)
        StopPackage(package_)
        Delay(500, function()
            StartPackage(package_)
        end)
    end
    AddCommand("restartpack", cmd_restartpack)
    Last edited by Wumbaloo; 12-13-2019, 04:27 PM.

    Comment


    • CrosRoad95
      CrosRoad95 commented
      Editing a comment
      i know
Working...
X