Skip to content

Commit 0470fa1

Browse files
committed
2 parents f2b4e3d + 9327fa5 commit 0470fa1

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

api/pool-module.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Iterative lists containing handles to game types.
55
* building
66
* object
77
* ped
8+
* script
89
* veh
910

1011
**Example:**

api/script-module.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,35 @@
11
# Script
22

3-
### get\_author\(\)
3+
### get\_author\( **script\_file\_name** : str \)
44

55
Returns the name of the script author. Returns an empty string if the author is not provided.
66

7-
### get\_desc\(\)
7+
**script\_file\_name \( with extension \):** Optional, passing no arguments would return the value of the current script.
8+
9+
### get\_desc\( **script\_file\_name** : str \)
810

911
Returns the description of the script. Returns an empty string if the description is not provided.
1012

11-
### get\_name\(\)
13+
**script\_file\_name \( with extension \):** Optional, passing no arguments would return the value of the current script.
14+
15+
### get\_file\_name\( **script\_file\_name** : str \)
16+
17+
Returns the file\_name of the script \( with extension \).
18+
19+
**script\_file\_name \( with extension \):** Optional, passing no arguments would return the value of the current script.
20+
21+
### get\_name\( **script\_file\_name** : str \)
1222

1323
Returns the name of the script. Returns an empty string if the name is not provided.
1424

15-
### get\_version\(\)
25+
**script\_file\_name \( with extension \):** Optional, passing no arguments would return the value of the current script.
26+
27+
### get\_version\( **script\_file\_name** : str \)
1628

1729
Returns the version string of the script. An empty script is returned if none provided.
1830

31+
**script\_file\_name \( with extension \):** Optional, passing no arguments would return the value of the current script.
32+
1933
### author\(name :str\)
2034

2135
Sets the name of the script author.
@@ -32,11 +46,15 @@ Sets the script name.
3246

3347
Sets the script version.
3448

35-
### load\(file\_name :str\)
49+
### load\(script\_file\_name :str\)
3650

3751
Loads a script from the provided filename.
3852

39-
### unload\(file\_name :str\) - Experimental
53+
**script\_file\_name \( with extension \):** Optional, passing no arguments would return the value of the current script.
54+
55+
### unload\(script\_file\_name :str\)
4056

4157
Unloads a script from the provided filename.
4258

59+
**script\_file\_name \( with extension \):** Optional, passing no arguments would return the value of the current script.
60+

0 commit comments

Comments
 (0)