Skip to content

Commit 5ca7c44

Browse files
committed
Engine functions
1 parent 928ca8f commit 5ca7c44

File tree

198 files changed

+3141
-1165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+3141
-1165
lines changed

assets/images/engineLoadTXD-1.png

35.3 KB
Loading

assets/images/engineLoadTXD-2.png

38.5 KB
Loading
86.1 KB
Loading

elements/Engine/Engine.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: 'Engine'
2+
description: |
3+
Engine is a static class that represents functions related to the game engine.
4+
5+
see_also:
6+
- 'functions:any:Engine'
7+
- 'events:any:Engine'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: 'EngineStreaming'
2+
description: |
3+
EngineStreaming is a static class that represents functions related to the game engine streaming branch.
4+
5+
see_also:
6+
- 'functions:any:Engine'
7+
- 'events:any:Engine'

elements/Engine/ifp.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: 'ifp'
2+
description: |
3+
The IFP class represents an archive that stores animations for peds and objects. A single IFP file can contain multiple different animations.
4+
An IFP file can be loaded using [[engineLoadIFP]], after which you can either replace an existing animation using [[engineReplaceAnimation]] or use entirely new custom animations.
5+
6+
see_also:
7+
- 'functions:any:Engine'
8+
- 'events:any:Engine'

elements/Engine/img.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: 'img'
2+
description: |
3+
The IMG class represents an archive that stores multiple files, including [DFF](/reference/dff), [TXD](/reference/txd), [IFP](/reference/ifp) and [COL](/reference/col) files. GTA uses archives, among other things, to load models and textures - an example of such an archive is `gta3.img`.
4+
5+
An archive can be loaded using the [engineLoadIMG](/reference/engineLoadIMG) function and then initialized using the [engineAddImage](/reference/engineAddImage) function.
6+
7+
see_also:
8+
- 'functions:any:Engine'
9+
- 'events:any:Engine'
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Scraped from: https://wiki.multitheftauto.com/wiki/EngineAddClothingModel
2-
shared:
1+
client:
32
name: engineAddClothingModel
43
description: This function adds new CJ clothing model.
54
parameters:
@@ -8,11 +7,13 @@ shared:
87
description: The model that will be added.
98
- name: fileName
109
type: string
11-
description: Name of the file containing the TXD/DFF extension.
12-
examples: []
10+
description: Name of the file containing the DFF extension.
11+
examples:
12+
- path: examples/engineAddClothingModel-1.lua
1313
returns:
1414
values:
1515
- type: bool
16-
name: value
17-
description: Returns true if the model was added, and false otherwise.
18-
requires_review: true
16+
name: result
17+
description: Returns **true** if the model was added, and throws an **error** otherwise.
18+
version:
19+
added: 1.6.0 r23124
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Scraped from: https://wiki.multitheftauto.com/wiki/EngineAddClothingTXD
2-
shared:
1+
client:
32
name: engineAddClothingTXD
43
description: This function adds new CJ clothing texture.
54
parameters:
@@ -9,10 +8,12 @@ shared:
98
- name: fileName
109
type: string
1110
description: Name of the file containing the TXD extension.
12-
examples: []
11+
examples:
12+
- path: examples/engineAddClothingTXD-1.lua
1313
returns:
1414
values:
1515
- type: bool
16-
name: value
17-
description: Returns true if the texture was added, and false otherwise.
18-
requires_review: true
16+
name: result
17+
description: Returns **true** if the texture was added, and throws an **error** otherwise.
18+
version:
19+
added: 1.6.0 r23124
Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
# Scraped from: https://wiki.multitheftauto.com/wiki/EngineAddImage
2-
shared:
1+
client:
32
name: engineAddImage
4-
description: This function adds an IMG file container to GTA streamer. After this
5-
GTA will asynchronously load models from IMG. **Only two additional archives can
6-
be enabled once**
3+
pair: engineRemoveImage
4+
description: This function adds an IMG file container to GTA streamer. After this GTA will asynchronously load models from IMG.
75
parameters:
86
- name: imgArchive
97
type: img
108
description: The IMG file you want to add to GTA world.
11-
examples: []
129
returns:
1310
values:
14-
- type: boolean
15-
name: value
16-
description: Returns true if the IMG element was successfully added, false otherwise.
11+
- type: bool
12+
name: result
13+
description: Returns **true** if the IMG element was successfully added, **false** otherwise.
1714
oop:
1815
element: img
1916
method: add
2017
static: false
21-
requires_review: true
18+
version:
19+
added: 1.6.0 r21695
20+
updated: 1.6.0 r21892
21+
meta:
22+
- changelog:
23+
- version: 1.6.0 r21892
24+
description: The maximum number of archives that can be enabled once has been increased to **255**; previously, it was limited to just **2** archives enabled once.

0 commit comments

Comments
 (0)