AddServerScript: Difference between revisions
From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.4.1}} {{FuncDescription|Registers a server script to this package. This function only works in the index.lua script.}} {{Fun...") |
(No difference)
|
Revision as of 11:56, 11 January 2021
Description
Registers a server script to this package.
This function only works in the index.lua script.
Syntax
AddServerScript(file)
Parameters
- file
The server script to register. Wildcards (*) are supported.
Return Value
- Returns true on success.
Example
--index.lua
AddServerScript("server/*_s.lua")