@nativewrappers/redm-codegen 0.0.3 → 0.0.4
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 +82 -82
- package/dist/classes/AnimScene.d.ts.map +1 -1
- package/dist/classes/AnimScene.js +124 -124
- package/dist/classes/BaseModel.d.ts +29 -29
- package/dist/classes/BaseModel.d.ts.map +1 -1
- package/dist/classes/BaseModel.js +43 -43
- package/dist/classes/BaseTask.d.ts +43 -43
- package/dist/classes/BaseTask.d.ts.map +1 -1
- package/dist/classes/BaseTask.js +53 -53
- package/dist/classes/Cam.d.ts +82 -82
- package/dist/classes/Cam.d.ts.map +1 -1
- package/dist/classes/Cam.js +115 -115
- package/dist/classes/Entity.d.ts +250 -250
- package/dist/classes/Entity.d.ts.map +1 -1
- package/dist/classes/Entity.js +350 -350
- package/dist/classes/Interior.d.ts +27 -27
- package/dist/classes/Interior.d.ts.map +1 -1
- package/dist/classes/Interior.js +42 -42
- package/dist/classes/Ped.d.ts +55 -55
- package/dist/classes/Ped.d.ts.map +1 -1
- package/dist/classes/Ped.js +76 -76
- package/dist/classes/PedTask.d.ts +797 -797
- package/dist/classes/PedTask.d.ts.map +1 -1
- package/dist/classes/PedTask.js +1023 -1023
- package/dist/classes/PersChar.d.ts +13 -13
- package/dist/classes/PersChar.d.ts.map +1 -1
- package/dist/classes/PersChar.js +27 -27
- package/dist/classes/Pickup.d.ts +8 -8
- package/dist/classes/Pickup.d.ts.map +1 -1
- package/dist/classes/Pickup.js +15 -15
- package/dist/classes/Player.d.ts +185 -185
- package/dist/classes/Player.d.ts.map +1 -1
- package/dist/classes/Player.js +251 -251
- package/dist/classes/Prop.d.ts +130 -130
- package/dist/classes/Prop.d.ts.map +1 -1
- package/dist/classes/Prop.js +188 -188
- package/dist/classes/PropSet.d.ts +17 -17
- package/dist/classes/PropSet.d.ts.map +1 -1
- package/dist/classes/PropSet.js +25 -25
- package/dist/classes/VehicleTask.d.ts +23 -23
- package/dist/classes/VehicleTask.d.ts.map +1 -1
- package/dist/classes/VehicleTask.js +30 -30
- package/dist/classes/Volume.d.ts +39 -39
- package/dist/classes/Volume.d.ts.map +1 -1
- package/dist/classes/Volume.js +54 -54
- package/dist/classes/Weapon.d.ts +291 -291
- package/dist/classes/Weapon.d.ts.map +1 -1
- package/dist/classes/Weapon.js +414 -414
- package/dist/namespaces/Animscene.d.ts +63 -63
- package/dist/namespaces/Animscene.d.ts.map +1 -1
- package/dist/namespaces/Animscene.js +83 -83
- package/dist/namespaces/Audio.d.ts +464 -464
- package/dist/namespaces/Audio.d.ts.map +1 -1
- package/dist/namespaces/Audio.js +650 -650
- package/dist/namespaces/Bounty.d.ts +57 -57
- package/dist/namespaces/Bounty.d.ts.map +1 -1
- package/dist/namespaces/Bounty.js +90 -90
- package/dist/namespaces/CamStatics.d.ts +426 -426
- package/dist/namespaces/CamStatics.d.ts.map +1 -1
- package/dist/namespaces/CamStatics.js +609 -609
- package/dist/namespaces/Collection.d.ts +81 -81
- package/dist/namespaces/Collection.d.ts.map +1 -1
- package/dist/namespaces/Collection.js +113 -113
- 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/Databinding.d.ts +174 -174
- package/dist/namespaces/Databinding.d.ts.map +1 -1
- package/dist/namespaces/Databinding.js +266 -266
- package/dist/namespaces/EntityStatics.d.ts +110 -110
- package/dist/namespaces/EntityStatics.d.ts.map +1 -1
- package/dist/namespaces/EntityStatics.js +146 -146
- package/dist/namespaces/Graphics.d.ts +547 -547
- package/dist/namespaces/Graphics.d.ts.map +1 -1
- package/dist/namespaces/Graphics.js +731 -731
- package/dist/namespaces/Hud.d.ts +395 -395
- package/dist/namespaces/Hud.d.ts.map +1 -1
- package/dist/namespaces/Hud.js +564 -564
- package/dist/namespaces/InteriorStatics.d.ts +40 -40
- package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
- package/dist/namespaces/InteriorStatics.js +56 -56
- package/dist/namespaces/Inventory.d.ts +107 -107
- package/dist/namespaces/Inventory.d.ts.map +1 -1
- package/dist/namespaces/Inventory.js +149 -149
- package/dist/namespaces/Itemdatabase.d.ts +5 -5
- package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
- package/dist/namespaces/Itemdatabase.js +7 -7
- package/dist/namespaces/Map.d.ts +173 -173
- package/dist/namespaces/Map.d.ts.map +1 -1
- package/dist/namespaces/Map.js +240 -240
- package/dist/namespaces/Minigame.d.ts +56 -56
- package/dist/namespaces/Minigame.d.ts.map +1 -1
- package/dist/namespaces/Minigame.js +80 -80
- package/dist/namespaces/Network.d.ts +964 -964
- package/dist/namespaces/Network.d.ts.map +1 -1
- package/dist/namespaces/Network.js +1333 -1333
- package/dist/namespaces/Object.d.ts +240 -240
- package/dist/namespaces/Object.d.ts.map +1 -1
- package/dist/namespaces/Object.js +337 -337
- package/dist/namespaces/Pad.d.ts +95 -95
- package/dist/namespaces/Pad.d.ts.map +1 -1
- package/dist/namespaces/Pad.js +127 -127
- package/dist/namespaces/PedStatics.d.ts +18 -18
- package/dist/namespaces/PedStatics.d.ts.map +1 -1
- package/dist/namespaces/PedStatics.js +26 -26
- package/dist/namespaces/Perschar.d.ts +46 -46
- package/dist/namespaces/Perschar.d.ts.map +1 -1
- package/dist/namespaces/Perschar.js +66 -66
- package/dist/namespaces/Physics.d.ts +207 -207
- package/dist/namespaces/Physics.d.ts.map +1 -1
- package/dist/namespaces/Physics.js +315 -315
- package/dist/namespaces/PlayerStatics.d.ts +68 -68
- package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
- package/dist/namespaces/PlayerStatics.js +95 -95
- package/dist/namespaces/Population.d.ts +86 -86
- package/dist/namespaces/Population.d.ts.map +1 -1
- package/dist/namespaces/Population.js +116 -116
- package/dist/namespaces/Posse.d.ts +43 -43
- package/dist/namespaces/Posse.d.ts.map +1 -1
- package/dist/namespaces/Posse.js +67 -67
- package/dist/namespaces/Propset.d.ts +59 -59
- package/dist/namespaces/Propset.d.ts.map +1 -1
- package/dist/namespaces/Propset.js +81 -81
- 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 +90 -90
- package/dist/namespaces/Stats.d.ts.map +1 -1
- package/dist/namespaces/Stats.js +127 -127
- package/dist/namespaces/Streaming.d.ts +127 -127
- package/dist/namespaces/Streaming.d.ts.map +1 -1
- package/dist/namespaces/Streaming.js +193 -193
- package/dist/namespaces/Task.d.ts +346 -346
- package/dist/namespaces/Task.d.ts.map +1 -1
- package/dist/namespaces/Task.js +525 -525
- package/dist/namespaces/Telemetry.d.ts +176 -176
- package/dist/namespaces/Telemetry.d.ts.map +1 -1
- package/dist/namespaces/Telemetry.js +255 -255
- package/dist/namespaces/VolumeStatics.d.ts +64 -64
- package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
- package/dist/namespaces/VolumeStatics.js +85 -85
- 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 +234 -234
- package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
- package/dist/namespaces/WeaponStatics.js +320 -320
- package/dist/namespaces/Zone.d.ts +7 -7
- package/dist/namespaces/Zone.d.ts.map +1 -1
- package/dist/namespaces/Zone.js +9 -9
- package/package.json +1 -1
- package/src/classes/AnimScene.ts +133 -133
- package/src/classes/BaseModel.ts +50 -50
- package/src/classes/BaseTask.ts +55 -55
- package/src/classes/Cam.ts +126 -126
- package/src/classes/Entity.ts +365 -365
- package/src/classes/Interior.ts +43 -43
- package/src/classes/Ped.ts +86 -86
- package/src/classes/PedTask.ts +2067 -2067
- package/src/classes/PersChar.ts +34 -34
- package/src/classes/Pickup.ts +16 -16
- package/src/classes/Player.ts +296 -296
- package/src/classes/Prop.ts +203 -203
- package/src/classes/PropSet.ts +29 -29
- package/src/classes/VehicleTask.ts +32 -32
- package/src/classes/Volume.ts +61 -61
- package/src/classes/Weapon.ts +427 -427
- package/src/namespaces/Animscene.ts +86 -86
- package/src/namespaces/Audio.ts +760 -760
- package/src/namespaces/Bounty.ts +102 -102
- package/src/namespaces/CamStatics.ts +631 -631
- package/src/namespaces/Collection.ts +114 -114
- package/src/namespaces/Compendium.ts +59 -59
- package/src/namespaces/Crashlog.ts +16 -16
- package/src/namespaces/Databinding.ts +282 -282
- package/src/namespaces/EntityStatics.ts +158 -158
- package/src/namespaces/Graphics.ts +1140 -1140
- package/src/namespaces/Hud.ts +592 -592
- package/src/namespaces/InteriorStatics.ts +64 -64
- package/src/namespaces/Inventory.ts +165 -165
- package/src/namespaces/Itemdatabase.ts +8 -8
- package/src/namespaces/Map.ts +256 -256
- package/src/namespaces/Minigame.ts +92 -92
- package/src/namespaces/Network.ts +1392 -1392
- package/src/namespaces/Object.ts +350 -350
- package/src/namespaces/Pad.ts +127 -127
- package/src/namespaces/PedStatics.ts +30 -30
- package/src/namespaces/Perschar.ts +76 -76
- package/src/namespaces/Physics.ts +327 -327
- package/src/namespaces/PlayerStatics.ts +103 -103
- package/src/namespaces/Population.ts +131 -131
- package/src/namespaces/Posse.ts +67 -67
- package/src/namespaces/Propset.ts +92 -92
- package/src/namespaces/Shapetest.ts +14 -14
- package/src/namespaces/Stats.ts +143 -143
- package/src/namespaces/Streaming.ts +226 -226
- package/src/namespaces/Task.ts +498 -498
- package/src/namespaces/Telemetry.ts +261 -261
- package/src/namespaces/VolumeStatics.ts +87 -87
- package/src/namespaces/Water.ts +47 -47
- package/src/namespaces/WeaponStatics.ts +325 -325
- package/src/namespaces/Zone.ts +10 -10
package/dist/namespaces/Map.js
CHANGED
|
@@ -126,246 +126,116 @@ export class Map {
|
|
|
126
126
|
inv('0x0BFD145EF819FB3A', angle);
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
* @returns
|
|
132
|
-
*/
|
|
133
|
-
static isGpsRouteOnRoad() {
|
|
134
|
-
return inv('0xF47A1EB2A538A3A3');
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* list of minimap props: https://github.com/femga/rdr3_discoveries/tree/master/graphics/minimap/minimapObjects
|
|
138
|
-
* variations parameter are the interior locations you see on the map like these bellow
|
|
139
|
-
* variation 0 https://i.imgur.com/jkLhn3Z.png
|
|
140
|
-
* variation 2 https://i.imgur.com/eKV0Tcm.png
|
|
141
|
-
* variation 4 https://i.imgur.com/rjwOgEH.png
|
|
142
|
-
* there are more and you can find them in the decompiles
|
|
143
|
-
*
|
|
144
|
-
* @param minimapProp
|
|
145
|
-
* @param pos
|
|
146
|
-
* @param rotation
|
|
147
|
-
* @param variation
|
|
148
|
-
*/
|
|
149
|
-
static addPropToMinimap(minimapProp, pos, rotation, variation) {
|
|
150
|
-
inv('0x1392105DA88BBFFB', _h(minimapProp), f(pos.x), f(pos.y), f(rotation), variation);
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* @param minimapProp
|
|
154
|
-
*/
|
|
155
|
-
static removePropFromMinimap(minimapProp) {
|
|
156
|
-
inv('0xE057FEA9A22EB3EE', _h(minimapProp));
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* will remove the blip icon from the entity lockon prompt, use 0 for p1
|
|
129
|
+
* adds the entity blip icon to the entity lockon prompt if wrong param will remove the icon if had any
|
|
160
130
|
*
|
|
161
131
|
* @param entity
|
|
162
|
-
* @param
|
|
132
|
+
* @param blipId
|
|
163
133
|
*/
|
|
164
|
-
static
|
|
165
|
-
inv('
|
|
134
|
+
static setEntityBlipIconToLockonEntityPrompt(entity, blipId) {
|
|
135
|
+
inv('0x97F6F158CC5B5CA2', entity.handle, blipId);
|
|
166
136
|
}
|
|
167
137
|
/**
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
* @param p0
|
|
171
|
-
* @param p1
|
|
138
|
+
* @returns blip
|
|
172
139
|
*/
|
|
173
|
-
static
|
|
174
|
-
inv('
|
|
140
|
+
static removeBlip() {
|
|
141
|
+
const result = inv('0xF2C3C9DA47AAA54A', pvi());
|
|
142
|
+
return result;
|
|
175
143
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
* @param player
|
|
179
|
-
*/
|
|
180
|
-
static setBlipNameToPlayerName(blip, player) {
|
|
181
|
-
inv('0x093DD5A31BC2B459', blip, player.handle);
|
|
144
|
+
static clearGpsPlayerWaypoint() {
|
|
145
|
+
inv('0x08FDC6F796E350D1');
|
|
182
146
|
}
|
|
183
147
|
/**
|
|
184
148
|
* @param blip
|
|
185
|
-
* @param blipType
|
|
186
|
-
* @param blipHash
|
|
187
|
-
*/
|
|
188
|
-
static setBlipFlashTimer(blip, blipType, blipHash) {
|
|
189
|
-
inv('0x02FF4CF43B7209D1', blip, blipType, _h(blipHash));
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
149
|
* @param hash
|
|
150
|
+
* @param p2
|
|
193
151
|
*/
|
|
194
|
-
static
|
|
195
|
-
inv('
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* @param colorNameHash
|
|
199
|
-
* @param onFoot
|
|
200
|
-
* @param inVehicle
|
|
201
|
-
*/
|
|
202
|
-
static startGpsMultiRoute(colorNameHash, onFoot, inVehicle) {
|
|
203
|
-
inv('0x3D3D15AF7BCAAF83', _h(colorNameHash), onFoot, inVehicle);
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* will add a blip icon to the entity lockon prompt that you specify
|
|
207
|
-
*
|
|
208
|
-
* @param entity
|
|
209
|
-
* @param blipIcon
|
|
210
|
-
*/
|
|
211
|
-
static setBlipIconToLockonEntityPrompt(entity, blipIcon) {
|
|
212
|
-
inv('0x7563CBCA99253D1A', entity.handle, _h(blipIcon));
|
|
152
|
+
static setBlipSprite(blip, hash, p2) {
|
|
153
|
+
inv('0x74F74D3207ED525C', blip, _h(hash), p2);
|
|
213
154
|
}
|
|
214
155
|
/**
|
|
215
|
-
*
|
|
156
|
+
* checks if the entity lockon prompt contains an icon
|
|
216
157
|
*
|
|
217
158
|
* @param entity
|
|
159
|
+
* @param blipId
|
|
218
160
|
* @returns
|
|
219
161
|
*/
|
|
220
|
-
static
|
|
221
|
-
return inv('
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Clears the previously set coordinates for the pause map view, removing any specified focal point and radius that were set using `SetPausemapCoordsWithRadius - 0xE0884C184728C75B`
|
|
225
|
-
*/
|
|
226
|
-
static clearPausemapCoords() {
|
|
227
|
-
inv('0x7C9F4CDF402CA82A');
|
|
162
|
+
static isBlipIconOnLockonEntityPrompt(entity, blipId) {
|
|
163
|
+
return inv('0x3CB8859F04763C78', entity.handle, blipId);
|
|
228
164
|
}
|
|
229
165
|
/**
|
|
230
|
-
* Used for GUARMA MODE; Enabled: toggle = false, 0; Disabled: toggle = true, 0
|
|
231
|
-
* Hash p1 seems to be unused, always 0
|
|
232
|
-
*
|
|
233
166
|
* @param toggle
|
|
234
|
-
* @param p1
|
|
235
167
|
*/
|
|
236
|
-
static
|
|
237
|
-
inv('
|
|
168
|
+
static allowSonarBlips(toggle) {
|
|
169
|
+
inv('0x6E6E64788C07D2E0', toggle);
|
|
238
170
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
* @returns
|
|
242
|
-
*/
|
|
243
|
-
static isBlipOnMinimap(blip) {
|
|
244
|
-
return inv('0x46534526B9CD2D17', blip, rai());
|
|
171
|
+
static showActivePointsOfInterest() {
|
|
172
|
+
inv('0x3FBB838AEA30C1D8');
|
|
245
173
|
}
|
|
246
174
|
/**
|
|
247
|
-
* https://alloc8or.re/rdr3/doc/enums/eBlipModifier.txt
|
|
248
|
-
* https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_modifiers Old name: _BLIP_SET_MODIFIER
|
|
249
|
-
*
|
|
250
|
-
* @param blip
|
|
251
|
-
* @param modifierHash
|
|
252
175
|
* @returns
|
|
253
176
|
*/
|
|
254
|
-
static
|
|
255
|
-
return inv('
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* Does the same as SET_GPS_MULTI_ROUTE_RENDER(false);
|
|
259
|
-
*/
|
|
260
|
-
static clearGpsMultiRoute() {
|
|
261
|
-
inv('0x9E0AB9AAEE87CE28');
|
|
177
|
+
static isWaypointActive() {
|
|
178
|
+
return inv('0x202B1BBFC6AB5EE4', rai());
|
|
262
179
|
}
|
|
263
180
|
/**
|
|
264
181
|
* @param blip
|
|
265
|
-
* @returns
|
|
266
|
-
*/
|
|
267
|
-
static doesBlipExist(blip) {
|
|
268
|
-
return inv('0xCD82FA174080B3B1', blip, rai());
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* @param discoveryHash
|
|
272
|
-
*/
|
|
273
|
-
static discoverySetEnabled(discoveryHash) {
|
|
274
|
-
inv('0xDA98246C7A3C2189', _h(discoveryHash));
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* @param styleHash
|
|
278
|
-
* @returns
|
|
182
|
+
* @returns p1; p2
|
|
279
183
|
*/
|
|
280
|
-
static
|
|
281
|
-
|
|
184
|
+
static setBlipFlashes(blip) {
|
|
185
|
+
const result = inv('0x0DF2B55F717DDB10', blip, pvi(), pvi());
|
|
186
|
+
return [result[0], result[1], result[2]];
|
|
282
187
|
}
|
|
283
188
|
/**
|
|
284
|
-
* https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips
|
|
285
|
-
* https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips_mp
|
|
286
|
-
*
|
|
287
189
|
* @param blipHash
|
|
288
|
-
* @param
|
|
190
|
+
* @param pickup
|
|
289
191
|
* @returns
|
|
290
192
|
*/
|
|
291
|
-
static
|
|
292
|
-
return inv('
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* @param pos
|
|
296
|
-
* @param p3
|
|
297
|
-
*/
|
|
298
|
-
static addPointToGpsMultiRoute(pos, p3) {
|
|
299
|
-
inv('0x64C59DD6834FA942', f(pos.x), f(pos.y), f(pos.z), p3);
|
|
193
|
+
static blipAddForPickupPlacement(blipHash, pickup) {
|
|
194
|
+
return inv('0xA486008892065FB9', _h(blipHash), pickup.handle, rai());
|
|
300
195
|
}
|
|
301
|
-
static
|
|
302
|
-
inv('
|
|
196
|
+
static hideActivePointsOfInterest() {
|
|
197
|
+
inv('0xA1B4052C2A3DCC1E');
|
|
303
198
|
}
|
|
304
199
|
/**
|
|
305
|
-
* @param
|
|
306
|
-
* @param
|
|
200
|
+
* @param volume
|
|
201
|
+
* @param p1
|
|
307
202
|
*/
|
|
308
|
-
static
|
|
309
|
-
inv('
|
|
203
|
+
static setMinimapFowRevealVolume(volume, p1) {
|
|
204
|
+
inv('0x63CBBD6CA6F321F9', volume.handle, _h(p1));
|
|
310
205
|
}
|
|
311
206
|
/**
|
|
312
|
-
*
|
|
207
|
+
* https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_styles
|
|
208
|
+
* Removes any existing modifiers and sets the style.
|
|
313
209
|
*
|
|
314
|
-
* @param toggle
|
|
315
|
-
*/
|
|
316
|
-
static displayRadar(toggle) {
|
|
317
|
-
inv('0x1B3DA717B9AFF828', toggle);
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
210
|
* @param blip
|
|
321
|
-
* @param
|
|
322
|
-
*/
|
|
323
|
-
static setBlipCoords(blip, pos) {
|
|
324
|
-
inv('0x4FF674F5E23D49CE', blip, f(pos.x), f(pos.y), f(pos.z));
|
|
325
|
-
}
|
|
326
|
-
/**
|
|
327
|
-
* @param discoveryHash
|
|
328
|
-
*/
|
|
329
|
-
static discoverRegion(discoveryHash) {
|
|
330
|
-
inv('0xD8C7162AB2E2AF45', _h(discoveryHash));
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* Up to eight coordinates may be revealed per frame
|
|
334
|
-
*
|
|
335
|
-
* @param pos
|
|
336
|
-
* @param p3
|
|
337
|
-
*/
|
|
338
|
-
static setMinimapFowRevealCoordinate(pos, p3) {
|
|
339
|
-
inv('0x73348402566ECB6E', f(pos.x), f(pos.y), f(pos.z), _h(p3));
|
|
340
|
-
}
|
|
341
|
-
static setWaypointOff() {
|
|
342
|
-
inv('0xFA8C41E8020D3439');
|
|
343
|
-
}
|
|
344
|
-
/**
|
|
211
|
+
* @param styleHash
|
|
345
212
|
* @returns
|
|
346
213
|
*/
|
|
347
|
-
static
|
|
348
|
-
return
|
|
214
|
+
static blipSetStyle(blip, styleHash) {
|
|
215
|
+
return inv('0xEDD964B7984AC291', blip, _h(styleHash));
|
|
349
216
|
}
|
|
350
217
|
/**
|
|
351
|
-
* @param
|
|
352
|
-
* @param name
|
|
218
|
+
* @param zoomLevel
|
|
353
219
|
*/
|
|
354
|
-
static
|
|
355
|
-
inv('
|
|
220
|
+
static setRadarZoom(zoomLevel) {
|
|
221
|
+
inv('0xCAF6489DA2C8DD9E', zoomLevel);
|
|
356
222
|
}
|
|
357
223
|
/**
|
|
358
|
-
* @param
|
|
224
|
+
* @param regionHash
|
|
225
|
+
* @param styleHash
|
|
226
|
+
* @returns
|
|
359
227
|
*/
|
|
360
|
-
static
|
|
361
|
-
inv('
|
|
228
|
+
static isRegionHighlightedWithStyle(regionHash, styleHash) {
|
|
229
|
+
return inv('0xE38450DBCBC70E3D', _h(regionHash), _h(styleHash));
|
|
362
230
|
}
|
|
363
231
|
/**
|
|
364
|
-
*
|
|
365
|
-
*
|
|
232
|
+
* Unlike `GET_WAYPOINT_COORDS - 0x29B30D07C3F7873B`, which returns a single value, this native returns the x and y coordinates of the waypoint separately as floats from pointer. To retrieve each coordinate, `Citizen.PointerValueFloat()` must be used with this function.
|
|
233
|
+
*
|
|
234
|
+
* @returns x; y
|
|
366
235
|
*/
|
|
367
|
-
static
|
|
368
|
-
|
|
236
|
+
static getWaypointPosition() {
|
|
237
|
+
const result = inv('0xF08E42BFA46BDFF8', pvf(), pvf());
|
|
238
|
+
return [result[0], result[1], result[2]];
|
|
369
239
|
}
|
|
370
240
|
/**
|
|
371
241
|
* @param blip
|
|
@@ -527,115 +397,245 @@ export class Map {
|
|
|
527
397
|
inv('0xD38744167B2FA257', blip, f(scale));
|
|
528
398
|
}
|
|
529
399
|
/**
|
|
530
|
-
*
|
|
400
|
+
* Checks if the GPS route to the waypoint is navigable along a road. If a route exists but there is no valid road path, this function returns false.
|
|
401
|
+
*
|
|
402
|
+
* @returns
|
|
403
|
+
*/
|
|
404
|
+
static isGpsRouteOnRoad() {
|
|
405
|
+
return inv('0xF47A1EB2A538A3A3');
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* list of minimap props: https://github.com/femga/rdr3_discoveries/tree/master/graphics/minimap/minimapObjects
|
|
409
|
+
* variations parameter are the interior locations you see on the map like these bellow
|
|
410
|
+
* variation 0 https://i.imgur.com/jkLhn3Z.png
|
|
411
|
+
* variation 2 https://i.imgur.com/eKV0Tcm.png
|
|
412
|
+
* variation 4 https://i.imgur.com/rjwOgEH.png
|
|
413
|
+
* there are more and you can find them in the decompiles
|
|
414
|
+
*
|
|
415
|
+
* @param minimapProp
|
|
416
|
+
* @param pos
|
|
417
|
+
* @param rotation
|
|
418
|
+
* @param variation
|
|
419
|
+
*/
|
|
420
|
+
static addPropToMinimap(minimapProp, pos, rotation, variation) {
|
|
421
|
+
inv('0x1392105DA88BBFFB', _h(minimapProp), f(pos.x), f(pos.y), f(rotation), variation);
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* @param minimapProp
|
|
425
|
+
*/
|
|
426
|
+
static removePropFromMinimap(minimapProp) {
|
|
427
|
+
inv('0xE057FEA9A22EB3EE', _h(minimapProp));
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* will remove the blip icon from the entity lockon prompt, use 0 for p1
|
|
531
431
|
*
|
|
532
432
|
* @param entity
|
|
533
|
-
* @param
|
|
433
|
+
* @param p1
|
|
534
434
|
*/
|
|
535
|
-
static
|
|
536
|
-
inv('
|
|
435
|
+
static clearBlipIconFromLockonEntityPrompt(entity, p1) {
|
|
436
|
+
inv('0x44813684F72B563C', entity.handle, p1);
|
|
537
437
|
}
|
|
538
438
|
/**
|
|
539
|
-
*
|
|
439
|
+
* https://alloc8or.re/rdr3/doc/enums/rage__eGpsFlags.txt
|
|
440
|
+
*
|
|
441
|
+
* @param p0
|
|
442
|
+
* @param p1
|
|
540
443
|
*/
|
|
541
|
-
static
|
|
542
|
-
|
|
543
|
-
return result;
|
|
444
|
+
static setGpsFlags(p0, p1) {
|
|
445
|
+
inv('0x5DE61C90DDECFA2D', p0, f(p1));
|
|
544
446
|
}
|
|
545
|
-
|
|
546
|
-
|
|
447
|
+
/**
|
|
448
|
+
* @param blip
|
|
449
|
+
* @param player
|
|
450
|
+
*/
|
|
451
|
+
static setBlipNameToPlayerName(blip, player) {
|
|
452
|
+
inv('0x093DD5A31BC2B459', blip, player.handle);
|
|
547
453
|
}
|
|
548
454
|
/**
|
|
549
455
|
* @param blip
|
|
456
|
+
* @param blipType
|
|
457
|
+
* @param blipHash
|
|
458
|
+
*/
|
|
459
|
+
static setBlipFlashTimer(blip, blipType, blipHash) {
|
|
460
|
+
inv('0x02FF4CF43B7209D1', blip, blipType, _h(blipHash));
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
550
463
|
* @param hash
|
|
551
|
-
* @param p2
|
|
552
464
|
*/
|
|
553
|
-
static
|
|
554
|
-
inv('
|
|
465
|
+
static resetMinimapFow(hash) {
|
|
466
|
+
inv('0xEB3CB3386C775D72', _h(hash));
|
|
555
467
|
}
|
|
556
468
|
/**
|
|
557
|
-
*
|
|
469
|
+
* @param colorNameHash
|
|
470
|
+
* @param onFoot
|
|
471
|
+
* @param inVehicle
|
|
472
|
+
*/
|
|
473
|
+
static startGpsMultiRoute(colorNameHash, onFoot, inVehicle) {
|
|
474
|
+
inv('0x3D3D15AF7BCAAF83', _h(colorNameHash), onFoot, inVehicle);
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* will add a blip icon to the entity lockon prompt that you specify
|
|
478
|
+
*
|
|
479
|
+
* @param entity
|
|
480
|
+
* @param blipIcon
|
|
481
|
+
*/
|
|
482
|
+
static setBlipIconToLockonEntityPrompt(entity, blipIcon) {
|
|
483
|
+
inv('0x7563CBCA99253D1A', entity.handle, _h(blipIcon));
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Returns the Blip handle of given Entity.
|
|
558
487
|
*
|
|
559
488
|
* @param entity
|
|
560
|
-
* @param blipId
|
|
561
489
|
* @returns
|
|
562
490
|
*/
|
|
563
|
-
static
|
|
564
|
-
return inv('
|
|
491
|
+
static getBlipFromEntity(entity) {
|
|
492
|
+
return inv('0x6D2C41A8BD6D6FD0', entity.handle, rai());
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Clears the previously set coordinates for the pause map view, removing any specified focal point and radius that were set using `SetPausemapCoordsWithRadius - 0xE0884C184728C75B`
|
|
496
|
+
*/
|
|
497
|
+
static clearPausemapCoords() {
|
|
498
|
+
inv('0x7C9F4CDF402CA82A');
|
|
565
499
|
}
|
|
566
500
|
/**
|
|
501
|
+
* Used for GUARMA MODE; Enabled: toggle = false, 0; Disabled: toggle = true, 0
|
|
502
|
+
* Hash p1 seems to be unused, always 0
|
|
503
|
+
*
|
|
567
504
|
* @param toggle
|
|
505
|
+
* @param p1
|
|
568
506
|
*/
|
|
569
|
-
static
|
|
570
|
-
inv('
|
|
507
|
+
static setFowUpdatePlayerOverride(toggle, p1) {
|
|
508
|
+
inv('0x63E7279D04160477', toggle, _h(p1));
|
|
571
509
|
}
|
|
572
|
-
|
|
573
|
-
|
|
510
|
+
/**
|
|
511
|
+
* @param blip
|
|
512
|
+
* @returns
|
|
513
|
+
*/
|
|
514
|
+
static isBlipOnMinimap(blip) {
|
|
515
|
+
return inv('0x46534526B9CD2D17', blip, rai());
|
|
574
516
|
}
|
|
575
517
|
/**
|
|
518
|
+
* https://alloc8or.re/rdr3/doc/enums/eBlipModifier.txt
|
|
519
|
+
* https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/blip_modifiers Old name: _BLIP_SET_MODIFIER
|
|
520
|
+
*
|
|
521
|
+
* @param blip
|
|
522
|
+
* @param modifierHash
|
|
576
523
|
* @returns
|
|
577
524
|
*/
|
|
578
|
-
static
|
|
579
|
-
return inv('
|
|
525
|
+
static blipAddModifier(blip, modifierHash) {
|
|
526
|
+
return inv('0x662D364ABF16DE2F', blip, _h(modifierHash));
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Does the same as SET_GPS_MULTI_ROUTE_RENDER(false);
|
|
530
|
+
*/
|
|
531
|
+
static clearGpsMultiRoute() {
|
|
532
|
+
inv('0x9E0AB9AAEE87CE28');
|
|
580
533
|
}
|
|
581
534
|
/**
|
|
582
535
|
* @param blip
|
|
583
|
-
* @returns
|
|
536
|
+
* @returns
|
|
584
537
|
*/
|
|
585
|
-
static
|
|
586
|
-
|
|
587
|
-
|
|
538
|
+
static doesBlipExist(blip) {
|
|
539
|
+
return inv('0xCD82FA174080B3B1', blip, rai());
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* @param discoveryHash
|
|
543
|
+
*/
|
|
544
|
+
static discoverySetEnabled(discoveryHash) {
|
|
545
|
+
inv('0xDA98246C7A3C2189', _h(discoveryHash));
|
|
588
546
|
}
|
|
589
547
|
/**
|
|
548
|
+
* @param styleHash
|
|
549
|
+
* @returns
|
|
550
|
+
*/
|
|
551
|
+
static blipAddForStyle(styleHash) {
|
|
552
|
+
return inv('0x3E593DF9C2962EC6', _h(styleHash), rai());
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips
|
|
556
|
+
* https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips_mp
|
|
557
|
+
*
|
|
590
558
|
* @param blipHash
|
|
591
|
-
* @param
|
|
559
|
+
* @param pos
|
|
592
560
|
* @returns
|
|
593
561
|
*/
|
|
594
|
-
static
|
|
595
|
-
return inv('
|
|
562
|
+
static blipAddForCoords(blipHash, pos) {
|
|
563
|
+
return inv('0x554D9D53F696D002', _h(blipHash), f(pos.x), f(pos.y), f(pos.z), rai());
|
|
596
564
|
}
|
|
597
|
-
|
|
598
|
-
|
|
565
|
+
/**
|
|
566
|
+
* @param pos
|
|
567
|
+
* @param p3
|
|
568
|
+
*/
|
|
569
|
+
static addPointToGpsMultiRoute(pos, p3) {
|
|
570
|
+
inv('0x64C59DD6834FA942', f(pos.x), f(pos.y), f(pos.z), p3);
|
|
571
|
+
}
|
|
572
|
+
static setRadarAsExteriorThisFrame() {
|
|
573
|
+
inv('0xA8EBBAE986FB5457');
|
|
599
574
|
}
|
|
600
575
|
/**
|
|
601
|
-
* @param
|
|
602
|
-
* @param
|
|
576
|
+
* @param pos
|
|
577
|
+
* @param radius
|
|
603
578
|
*/
|
|
604
|
-
static
|
|
605
|
-
inv('
|
|
579
|
+
static setPausemapCoordsWithRadius(pos, radius) {
|
|
580
|
+
inv('0xE0884C184728C75B', f(pos.x), f(pos.y), f(pos.z), f(radius));
|
|
606
581
|
}
|
|
607
582
|
/**
|
|
608
|
-
*
|
|
609
|
-
* Removes any existing modifiers and sets the style.
|
|
583
|
+
* If Minimap / Radar should be displayed.
|
|
610
584
|
*
|
|
585
|
+
* @param toggle
|
|
586
|
+
*/
|
|
587
|
+
static displayRadar(toggle) {
|
|
588
|
+
inv('0x1B3DA717B9AFF828', toggle);
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
611
591
|
* @param blip
|
|
612
|
-
* @param
|
|
613
|
-
* @returns
|
|
592
|
+
* @param pos
|
|
614
593
|
*/
|
|
615
|
-
static
|
|
616
|
-
|
|
594
|
+
static setBlipCoords(blip, pos) {
|
|
595
|
+
inv('0x4FF674F5E23D49CE', blip, f(pos.x), f(pos.y), f(pos.z));
|
|
617
596
|
}
|
|
618
597
|
/**
|
|
619
|
-
* @param
|
|
598
|
+
* @param discoveryHash
|
|
620
599
|
*/
|
|
621
|
-
static
|
|
622
|
-
inv('
|
|
600
|
+
static discoverRegion(discoveryHash) {
|
|
601
|
+
inv('0xD8C7162AB2E2AF45', _h(discoveryHash));
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Up to eight coordinates may be revealed per frame
|
|
605
|
+
*
|
|
606
|
+
* @param pos
|
|
607
|
+
* @param p3
|
|
608
|
+
*/
|
|
609
|
+
static setMinimapFowRevealCoordinate(pos, p3) {
|
|
610
|
+
inv('0x73348402566ECB6E', f(pos.x), f(pos.y), f(pos.z), _h(p3));
|
|
611
|
+
}
|
|
612
|
+
static setWaypointOff() {
|
|
613
|
+
inv('0xFA8C41E8020D3439');
|
|
623
614
|
}
|
|
624
615
|
/**
|
|
625
|
-
* @param regionHash
|
|
626
|
-
* @param styleHash
|
|
627
616
|
* @returns
|
|
628
617
|
*/
|
|
629
|
-
static
|
|
630
|
-
return inv('
|
|
618
|
+
static getWaypointCoords() {
|
|
619
|
+
return Vector3.fromArray(inv('0x29B30D07C3F7873B', rav()));
|
|
631
620
|
}
|
|
632
621
|
/**
|
|
633
|
-
*
|
|
634
|
-
*
|
|
635
|
-
* @returns x; y
|
|
622
|
+
* @param blip
|
|
623
|
+
* @param name
|
|
636
624
|
*/
|
|
637
|
-
static
|
|
638
|
-
|
|
639
|
-
|
|
625
|
+
static setBlipName(blip, name) {
|
|
626
|
+
inv('0x9CB1A1623062F402', blip, name);
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* @param p0
|
|
630
|
+
*/
|
|
631
|
+
static N_0xD3F58E9316B7FC2A(p0) {
|
|
632
|
+
inv('0xD3F58E9316B7FC2A', p0);
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* @param blip
|
|
636
|
+
* @returns
|
|
637
|
+
*/
|
|
638
|
+
static isBlipAttachedToAnyEntity(blip) {
|
|
639
|
+
return inv('0xE9F676788F8D5E1E', blip);
|
|
640
640
|
}
|
|
641
641
|
}
|