@nativewrappers/redm-codegen 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes/AnimScene.d.ts +126 -126
- package/dist/classes/AnimScene.d.ts.map +1 -1
- package/dist/classes/AnimScene.js +184 -184
- package/dist/classes/BaseModel.d.ts +17 -17
- package/dist/classes/BaseModel.d.ts.map +1 -1
- package/dist/classes/BaseModel.js +25 -25
- package/dist/classes/BaseTask.d.ts +12 -12
- package/dist/classes/BaseTask.d.ts.map +1 -1
- package/dist/classes/BaseTask.js +14 -14
- package/dist/classes/Cam.d.ts +94 -94
- package/dist/classes/Cam.d.ts.map +1 -1
- package/dist/classes/Cam.js +126 -126
- package/dist/classes/Entity.d.ts +471 -471
- package/dist/classes/Entity.d.ts.map +1 -1
- package/dist/classes/Entity.js +672 -672
- package/dist/classes/PedTask.d.ts +155 -155
- package/dist/classes/PedTask.d.ts.map +1 -1
- package/dist/classes/PedTask.js +204 -204
- package/dist/classes/PersChar.d.ts +9 -9
- package/dist/classes/PersChar.d.ts.map +1 -1
- package/dist/classes/PersChar.js +21 -21
- package/dist/classes/Pickup.d.ts +5 -5
- package/dist/classes/Pickup.d.ts.map +1 -1
- package/dist/classes/Pickup.js +9 -9
- package/dist/classes/Player.d.ts +687 -687
- package/dist/classes/Player.d.ts.map +1 -1
- package/dist/classes/Player.js +1013 -1013
- package/dist/classes/Prop.d.ts +87 -87
- package/dist/classes/Prop.d.ts.map +1 -1
- package/dist/classes/Prop.js +121 -121
- package/dist/classes/PropSet.d.ts +4 -4
- package/dist/classes/PropSet.d.ts.map +1 -1
- package/dist/classes/PropSet.js +6 -6
- package/dist/classes/VehicleTask.d.ts +17 -17
- package/dist/classes/VehicleTask.d.ts.map +1 -1
- package/dist/classes/VehicleTask.js +21 -21
- package/dist/classes/Weapon.d.ts +306 -306
- package/dist/classes/Weapon.d.ts.map +1 -1
- package/dist/classes/Weapon.js +411 -411
- package/dist/namespaces/Animscene.d.ts +59 -59
- package/dist/namespaces/Animscene.d.ts.map +1 -1
- package/dist/namespaces/Animscene.js +77 -77
- package/dist/namespaces/Audio.d.ts +569 -569
- package/dist/namespaces/Audio.d.ts.map +1 -1
- package/dist/namespaces/Audio.js +728 -728
- package/dist/namespaces/Bounty.d.ts +70 -70
- package/dist/namespaces/Bounty.d.ts.map +1 -1
- package/dist/namespaces/Bounty.js +115 -115
- package/dist/namespaces/Brain.d.ts +15 -15
- package/dist/namespaces/Brain.d.ts.map +1 -1
- package/dist/namespaces/Brain.js +20 -20
- package/dist/namespaces/CamStatics.d.ts +399 -399
- package/dist/namespaces/CamStatics.d.ts.map +1 -1
- package/dist/namespaces/CamStatics.js +574 -574
- package/dist/namespaces/Clock.d.ts +51 -51
- package/dist/namespaces/Clock.d.ts.map +1 -1
- package/dist/namespaces/Clock.js +73 -73
- package/dist/namespaces/Collection.d.ts +76 -76
- package/dist/namespaces/Collection.d.ts.map +1 -1
- package/dist/namespaces/Collection.js +108 -108
- package/dist/namespaces/Companion.d.ts +22 -22
- package/dist/namespaces/Companion.d.ts.map +1 -1
- package/dist/namespaces/Companion.js +30 -30
- package/dist/namespaces/Compendium.d.ts +38 -38
- package/dist/namespaces/Compendium.d.ts.map +1 -1
- package/dist/namespaces/Compendium.js +52 -52
- package/dist/namespaces/Crashlog.d.ts +10 -10
- package/dist/namespaces/Crashlog.d.ts.map +1 -1
- package/dist/namespaces/Crashlog.js +14 -14
- package/dist/namespaces/Crew.d.ts +9 -9
- package/dist/namespaces/Crew.d.ts.map +1 -1
- package/dist/namespaces/Crew.js +14 -14
- package/dist/namespaces/Databinding.d.ts +177 -177
- package/dist/namespaces/Databinding.d.ts.map +1 -1
- package/dist/namespaces/Databinding.js +271 -271
- package/dist/namespaces/Dlc.d.ts +5 -5
- package/dist/namespaces/Dlc.d.ts.map +1 -1
- package/dist/namespaces/Dlc.js +9 -9
- package/dist/namespaces/EntityStatics.d.ts +193 -193
- package/dist/namespaces/EntityStatics.d.ts.map +1 -1
- package/dist/namespaces/EntityStatics.js +263 -263
- package/dist/namespaces/Fire.d.ts +7 -7
- package/dist/namespaces/Fire.d.ts.map +1 -1
- package/dist/namespaces/Fire.js +9 -9
- package/dist/namespaces/Graphics.d.ts +820 -820
- package/dist/namespaces/Graphics.d.ts.map +1 -1
- package/dist/namespaces/Graphics.js +1118 -1118
- package/dist/namespaces/Hud.d.ts +494 -494
- package/dist/namespaces/Hud.d.ts.map +1 -1
- package/dist/namespaces/Hud.js +789 -789
- package/dist/namespaces/Inventory.d.ts +180 -180
- package/dist/namespaces/Inventory.d.ts.map +1 -1
- package/dist/namespaces/Inventory.js +239 -239
- package/dist/namespaces/Itemdatabase.d.ts +78 -78
- package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
- package/dist/namespaces/Itemdatabase.js +106 -106
- package/dist/namespaces/Map.d.ts +156 -156
- package/dist/namespaces/Map.d.ts.map +1 -1
- package/dist/namespaces/Map.js +207 -207
- package/dist/namespaces/Minigame.d.ts +78 -78
- package/dist/namespaces/Minigame.d.ts.map +1 -1
- package/dist/namespaces/Minigame.js +116 -116
- package/dist/namespaces/Missiondata.d.ts +15 -15
- package/dist/namespaces/Missiondata.d.ts.map +1 -1
- package/dist/namespaces/Missiondata.js +23 -23
- package/dist/namespaces/Network.d.ts +636 -636
- package/dist/namespaces/Network.d.ts.map +1 -1
- package/dist/namespaces/Network.js +915 -915
- package/dist/namespaces/Object.d.ts +121 -121
- package/dist/namespaces/Object.d.ts.map +1 -1
- package/dist/namespaces/Object.js +162 -162
- package/dist/namespaces/Pad.d.ts +94 -94
- package/dist/namespaces/Pad.d.ts.map +1 -1
- package/dist/namespaces/Pad.js +127 -127
- package/dist/namespaces/Perschar.d.ts +44 -44
- package/dist/namespaces/Perschar.d.ts.map +1 -1
- package/dist/namespaces/Perschar.js +68 -68
- package/dist/namespaces/Physics.d.ts +158 -158
- package/dist/namespaces/Physics.d.ts.map +1 -1
- package/dist/namespaces/Physics.js +207 -207
- package/dist/namespaces/PlayerStatics.d.ts +127 -127
- package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
- package/dist/namespaces/PlayerStatics.js +177 -177
- package/dist/namespaces/Population.d.ts +75 -75
- package/dist/namespaces/Population.d.ts.map +1 -1
- package/dist/namespaces/Population.js +101 -101
- package/dist/namespaces/Posse.d.ts +38 -38
- package/dist/namespaces/Posse.d.ts.map +1 -1
- package/dist/namespaces/Posse.js +62 -62
- package/dist/namespaces/Propset.d.ts +30 -30
- package/dist/namespaces/Propset.d.ts.map +1 -1
- package/dist/namespaces/Propset.js +38 -38
- package/dist/namespaces/Shapetest.d.ts +11 -11
- package/dist/namespaces/Shapetest.d.ts.map +1 -1
- package/dist/namespaces/Shapetest.js +13 -13
- package/dist/namespaces/Stats.d.ts +88 -88
- package/dist/namespaces/Stats.d.ts.map +1 -1
- package/dist/namespaces/Stats.js +123 -123
- package/dist/namespaces/Streaming.d.ts +58 -58
- package/dist/namespaces/Streaming.d.ts.map +1 -1
- package/dist/namespaces/Streaming.js +92 -92
- package/dist/namespaces/Task.d.ts +62 -62
- package/dist/namespaces/Task.d.ts.map +1 -1
- package/dist/namespaces/Task.js +90 -90
- package/dist/namespaces/Telemetry.d.ts +172 -172
- package/dist/namespaces/Telemetry.d.ts.map +1 -1
- package/dist/namespaces/Telemetry.js +240 -240
- package/dist/namespaces/Uifeed.d.ts +15 -15
- package/dist/namespaces/Uifeed.d.ts.map +1 -1
- package/dist/namespaces/Uifeed.js +24 -24
- package/dist/namespaces/Voice.d.ts +38 -38
- package/dist/namespaces/Voice.d.ts.map +1 -1
- package/dist/namespaces/Voice.js +56 -56
- package/dist/namespaces/Water.d.ts +27 -27
- package/dist/namespaces/Water.d.ts.map +1 -1
- package/dist/namespaces/Water.js +41 -41
- package/dist/namespaces/WeaponStatics.d.ts +250 -250
- package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
- package/dist/namespaces/WeaponStatics.js +346 -346
- package/package.json +1 -1
- package/src/classes/AnimScene.ts +199 -199
- package/src/classes/BaseModel.ts +29 -29
- package/src/classes/BaseTask.ts +15 -15
- package/src/classes/Cam.ts +135 -135
- package/src/classes/Entity.ts +687 -687
- package/src/classes/PedTask.ts +223 -223
- package/src/classes/PersChar.ts +24 -24
- package/src/classes/Pickup.ts +10 -10
- package/src/classes/Player.ts +1024 -1024
- package/src/classes/Prop.ts +136 -136
- package/src/classes/PropSet.ts +7 -7
- package/src/classes/VehicleTask.ts +23 -23
- package/src/classes/Weapon.ts +429 -429
- package/src/namespaces/Animscene.ts +86 -86
- package/src/namespaces/Audio.ts +804 -804
- package/src/namespaces/Bounty.ts +131 -131
- package/src/namespaces/Brain.ts +22 -22
- package/src/namespaces/CamStatics.ts +599 -599
- package/src/namespaces/Clock.ts +82 -82
- package/src/namespaces/Collection.ts +109 -109
- package/src/namespaces/Companion.ts +34 -34
- package/src/namespaces/Compendium.ts +59 -59
- package/src/namespaces/Crashlog.ts +16 -16
- package/src/namespaces/Crew.ts +16 -16
- package/src/namespaces/Databinding.ts +286 -286
- package/src/namespaces/Dlc.ts +9 -9
- package/src/namespaces/EntityStatics.ts +279 -279
- package/src/namespaces/Fire.ts +10 -10
- package/src/namespaces/Graphics.ts +1196 -1196
- package/src/namespaces/Hud.ts +799 -799
- package/src/namespaces/Inventory.ts +245 -245
- package/src/namespaces/Itemdatabase.ts +118 -118
- package/src/namespaces/Map.ts +215 -215
- package/src/namespaces/Minigame.ts +132 -132
- package/src/namespaces/Missiondata.ts +27 -27
- package/src/namespaces/Network.ts +951 -951
- package/src/namespaces/Object.ts +171 -171
- package/src/namespaces/Pad.ts +127 -127
- package/src/namespaces/Perschar.ts +72 -72
- package/src/namespaces/Physics.ts +231 -231
- package/src/namespaces/PlayerStatics.ts +202 -202
- package/src/namespaces/Population.ts +114 -114
- package/src/namespaces/Posse.ts +62 -62
- package/src/namespaces/Propset.ts +42 -42
- package/src/namespaces/Shapetest.ts +14 -14
- package/src/namespaces/Stats.ts +139 -139
- package/src/namespaces/Streaming.ts +104 -104
- package/src/namespaces/Task.ts +100 -100
- package/src/namespaces/Telemetry.ts +265 -265
- package/src/namespaces/Uifeed.ts +27 -27
- package/src/namespaces/Voice.ts +65 -65
- package/src/namespaces/Water.ts +47 -47
- package/src/namespaces/WeaponStatics.ts +365 -365
|
@@ -2,160 +2,6 @@ import { Vector3 } from '../types/Vector3';
|
|
|
2
2
|
import { createFromHandle } from '../types/HandleRegistry';
|
|
3
3
|
import { inv, rai, raf, rav, pvi, f } from '../types/NativeAliases';
|
|
4
4
|
export class Physics {
|
|
5
|
-
/**
|
|
6
|
-
* @param ropeId
|
|
7
|
-
* @param entity
|
|
8
|
-
*/
|
|
9
|
-
static detachRopeFromEntity(ropeId, entity) {
|
|
10
|
-
inv('0xBCF3026912A8647D', ropeId, entity.handle);
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @param ropeId
|
|
14
|
-
* @param p1
|
|
15
|
-
*/
|
|
16
|
-
static N_0xDEDE679ED29DD4E7(ropeId, p1) {
|
|
17
|
-
inv('0xDEDE679ED29DD4E7', ropeId, p1);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @param ropeId
|
|
21
|
-
*/
|
|
22
|
-
static stopRopeUnwindingBack(ropeId) {
|
|
23
|
-
inv('0x10DAA76CB8A201A1', ropeId);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* @param p0
|
|
27
|
-
* @param p1
|
|
28
|
-
*/
|
|
29
|
-
static N_0x483D4E917B0D35A9(p0, p1) {
|
|
30
|
-
inv('0x483D4E917B0D35A9', p0, p1);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @param p0
|
|
34
|
-
* @param p1
|
|
35
|
-
* @param p2
|
|
36
|
-
*/
|
|
37
|
-
static N_0x32F4DBFDFCCCC735(p0, p1, p2) {
|
|
38
|
-
inv('0x32F4DBFDFCCCC735', p0, p1, p2);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Attaches a rope to two entities: binds two bones from two entities; one entity can be an object, i.e. a suspension point, the other an NPC bone
|
|
42
|
-
*
|
|
43
|
-
* @param ropeId
|
|
44
|
-
* @param entity1
|
|
45
|
-
* @param entity2
|
|
46
|
-
* @param ent1X
|
|
47
|
-
* @param ent1Y
|
|
48
|
-
* @param ent1Z
|
|
49
|
-
* @param ent2X
|
|
50
|
-
* @param ent2Y
|
|
51
|
-
* @param ent2Z
|
|
52
|
-
* @param boneName1
|
|
53
|
-
* @param boneName2
|
|
54
|
-
*/
|
|
55
|
-
static attachEntitiesToRope2(ropeId, entity1, entity2, ent1X, ent1Y, ent1Z, ent2X, ent2Y, ent2Z, boneName1, boneName2) {
|
|
56
|
-
inv('0x462FF2A432733A44', ropeId, entity1.handle, entity2.handle, f(ent1X), f(ent1Y), f(ent1Z), f(ent2X), f(ent2Y), f(ent2Z), boneName1, boneName2);
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* @param horse
|
|
60
|
-
*/
|
|
61
|
-
static unhitchHorse(horse) {
|
|
62
|
-
inv('0x0348469DAA17576C', horse.handle);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* @param ropeId
|
|
66
|
-
* @param entity1
|
|
67
|
-
* @param entity2
|
|
68
|
-
* @param p3
|
|
69
|
-
* @param p4
|
|
70
|
-
* @param p5
|
|
71
|
-
* @param p6
|
|
72
|
-
* @param p7
|
|
73
|
-
* @param p8
|
|
74
|
-
* @param p9
|
|
75
|
-
* @param p10
|
|
76
|
-
*/
|
|
77
|
-
static attachEntitesToRope3(ropeId, entity1, entity2, p3, p4, p5, p6, p7, p8, p9, p10) {
|
|
78
|
-
inv('0xE9CD9A67834985A7', ropeId, entity1.handle, entity2.handle, f(p3), f(p4), f(p5), f(p6), f(p7), f(p8), p9, p10);
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* @param ropeId
|
|
82
|
-
* @returns
|
|
83
|
-
*/
|
|
84
|
-
static getRopeVertexCount(ropeId) {
|
|
85
|
-
return inv('0x3655F544CD30F0B5', ropeId, rai());
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* @param horse
|
|
89
|
-
* @param pos
|
|
90
|
-
*/
|
|
91
|
-
static hitchHorse(horse, pos) {
|
|
92
|
-
inv('0x06AADE17334F7A40', horse.handle, f(pos.x), f(pos.y), f(pos.z));
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* @param ropeId
|
|
96
|
-
* @returns
|
|
97
|
-
*/
|
|
98
|
-
static ropeGetBreakerOfRope(ropeId) {
|
|
99
|
-
return createFromHandle('Player', inv('0xEE360CFC80C8B2BC', ropeId, rai()));
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* *ROPE_SET**
|
|
103
|
-
*
|
|
104
|
-
* @param ropeId
|
|
105
|
-
* @param p1
|
|
106
|
-
*/
|
|
107
|
-
static N_0x8D59079C37C21D78(ropeId, p1) {
|
|
108
|
-
inv('0x8D59079C37C21D78', ropeId, f(p1));
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* @param ropeId
|
|
112
|
-
*/
|
|
113
|
-
static startRopeUnwindingBack(ropeId) {
|
|
114
|
-
inv('0x00F611A794A3C36E', ropeId);
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Attaches entity 1 to entity 2.
|
|
118
|
-
* If you use a boneName (p12/p13) make sure boneId (p15/p16) is set to -1.
|
|
119
|
-
*
|
|
120
|
-
* @param ropeId
|
|
121
|
-
* @param entity1
|
|
122
|
-
* @param entity2
|
|
123
|
-
* @param ent1X
|
|
124
|
-
* @param ent1Y
|
|
125
|
-
* @param ent1Z
|
|
126
|
-
* @param ent2X
|
|
127
|
-
* @param ent2Y
|
|
128
|
-
* @param ent2Z
|
|
129
|
-
* @param length
|
|
130
|
-
* @param alwaysZero1
|
|
131
|
-
* @param alwaysZero2
|
|
132
|
-
* @param boneName1
|
|
133
|
-
* @param boneName2
|
|
134
|
-
* @param p14
|
|
135
|
-
* @param boneId1
|
|
136
|
-
* @param boneId2
|
|
137
|
-
* @param alwaysZero3
|
|
138
|
-
* @param alwaysZero4
|
|
139
|
-
* @param p19
|
|
140
|
-
* @param p20
|
|
141
|
-
*/
|
|
142
|
-
static attachEntitiesToRope(ropeId, entity1, entity2, ent1X, ent1Y, ent1Z, ent2X, ent2Y, ent2Z, length, alwaysZero1, alwaysZero2, boneName1, boneName2, p14, boneId1, boneId2, alwaysZero3, alwaysZero4, p19, p20) {
|
|
143
|
-
inv('0x3D95EC8B6D940AC3', ropeId, entity1.handle, entity2.handle, f(ent1X), f(ent1Y), f(ent1Z), f(ent2X), f(ent2Y), f(ent2Z), f(length), alwaysZero1, alwaysZero2, boneName1, boneName2, p14, boneId1, boneId2, alwaysZero3, alwaysZero4, p19, p20);
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* @param visible
|
|
147
|
-
* @returns ropeId
|
|
148
|
-
*/
|
|
149
|
-
static ropeChangeVisibility(visible) {
|
|
150
|
-
const result = inv('0x7A54D82227A139DB', pvi(), visible);
|
|
151
|
-
return result;
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* @param ropeId
|
|
155
|
-
*/
|
|
156
|
-
static deleteChildRope(ropeId) {
|
|
157
|
-
inv('0xAA5D6B1888E4DB20', ropeId);
|
|
158
|
-
}
|
|
159
5
|
/**
|
|
160
6
|
* @param ropeId
|
|
161
7
|
* @param p1
|
|
@@ -457,6 +303,213 @@ export class Physics {
|
|
|
457
303
|
static N_0x423C6B1F3786D28B(p0, p1) {
|
|
458
304
|
inv('0x423C6B1F3786D28B', p0, p1);
|
|
459
305
|
}
|
|
306
|
+
/**
|
|
307
|
+
* @param object
|
|
308
|
+
* @param toggle
|
|
309
|
+
*/
|
|
310
|
+
static setDisableBreaking(object, toggle) {
|
|
311
|
+
inv('0x5CEC1A84620E7D5B', object.handle, toggle);
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* @param entity
|
|
315
|
+
*/
|
|
316
|
+
static activatePhysics(entity) {
|
|
317
|
+
inv('0x710311ADF0E20730', entity.handle);
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* @param p0
|
|
321
|
+
*/
|
|
322
|
+
static N_0xEAF529446488EB18(p0) {
|
|
323
|
+
inv('0xEAF529446488EB18', p0);
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* @param ropeId
|
|
327
|
+
* @returns
|
|
328
|
+
*/
|
|
329
|
+
static getRopeLastVertexCoord(ropeId) {
|
|
330
|
+
return Vector3.fromArray(inv('0x21BB0FBD3E217C2D', ropeId, rav()));
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* @param p0
|
|
334
|
+
*/
|
|
335
|
+
static N_0x751DF00EEFF122E3(p0) {
|
|
336
|
+
inv('0x751DF00EEFF122E3', p0);
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* @param ropeId
|
|
340
|
+
* @param p1
|
|
341
|
+
* @param pos
|
|
342
|
+
*/
|
|
343
|
+
static N_0xE54BF2CE6C7D23A9(ropeId, p1, pos) {
|
|
344
|
+
inv('0xE54BF2CE6C7D23A9', ropeId, p1, f(pos.x), f(pos.y), f(pos.z));
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* @param ropeId
|
|
348
|
+
* @param p1
|
|
349
|
+
*/
|
|
350
|
+
static N_0xF1EA2A881EB7F2CD(ropeId, p1) {
|
|
351
|
+
inv('0xF1EA2A881EB7F2CD', ropeId, p1);
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* @param p0
|
|
355
|
+
*/
|
|
356
|
+
static N_0x6EA0E93CFFA472CC(p0) {
|
|
357
|
+
inv('0x6EA0E93CFFA472CC', p0);
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* @param ropeId
|
|
361
|
+
* @param entity
|
|
362
|
+
*/
|
|
363
|
+
static detachRopeFromEntity(ropeId, entity) {
|
|
364
|
+
inv('0xBCF3026912A8647D', ropeId, entity.handle);
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* @param ropeId
|
|
368
|
+
* @param p1
|
|
369
|
+
*/
|
|
370
|
+
static N_0xDEDE679ED29DD4E7(ropeId, p1) {
|
|
371
|
+
inv('0xDEDE679ED29DD4E7', ropeId, p1);
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* @param ropeId
|
|
375
|
+
*/
|
|
376
|
+
static stopRopeUnwindingBack(ropeId) {
|
|
377
|
+
inv('0x10DAA76CB8A201A1', ropeId);
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* @param p0
|
|
381
|
+
* @param p1
|
|
382
|
+
*/
|
|
383
|
+
static N_0x483D4E917B0D35A9(p0, p1) {
|
|
384
|
+
inv('0x483D4E917B0D35A9', p0, p1);
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* @param p0
|
|
388
|
+
* @param p1
|
|
389
|
+
* @param p2
|
|
390
|
+
*/
|
|
391
|
+
static N_0x32F4DBFDFCCCC735(p0, p1, p2) {
|
|
392
|
+
inv('0x32F4DBFDFCCCC735', p0, p1, p2);
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Attaches a rope to two entities: binds two bones from two entities; one entity can be an object, i.e. a suspension point, the other an NPC bone
|
|
396
|
+
*
|
|
397
|
+
* @param ropeId
|
|
398
|
+
* @param entity1
|
|
399
|
+
* @param entity2
|
|
400
|
+
* @param ent1X
|
|
401
|
+
* @param ent1Y
|
|
402
|
+
* @param ent1Z
|
|
403
|
+
* @param ent2X
|
|
404
|
+
* @param ent2Y
|
|
405
|
+
* @param ent2Z
|
|
406
|
+
* @param boneName1
|
|
407
|
+
* @param boneName2
|
|
408
|
+
*/
|
|
409
|
+
static attachEntitiesToRope2(ropeId, entity1, entity2, ent1X, ent1Y, ent1Z, ent2X, ent2Y, ent2Z, boneName1, boneName2) {
|
|
410
|
+
inv('0x462FF2A432733A44', ropeId, entity1.handle, entity2.handle, f(ent1X), f(ent1Y), f(ent1Z), f(ent2X), f(ent2Y), f(ent2Z), boneName1, boneName2);
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* @param horse
|
|
414
|
+
*/
|
|
415
|
+
static unhitchHorse(horse) {
|
|
416
|
+
inv('0x0348469DAA17576C', horse.handle);
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* @param ropeId
|
|
420
|
+
* @param entity1
|
|
421
|
+
* @param entity2
|
|
422
|
+
* @param p3
|
|
423
|
+
* @param p4
|
|
424
|
+
* @param p5
|
|
425
|
+
* @param p6
|
|
426
|
+
* @param p7
|
|
427
|
+
* @param p8
|
|
428
|
+
* @param p9
|
|
429
|
+
* @param p10
|
|
430
|
+
*/
|
|
431
|
+
static attachEntitesToRope3(ropeId, entity1, entity2, p3, p4, p5, p6, p7, p8, p9, p10) {
|
|
432
|
+
inv('0xE9CD9A67834985A7', ropeId, entity1.handle, entity2.handle, f(p3), f(p4), f(p5), f(p6), f(p7), f(p8), p9, p10);
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* @param ropeId
|
|
436
|
+
* @returns
|
|
437
|
+
*/
|
|
438
|
+
static getRopeVertexCount(ropeId) {
|
|
439
|
+
return inv('0x3655F544CD30F0B5', ropeId, rai());
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* @param horse
|
|
443
|
+
* @param pos
|
|
444
|
+
*/
|
|
445
|
+
static hitchHorse(horse, pos) {
|
|
446
|
+
inv('0x06AADE17334F7A40', horse.handle, f(pos.x), f(pos.y), f(pos.z));
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* @param ropeId
|
|
450
|
+
* @returns
|
|
451
|
+
*/
|
|
452
|
+
static ropeGetBreakerOfRope(ropeId) {
|
|
453
|
+
return createFromHandle('Player', inv('0xEE360CFC80C8B2BC', ropeId, rai()));
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* *ROPE_SET**
|
|
457
|
+
*
|
|
458
|
+
* @param ropeId
|
|
459
|
+
* @param p1
|
|
460
|
+
*/
|
|
461
|
+
static N_0x8D59079C37C21D78(ropeId, p1) {
|
|
462
|
+
inv('0x8D59079C37C21D78', ropeId, f(p1));
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* @param ropeId
|
|
466
|
+
*/
|
|
467
|
+
static startRopeUnwindingBack(ropeId) {
|
|
468
|
+
inv('0x00F611A794A3C36E', ropeId);
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Attaches entity 1 to entity 2.
|
|
472
|
+
* If you use a boneName (p12/p13) make sure boneId (p15/p16) is set to -1.
|
|
473
|
+
*
|
|
474
|
+
* @param ropeId
|
|
475
|
+
* @param entity1
|
|
476
|
+
* @param entity2
|
|
477
|
+
* @param ent1X
|
|
478
|
+
* @param ent1Y
|
|
479
|
+
* @param ent1Z
|
|
480
|
+
* @param ent2X
|
|
481
|
+
* @param ent2Y
|
|
482
|
+
* @param ent2Z
|
|
483
|
+
* @param length
|
|
484
|
+
* @param alwaysZero1
|
|
485
|
+
* @param alwaysZero2
|
|
486
|
+
* @param boneName1
|
|
487
|
+
* @param boneName2
|
|
488
|
+
* @param p14
|
|
489
|
+
* @param boneId1
|
|
490
|
+
* @param boneId2
|
|
491
|
+
* @param alwaysZero3
|
|
492
|
+
* @param alwaysZero4
|
|
493
|
+
* @param p19
|
|
494
|
+
* @param p20
|
|
495
|
+
*/
|
|
496
|
+
static attachEntitiesToRope(ropeId, entity1, entity2, ent1X, ent1Y, ent1Z, ent2X, ent2Y, ent2Z, length, alwaysZero1, alwaysZero2, boneName1, boneName2, p14, boneId1, boneId2, alwaysZero3, alwaysZero4, p19, p20) {
|
|
497
|
+
inv('0x3D95EC8B6D940AC3', ropeId, entity1.handle, entity2.handle, f(ent1X), f(ent1Y), f(ent1Z), f(ent2X), f(ent2Y), f(ent2Z), f(length), alwaysZero1, alwaysZero2, boneName1, boneName2, p14, boneId1, boneId2, alwaysZero3, alwaysZero4, p19, p20);
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* @param visible
|
|
501
|
+
* @returns ropeId
|
|
502
|
+
*/
|
|
503
|
+
static ropeChangeVisibility(visible) {
|
|
504
|
+
const result = inv('0x7A54D82227A139DB', pvi(), visible);
|
|
505
|
+
return result;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* @param ropeId
|
|
509
|
+
*/
|
|
510
|
+
static deleteChildRope(ropeId) {
|
|
511
|
+
inv('0xAA5D6B1888E4DB20', ropeId);
|
|
512
|
+
}
|
|
460
513
|
/**
|
|
461
514
|
* ropeTop returns top half of rope, ropeBottom returns bottom half of rope
|
|
462
515
|
*
|
|
@@ -581,57 +634,4 @@ export class Physics {
|
|
|
581
634
|
static N_0x1FC92BDBA1106BD2(ropeId, p1) {
|
|
582
635
|
inv('0x1FC92BDBA1106BD2', ropeId, f(p1));
|
|
583
636
|
}
|
|
584
|
-
/**
|
|
585
|
-
* @param object
|
|
586
|
-
* @param toggle
|
|
587
|
-
*/
|
|
588
|
-
static setDisableBreaking(object, toggle) {
|
|
589
|
-
inv('0x5CEC1A84620E7D5B', object.handle, toggle);
|
|
590
|
-
}
|
|
591
|
-
/**
|
|
592
|
-
* @param entity
|
|
593
|
-
*/
|
|
594
|
-
static activatePhysics(entity) {
|
|
595
|
-
inv('0x710311ADF0E20730', entity.handle);
|
|
596
|
-
}
|
|
597
|
-
/**
|
|
598
|
-
* @param p0
|
|
599
|
-
*/
|
|
600
|
-
static N_0xEAF529446488EB18(p0) {
|
|
601
|
-
inv('0xEAF529446488EB18', p0);
|
|
602
|
-
}
|
|
603
|
-
/**
|
|
604
|
-
* @param ropeId
|
|
605
|
-
* @returns
|
|
606
|
-
*/
|
|
607
|
-
static getRopeLastVertexCoord(ropeId) {
|
|
608
|
-
return Vector3.fromArray(inv('0x21BB0FBD3E217C2D', ropeId, rav()));
|
|
609
|
-
}
|
|
610
|
-
/**
|
|
611
|
-
* @param p0
|
|
612
|
-
*/
|
|
613
|
-
static N_0x751DF00EEFF122E3(p0) {
|
|
614
|
-
inv('0x751DF00EEFF122E3', p0);
|
|
615
|
-
}
|
|
616
|
-
/**
|
|
617
|
-
* @param ropeId
|
|
618
|
-
* @param p1
|
|
619
|
-
* @param pos
|
|
620
|
-
*/
|
|
621
|
-
static N_0xE54BF2CE6C7D23A9(ropeId, p1, pos) {
|
|
622
|
-
inv('0xE54BF2CE6C7D23A9', ropeId, p1, f(pos.x), f(pos.y), f(pos.z));
|
|
623
|
-
}
|
|
624
|
-
/**
|
|
625
|
-
* @param ropeId
|
|
626
|
-
* @param p1
|
|
627
|
-
*/
|
|
628
|
-
static N_0xF1EA2A881EB7F2CD(ropeId, p1) {
|
|
629
|
-
inv('0xF1EA2A881EB7F2CD', ropeId, p1);
|
|
630
|
-
}
|
|
631
|
-
/**
|
|
632
|
-
* @param p0
|
|
633
|
-
*/
|
|
634
|
-
static N_0x6EA0E93CFFA472CC(p0) {
|
|
635
|
-
inv('0x6EA0E93CFFA472CC', p0);
|
|
636
|
-
}
|
|
637
637
|
}
|
|
@@ -4,123 +4,6 @@ import type { Player } from '../classes/Player';
|
|
|
4
4
|
import type { Vehicle } from '../classes/Vehicle';
|
|
5
5
|
import { Color } from '../types/Color';
|
|
6
6
|
export declare class PlayerStatics {
|
|
7
|
-
/**
|
|
8
|
-
* @param p0
|
|
9
|
-
*/
|
|
10
|
-
static N_0x3BB84F812E052C90(p0: any): void;
|
|
11
|
-
/**
|
|
12
|
-
* Disables the player's teleportation
|
|
13
|
-
*/
|
|
14
|
-
static stopPlayerTeleport(): void;
|
|
15
|
-
/**
|
|
16
|
-
* @param p0
|
|
17
|
-
*/
|
|
18
|
-
static N_0x2C2D287748E8E9B7(p0: boolean): void;
|
|
19
|
-
/**
|
|
20
|
-
* @param p0
|
|
21
|
-
* @returns
|
|
22
|
-
*/
|
|
23
|
-
static N_0xA54000D4BFD90BDE(p0: any): any;
|
|
24
|
-
/**
|
|
25
|
-
* _IS_PLAYER_D* - _IS_PLAYER_F*
|
|
26
|
-
*
|
|
27
|
-
* @returns
|
|
28
|
-
*/
|
|
29
|
-
static N_0x57028FD99886F6F9(): boolean;
|
|
30
|
-
/**
|
|
31
|
-
* @param p0
|
|
32
|
-
* @param p1
|
|
33
|
-
* @param p2
|
|
34
|
-
*/
|
|
35
|
-
static N_0x5C2E5E3CAEEB1F58(p0: any, p1: any, p2: any): void;
|
|
36
|
-
/**
|
|
37
|
-
* @param p0
|
|
38
|
-
* @param p1
|
|
39
|
-
*/
|
|
40
|
-
static N_0x67659A8F248E0141(p0: any, p1: any): void;
|
|
41
|
-
/**
|
|
42
|
-
* @param p0
|
|
43
|
-
* @param p1
|
|
44
|
-
* @returns
|
|
45
|
-
*/
|
|
46
|
-
static N_0xE50A67C33514A390(p0: any, p1: any): any;
|
|
47
|
-
/**
|
|
48
|
-
* @param p0
|
|
49
|
-
* @returns
|
|
50
|
-
*/
|
|
51
|
-
static N_0x6C54E69516CC56BD(p0: any): any;
|
|
52
|
-
/**
|
|
53
|
-
* Enable/disable a color on the entity in eagle eye mode.
|
|
54
|
-
*
|
|
55
|
-
* @param entity
|
|
56
|
-
* @param enable
|
|
57
|
-
*/
|
|
58
|
-
static eagleEyeSetRegisteredEntityGlow(entity: Entity, enable: boolean): void;
|
|
59
|
-
/**
|
|
60
|
-
* @param toggle
|
|
61
|
-
*/
|
|
62
|
-
static forceRestScenario(toggle: boolean): void;
|
|
63
|
-
/**
|
|
64
|
-
* @param ped
|
|
65
|
-
* @returns
|
|
66
|
-
*/
|
|
67
|
-
static getTargetCharacterNameForLocalPlayer(ped: Ped): number;
|
|
68
|
-
/**
|
|
69
|
-
* @returns
|
|
70
|
-
*/
|
|
71
|
-
static getCauseOfMostRecentForceCleanup(): number;
|
|
72
|
-
/**
|
|
73
|
-
* @param p0
|
|
74
|
-
* @param p1
|
|
75
|
-
*/
|
|
76
|
-
static N_0xC71D07C96946E263(p0: any, p1: any): void;
|
|
77
|
-
/**
|
|
78
|
-
* @param p0
|
|
79
|
-
* @param p1
|
|
80
|
-
*/
|
|
81
|
-
static N_0x9044835BE9D9DBFE(p0: any, p1: any): void;
|
|
82
|
-
/**
|
|
83
|
-
* @param ped
|
|
84
|
-
* @returns
|
|
85
|
-
*/
|
|
86
|
-
static getTargetCharacterNameScriptOverrideHash(ped: Ped): number;
|
|
87
|
-
/**
|
|
88
|
-
* This returns YOUR 'identity' as a Player type. Always returns 0 in story mode.
|
|
89
|
-
*
|
|
90
|
-
* @returns
|
|
91
|
-
*/
|
|
92
|
-
static id(): Player | null;
|
|
93
|
-
/**
|
|
94
|
-
* Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
|
|
95
|
-
*
|
|
96
|
-
* @param value
|
|
97
|
-
* @returns
|
|
98
|
-
*/
|
|
99
|
-
static intToPlayerindex(value: number): Player | null;
|
|
100
|
-
/**
|
|
101
|
-
* @param disabled
|
|
102
|
-
*/
|
|
103
|
-
static setMountPromptDisabled(disabled: boolean): void;
|
|
104
|
-
/**
|
|
105
|
-
* @param id
|
|
106
|
-
* @param cleanupFlags
|
|
107
|
-
*/
|
|
108
|
-
static forceCleanupForThreadWithThisId(id: number, cleanupFlags: number): void;
|
|
109
|
-
/**
|
|
110
|
-
* @param p0
|
|
111
|
-
* @param p1
|
|
112
|
-
*/
|
|
113
|
-
static N_0x694FFA4308060CD1(p0: any, p1: any): void;
|
|
114
|
-
/**
|
|
115
|
-
* @param p0
|
|
116
|
-
* @param p1
|
|
117
|
-
*/
|
|
118
|
-
static N_0x3C4AE8506638C7E2(p0: any, p1: any): void;
|
|
119
|
-
/**
|
|
120
|
-
* @param p0
|
|
121
|
-
* @param p1
|
|
122
|
-
*/
|
|
123
|
-
static N_0x08E22898A6AF4905(p0: any, p1: any): void;
|
|
124
7
|
/**
|
|
125
8
|
* @param p0
|
|
126
9
|
* @param p1
|
|
@@ -162,16 +45,6 @@ export declare class PlayerStatics {
|
|
|
162
45
|
* @param p0
|
|
163
46
|
*/
|
|
164
47
|
static N_0x1D256EED194F5B58(p0: any): void;
|
|
165
|
-
/**
|
|
166
|
-
* @param p0
|
|
167
|
-
* @param p1
|
|
168
|
-
* @param p2
|
|
169
|
-
*/
|
|
170
|
-
static N_0xCFB2EED4FCB7BD77(p0: any, p1: any, p2: any): void;
|
|
171
|
-
/**
|
|
172
|
-
* @returns
|
|
173
|
-
*/
|
|
174
|
-
static isPlayerTeleportActive(): boolean;
|
|
175
48
|
/**
|
|
176
49
|
* @param p0
|
|
177
50
|
* @param p1
|
|
@@ -846,5 +719,132 @@ export declare class PlayerStatics {
|
|
|
846
719
|
* @returns
|
|
847
720
|
*/
|
|
848
721
|
static getWantedLevelMultiplier(): number;
|
|
722
|
+
/**
|
|
723
|
+
* @param p0
|
|
724
|
+
*/
|
|
725
|
+
static N_0x3BB84F812E052C90(p0: any): void;
|
|
726
|
+
/**
|
|
727
|
+
* Disables the player's teleportation
|
|
728
|
+
*/
|
|
729
|
+
static stopPlayerTeleport(): void;
|
|
730
|
+
/**
|
|
731
|
+
* @param p0
|
|
732
|
+
*/
|
|
733
|
+
static N_0x2C2D287748E8E9B7(p0: boolean): void;
|
|
734
|
+
/**
|
|
735
|
+
* @param p0
|
|
736
|
+
* @returns
|
|
737
|
+
*/
|
|
738
|
+
static N_0xA54000D4BFD90BDE(p0: any): any;
|
|
739
|
+
/**
|
|
740
|
+
* _IS_PLAYER_D* - _IS_PLAYER_F*
|
|
741
|
+
*
|
|
742
|
+
* @returns
|
|
743
|
+
*/
|
|
744
|
+
static N_0x57028FD99886F6F9(): boolean;
|
|
745
|
+
/**
|
|
746
|
+
* @param p0
|
|
747
|
+
* @param p1
|
|
748
|
+
* @param p2
|
|
749
|
+
*/
|
|
750
|
+
static N_0x5C2E5E3CAEEB1F58(p0: any, p1: any, p2: any): void;
|
|
751
|
+
/**
|
|
752
|
+
* @param p0
|
|
753
|
+
* @param p1
|
|
754
|
+
*/
|
|
755
|
+
static N_0xC71D07C96946E263(p0: any, p1: any): void;
|
|
756
|
+
/**
|
|
757
|
+
* @param p0
|
|
758
|
+
* @param p1
|
|
759
|
+
*/
|
|
760
|
+
static N_0x9044835BE9D9DBFE(p0: any, p1: any): void;
|
|
761
|
+
/**
|
|
762
|
+
* @param ped
|
|
763
|
+
* @returns
|
|
764
|
+
*/
|
|
765
|
+
static getTargetCharacterNameScriptOverrideHash(ped: Ped): number;
|
|
766
|
+
/**
|
|
767
|
+
* This returns YOUR 'identity' as a Player type. Always returns 0 in story mode.
|
|
768
|
+
*
|
|
769
|
+
* @returns
|
|
770
|
+
*/
|
|
771
|
+
static id(): Player | null;
|
|
772
|
+
/**
|
|
773
|
+
* @param p0
|
|
774
|
+
* @returns
|
|
775
|
+
*/
|
|
776
|
+
static N_0x6C54E69516CC56BD(p0: any): any;
|
|
777
|
+
/**
|
|
778
|
+
* Enable/disable a color on the entity in eagle eye mode.
|
|
779
|
+
*
|
|
780
|
+
* @param entity
|
|
781
|
+
* @param enable
|
|
782
|
+
*/
|
|
783
|
+
static eagleEyeSetRegisteredEntityGlow(entity: Entity, enable: boolean): void;
|
|
784
|
+
/**
|
|
785
|
+
* @param toggle
|
|
786
|
+
*/
|
|
787
|
+
static forceRestScenario(toggle: boolean): void;
|
|
788
|
+
/**
|
|
789
|
+
* @param ped
|
|
790
|
+
* @returns
|
|
791
|
+
*/
|
|
792
|
+
static getTargetCharacterNameForLocalPlayer(ped: Ped): number;
|
|
793
|
+
/**
|
|
794
|
+
* @returns
|
|
795
|
+
*/
|
|
796
|
+
static getCauseOfMostRecentForceCleanup(): number;
|
|
797
|
+
/**
|
|
798
|
+
* @param p0
|
|
799
|
+
* @param p1
|
|
800
|
+
* @param p2
|
|
801
|
+
*/
|
|
802
|
+
static N_0xCFB2EED4FCB7BD77(p0: any, p1: any, p2: any): void;
|
|
803
|
+
/**
|
|
804
|
+
* @returns
|
|
805
|
+
*/
|
|
806
|
+
static isPlayerTeleportActive(): boolean;
|
|
807
|
+
/**
|
|
808
|
+
* Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
|
|
809
|
+
*
|
|
810
|
+
* @param value
|
|
811
|
+
* @returns
|
|
812
|
+
*/
|
|
813
|
+
static intToPlayerindex(value: number): Player | null;
|
|
814
|
+
/**
|
|
815
|
+
* @param disabled
|
|
816
|
+
*/
|
|
817
|
+
static setMountPromptDisabled(disabled: boolean): void;
|
|
818
|
+
/**
|
|
819
|
+
* @param id
|
|
820
|
+
* @param cleanupFlags
|
|
821
|
+
*/
|
|
822
|
+
static forceCleanupForThreadWithThisId(id: number, cleanupFlags: number): void;
|
|
823
|
+
/**
|
|
824
|
+
* @param p0
|
|
825
|
+
* @param p1
|
|
826
|
+
*/
|
|
827
|
+
static N_0x694FFA4308060CD1(p0: any, p1: any): void;
|
|
828
|
+
/**
|
|
829
|
+
* @param p0
|
|
830
|
+
* @param p1
|
|
831
|
+
*/
|
|
832
|
+
static N_0x3C4AE8506638C7E2(p0: any, p1: any): void;
|
|
833
|
+
/**
|
|
834
|
+
* @param p0
|
|
835
|
+
* @param p1
|
|
836
|
+
*/
|
|
837
|
+
static N_0x08E22898A6AF4905(p0: any, p1: any): void;
|
|
838
|
+
/**
|
|
839
|
+
* @param p0
|
|
840
|
+
* @param p1
|
|
841
|
+
*/
|
|
842
|
+
static N_0x67659A8F248E0141(p0: any, p1: any): void;
|
|
843
|
+
/**
|
|
844
|
+
* @param p0
|
|
845
|
+
* @param p1
|
|
846
|
+
* @returns
|
|
847
|
+
*/
|
|
848
|
+
static N_0xE50A67C33514A390(p0: any, p1: any): any;
|
|
849
849
|
}
|
|
850
850
|
//# sourceMappingURL=PlayerStatics.d.ts.map
|