StopPackage: Difference between revisions
From Onset Developer Wiki
No edit summary |
m Related functions about packages added |
||
Line 23: | Line 23: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
*[[ImportPackage]] | |||
*[[StartPackage]] | |||
*[[StopPackage]] | |||
*[[GetAllPackages]] | |||
*[[GetPackageName]] | |||
*[[IsPackageStarted]] |
Revision as of 20:23, 16 December 2019
Description
Stops a package during runtime. If a client downloads files from it, the download will be cancelled.
Syntax
StopPackage(PackageName)
Parameters
- PackageName
The name of the package.
Return Value
- Returns true on success.
Example
function cmd_restartpack(player, package_)
StopPackage(package_)
Delay(500, function()
StartPackage(package_)
end)
end
AddCommand("restartpack", cmd_restartpack)