AddClientScript

From Onset Developer Wiki
Revision as of 17:45, 21 January 2021 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
AddClientScript

Type: Function
Context: Server
Introduced: v1.4.1

Description

Registers a client script to this package.

This function only works in the index.lua script.

Syntax

AddClientScript(file)

Parameters

  • file
    The client script to register. Wildcards (*) are supported.

Return Value

  • Returns true on success.

Example

--index.lua
AddClientScript("client/*_c.lua")

See also