Skip to content

Commit b4b10da

Browse files
authored
Update api.md
1 parent 894fcce commit b4b10da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/en/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ while (true) {
322322
323323
`runScript` has the following limitations:
324324
325-
- script files must have one of the following extensions: `.mjs`, `.js` (JS scripts), `.ts` (TS scripts), `.s` or `.cs` (CS scripts).
325+
- script files must have one of the following extensions: `.mjs`, `.js` (JS scripts), `.mts`, `.ts` (TS scripts), `.s` or `.cs` (CS scripts).
326326
- spawning CS scripts is not supported in the [delegate mode](./relation-to-cleo-library.md#running-cleo-redux-as-an-addon-to-cleo-library) (i.e. won't work in GTA San Andreas with CLEO 4 installed.)
327327
328328
When running a new script you can also provide arguments to it. `args` is a JavaScript object which keys correspond to variable names in the script. Key names for a CS script are numeric and correspond to local variables (0@, 1@, 2@, etc). JS scripts can receive both numbers and strings as arguments, whereas CS scripts can only receive numbers.

0 commit comments

Comments
 (0)