require
Require a file from any of your resources
Parameters description
Parameter
Type
Description
Default
path
string
Format: '@resourceName/folder/file.lua'
----
If you use the require function in client side you must set the file you require in your fxmanifest as part of the files. Example:
files {
'file.lua'
}
Example
Last updated