AddSharedScript: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.4.1}} {{FuncDescription|Registers a shared script (runs on the server and client) to this package. This function only works in the packages#index...." |
No edit summary |
||
Line 23: | Line 23: | ||
* [[AddSharedScript]] | * [[AddSharedScript]] | ||
* [[AddFile]] | * [[AddFile]] | ||
* [[AddWebUIWhitelist]] |
Latest revision as of 17:45, 21 January 2021
Description
Registers a shared script (runs on the server and client) to this package.
This function only works in the index.lua script.
Syntax
AddSharedScript(file)
Parameters
- file
The shared script to register. Wildcards (*) are supported.
Return Value
- Returns true on success.
Example
--index.lua
AddSharedScript("shared/*.lua")