er2.require 49
Equivalent to default Lua require function, but handles the script paths as local misison paths, to ensure easier file referencing and compatibility with Xbox, Nintendo Switch and PlayStation systems.
External file must be placed within the folder '[mission folder]/scripts/general/' or any subfolder
Return value
Return Type | Description |
---|---|
void | This function doesn't return anything |
Parameters
Parameter | Type | Description |
---|---|---|
1 | string | The sub path and file name to load |
Examples
No examples available.