@nativewrappers/redm-codegen 0.0.4 → 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 +109 -109
- package/dist/classes/AnimScene.d.ts.map +1 -1
- package/dist/classes/AnimScene.js +158 -158
- package/dist/classes/BaseModel.d.ts +34 -34
- package/dist/classes/BaseModel.d.ts.map +1 -1
- package/dist/classes/BaseModel.js +53 -53
- package/dist/classes/BaseTask.d.ts +36 -36
- package/dist/classes/BaseTask.d.ts.map +1 -1
- package/dist/classes/BaseTask.js +44 -44
- package/dist/classes/Cam.d.ts +91 -91
- package/dist/classes/Cam.d.ts.map +1 -1
- package/dist/classes/Cam.js +124 -124
- package/dist/classes/Entity.d.ts +507 -502
- package/dist/classes/Entity.d.ts.map +1 -1
- package/dist/classes/Entity.js +723 -714
- 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/ItemSet.d.ts +2 -2
- package/dist/classes/ItemSet.d.ts.map +1 -1
- package/dist/classes/ItemSet.js +3 -3
- package/dist/classes/Ped.d.ts +286 -286
- package/dist/classes/Ped.d.ts.map +1 -1
- package/dist/classes/Ped.js +425 -425
- package/dist/classes/PedModel.d.ts +1 -1
- package/dist/classes/PedModel.d.ts.map +1 -1
- package/dist/classes/PedModel.js +2 -2
- package/dist/classes/PedTask.d.ts +770 -770
- package/dist/classes/PedTask.d.ts.map +1 -1
- package/dist/classes/PedTask.js +985 -985
- package/dist/classes/PersChar.d.ts +11 -11
- package/dist/classes/PersChar.d.ts.map +1 -1
- package/dist/classes/PersChar.js +23 -23
- package/dist/classes/Pickup.d.ts +6 -6
- package/dist/classes/Pickup.d.ts.map +1 -1
- package/dist/classes/Pickup.js +12 -12
- package/dist/classes/Player.d.ts +237 -233
- package/dist/classes/Player.d.ts.map +1 -1
- package/dist/classes/Player.js +309 -303
- package/dist/classes/Prop.d.ts +126 -126
- package/dist/classes/Prop.d.ts.map +1 -1
- package/dist/classes/Prop.js +180 -180
- package/dist/classes/PropSet.d.ts +16 -16
- package/dist/classes/PropSet.d.ts.map +1 -1
- package/dist/classes/PropSet.js +22 -22
- package/dist/classes/Vehicle.d.ts +122 -122
- package/dist/classes/Vehicle.d.ts.map +1 -1
- package/dist/classes/Vehicle.js +147 -147
- package/dist/classes/VehicleModel.d.ts +1 -1
- package/dist/classes/VehicleModel.d.ts.map +1 -1
- package/dist/classes/VehicleModel.js +2 -2
- package/dist/classes/VehicleTask.d.ts +17 -17
- package/dist/classes/VehicleTask.d.ts.map +1 -1
- package/dist/classes/VehicleTask.js +24 -24
- package/dist/classes/Volume.d.ts +44 -44
- package/dist/classes/Volume.d.ts.map +1 -1
- package/dist/classes/Volume.js +58 -58
- package/dist/classes/Weapon.d.ts +243 -243
- package/dist/classes/Weapon.d.ts.map +1 -1
- package/dist/classes/Weapon.js +339 -339
- package/dist/namespaces/Aicoverpoint.d.ts +23 -23
- package/dist/namespaces/Aicoverpoint.d.ts.map +1 -1
- package/dist/namespaces/Aicoverpoint.js +35 -35
- package/dist/namespaces/Aitransport.d.ts +78 -78
- package/dist/namespaces/Aitransport.d.ts.map +1 -1
- package/dist/namespaces/Aitransport.js +95 -95
- package/dist/namespaces/Animscene.d.ts +37 -37
- package/dist/namespaces/Animscene.d.ts.map +1 -1
- package/dist/namespaces/Animscene.js +51 -51
- package/dist/namespaces/Audio.d.ts +395 -395
- package/dist/namespaces/Audio.d.ts.map +1 -1
- package/dist/namespaces/Audio.js +530 -530
- package/dist/namespaces/Bounty.d.ts +23 -23
- package/dist/namespaces/Bounty.d.ts.map +1 -1
- package/dist/namespaces/Bounty.js +40 -40
- 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 +483 -483
- package/dist/namespaces/CamStatics.d.ts.map +1 -1
- package/dist/namespaces/CamStatics.js +693 -693
- 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 +6 -6
- package/dist/namespaces/Collection.d.ts.map +1 -1
- package/dist/namespaces/Collection.js +11 -11
- package/dist/namespaces/Compapp.js +1 -1
- package/dist/namespaces/Compendium.d.ts +58 -58
- package/dist/namespaces/Compendium.d.ts.map +1 -1
- package/dist/namespaces/Compendium.js +83 -83
- package/dist/namespaces/Crashlog.js +9 -9
- package/dist/namespaces/Crew.d.ts +9 -9
- package/dist/namespaces/Crew.d.ts.map +1 -1
- package/dist/namespaces/Crew.js +18 -18
- package/dist/namespaces/Databinding.d.ts +146 -146
- package/dist/namespaces/Databinding.d.ts.map +1 -1
- package/dist/namespaces/Databinding.js +218 -218
- package/dist/namespaces/Datafile.js +4 -4
- package/dist/namespaces/Decorator.d.ts +19 -19
- package/dist/namespaces/Decorator.d.ts.map +1 -1
- package/dist/namespaces/Decorator.js +34 -34
- package/dist/namespaces/Dlc.js +2 -2
- package/dist/namespaces/EntityStatics.d.ts +186 -186
- package/dist/namespaces/EntityStatics.d.ts.map +1 -1
- package/dist/namespaces/EntityStatics.js +249 -249
- package/dist/namespaces/Event.js +4 -4
- package/dist/namespaces/Fire.d.ts +89 -89
- package/dist/namespaces/Fire.d.ts.map +1 -1
- package/dist/namespaces/Fire.js +115 -115
- package/dist/namespaces/Flock.js +2 -2
- package/dist/namespaces/Gang.js +2 -2
- package/dist/namespaces/GoogleAnalytics.js +2 -2
- package/dist/namespaces/Graphics.d.ts +776 -776
- package/dist/namespaces/Graphics.d.ts.map +1 -1
- package/dist/namespaces/Graphics.js +1120 -1120
- package/dist/namespaces/Hud.d.ts +497 -497
- package/dist/namespaces/Hud.d.ts.map +1 -1
- package/dist/namespaces/Hud.js +748 -748
- package/dist/namespaces/Ik.js +1 -1
- package/dist/namespaces/Interaction.js +3 -3
- package/dist/namespaces/InteriorStatics.d.ts +40 -40
- package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
- package/dist/namespaces/InteriorStatics.js +57 -57
- package/dist/namespaces/Inventory.d.ts +205 -205
- package/dist/namespaces/Inventory.d.ts.map +1 -1
- package/dist/namespaces/Inventory.js +340 -340
- package/dist/namespaces/Itemdatabase.d.ts +78 -78
- package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
- package/dist/namespaces/Itemdatabase.js +109 -109
- package/dist/namespaces/Itemset.js +2 -2
- package/dist/namespaces/Law.d.ts +1 -1
- package/dist/namespaces/Law.d.ts.map +1 -1
- package/dist/namespaces/Law.js +19 -19
- package/dist/namespaces/Localization.js +1 -1
- package/dist/namespaces/Map.d.ts +156 -156
- package/dist/namespaces/Map.d.ts.map +1 -1
- package/dist/namespaces/Map.js +209 -209
- package/dist/namespaces/Minigame.d.ts +66 -66
- package/dist/namespaces/Minigame.d.ts.map +1 -1
- package/dist/namespaces/Minigame.js +111 -111
- package/dist/namespaces/Misc.d.ts +3 -3
- package/dist/namespaces/Misc.d.ts.map +1 -1
- package/dist/namespaces/Misc.js +35 -35
- package/dist/namespaces/Missiondata.js +1 -1
- package/dist/namespaces/Money.js +3 -3
- package/dist/namespaces/Netshopping.d.ts +58 -58
- package/dist/namespaces/Netshopping.d.ts.map +1 -1
- package/dist/namespaces/Netshopping.js +89 -89
- package/dist/namespaces/Network.d.ts +1199 -1199
- package/dist/namespaces/Network.d.ts.map +1 -1
- package/dist/namespaces/Network.js +1650 -1650
- package/dist/namespaces/Object.d.ts +262 -262
- package/dist/namespaces/Object.d.ts.map +1 -1
- package/dist/namespaces/Object.js +367 -367
- package/dist/namespaces/Pad.d.ts +102 -102
- package/dist/namespaces/Pad.d.ts.map +1 -1
- package/dist/namespaces/Pad.js +141 -141
- package/dist/namespaces/Pathfind.js +10 -10
- package/dist/namespaces/PedStatics.d.ts +2 -2
- package/dist/namespaces/PedStatics.d.ts.map +1 -1
- package/dist/namespaces/PedStatics.js +10 -10
- package/dist/namespaces/Perschar.d.ts +42 -42
- package/dist/namespaces/Perschar.d.ts.map +1 -1
- package/dist/namespaces/Perschar.js +59 -59
- package/dist/namespaces/Physics.d.ts +37 -37
- package/dist/namespaces/Physics.d.ts.map +1 -1
- package/dist/namespaces/Physics.js +54 -54
- package/dist/namespaces/PlayerStatics.d.ts +68 -68
- package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
- package/dist/namespaces/PlayerStatics.js +104 -104
- 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 +48 -48
- package/dist/namespaces/Posse.d.ts.map +1 -1
- package/dist/namespaces/Posse.js +78 -78
- 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/Replay.d.ts +1 -1
- package/dist/namespaces/Replay.d.ts.map +1 -1
- package/dist/namespaces/Replay.js +2 -2
- package/dist/namespaces/Scripts.d.ts +1 -1
- package/dist/namespaces/Scripts.d.ts.map +1 -1
- package/dist/namespaces/Scripts.js +12 -12
- package/dist/namespaces/Socialclub.js +8 -8
- package/dist/namespaces/Socialclubfeed.js +1 -1
- package/dist/namespaces/Spactionproxy.js +4 -4
- package/dist/namespaces/Stats.d.ts +203 -203
- package/dist/namespaces/Stats.d.ts.map +1 -1
- package/dist/namespaces/Stats.js +294 -294
- package/dist/namespaces/Streaming.d.ts +128 -128
- package/dist/namespaces/Streaming.d.ts.map +1 -1
- package/dist/namespaces/Streaming.js +202 -202
- package/dist/namespaces/Task.d.ts +366 -366
- package/dist/namespaces/Task.d.ts.map +1 -1
- package/dist/namespaces/Task.js +517 -517
- package/dist/namespaces/Telemetry.d.ts +83 -83
- package/dist/namespaces/Telemetry.d.ts.map +1 -1
- package/dist/namespaces/Telemetry.js +111 -111
- package/dist/namespaces/Txd.js +1 -1
- package/dist/namespaces/Uiapps.d.ts +25 -25
- package/dist/namespaces/Uiapps.d.ts.map +1 -1
- package/dist/namespaces/Uiapps.js +36 -36
- package/dist/namespaces/Uievents.js +1 -1
- package/dist/namespaces/Uifeed.js +1 -1
- package/dist/namespaces/Uistickyfeed.d.ts +16 -16
- package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
- package/dist/namespaces/Uistickyfeed.js +21 -21
- package/dist/namespaces/Unlock.js +5 -5
- package/dist/namespaces/VehicleStatics.js +12 -12
- package/dist/namespaces/Voice.js +7 -7
- package/dist/namespaces/VolumeStatics.d.ts +99 -99
- package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
- package/dist/namespaces/VolumeStatics.js +137 -137
- 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 +206 -206
- package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
- package/dist/namespaces/WeaponStatics.js +303 -303
- package/dist/types/NativeAliases.d.ts +3 -1
- package/dist/types/NativeAliases.d.ts.map +1 -1
- package/dist/types/NativeAliases.js +3 -1
- package/package.json +1 -1
- package/src/classes/AnimScene.ts +164 -164
- package/src/classes/BaseModel.ts +60 -60
- package/src/classes/BaseTask.ts +46 -46
- package/src/classes/Cam.ts +136 -136
- package/src/classes/Entity.ts +738 -727
- package/src/classes/Interior.ts +43 -43
- package/src/classes/ItemSet.ts +3 -3
- package/src/classes/Ped.ts +432 -432
- package/src/classes/PedModel.ts +2 -2
- package/src/classes/PedTask.ts +1023 -1023
- package/src/classes/PersChar.ts +28 -28
- package/src/classes/Pickup.ts +13 -13
- package/src/classes/Player.ts +326 -319
- package/src/classes/Prop.ts +185 -185
- package/src/classes/PropSet.ts +25 -25
- package/src/classes/Vehicle.ts +147 -147
- package/src/classes/VehicleModel.ts +2 -2
- package/src/classes/VehicleTask.ts +27 -27
- package/src/classes/Volume.ts +62 -62
- package/src/classes/Weapon.ts +358 -358
- package/src/namespaces/Aicoverpoint.ts +40 -40
- package/src/namespaces/Aitransport.ts +104 -104
- package/src/namespaces/Animscene.ts +55 -55
- package/src/namespaces/Audio.ts +565 -565
- package/src/namespaces/Bounty.ts +46 -46
- package/src/namespaces/Brain.ts +22 -22
- package/src/namespaces/CamStatics.ts +706 -706
- package/src/namespaces/Clock.ts +82 -82
- package/src/namespaces/Collection.ts +12 -12
- package/src/namespaces/Compapp.ts +1 -1
- package/src/namespaces/Compendium.ts +94 -94
- package/src/namespaces/Crashlog.ts +9 -9
- package/src/namespaces/Crew.ts +20 -20
- package/src/namespaces/Databinding.ts +222 -222
- package/src/namespaces/Datafile.ts +4 -4
- package/src/namespaces/Decorator.ts +37 -37
- package/src/namespaces/Dlc.ts +2 -2
- package/src/namespaces/EntityStatics.ts +259 -259
- package/src/namespaces/Event.ts +4 -4
- package/src/namespaces/Fire.ts +127 -127
- package/src/namespaces/Flock.ts +2 -2
- package/src/namespaces/Gang.ts +2 -2
- package/src/namespaces/GoogleAnalytics.ts +2 -2
- package/src/namespaces/Graphics.ts +1081 -1081
- package/src/namespaces/Hud.ts +767 -767
- package/src/namespaces/Ik.ts +1 -1
- package/src/namespaces/Interaction.ts +3 -3
- package/src/namespaces/InteriorStatics.ts +65 -65
- package/src/namespaces/Inventory.ts +352 -352
- package/src/namespaces/Itemdatabase.ts +121 -121
- package/src/namespaces/Itemset.ts +2 -2
- package/src/namespaces/Law.ts +20 -20
- package/src/namespaces/Localization.ts +1 -1
- package/src/namespaces/Map.ts +217 -217
- package/src/namespaces/Minigame.ts +119 -119
- package/src/namespaces/Misc.ts +38 -38
- package/src/namespaces/Missiondata.ts +1 -1
- package/src/namespaces/Money.ts +3 -3
- package/src/namespaces/Netshopping.ts +99 -99
- package/src/namespaces/Network.ts +1738 -1738
- package/src/namespaces/Object.ts +370 -370
- package/src/namespaces/Pad.ts +155 -155
- package/src/namespaces/Pathfind.ts +10 -10
- package/src/namespaces/PedStatics.ts +12 -12
- package/src/namespaces/Perschar.ts +67 -67
- package/src/namespaces/Physics.ts +62 -62
- package/src/namespaces/PlayerStatics.ts +112 -112
- package/src/namespaces/Population.ts +131 -131
- package/src/namespaces/Posse.ts +81 -81
- package/src/namespaces/Propset.ts +92 -92
- package/src/namespaces/Replay.ts +3 -3
- package/src/namespaces/Scripts.ts +13 -13
- package/src/namespaces/Socialclub.ts +8 -8
- package/src/namespaces/Socialclubfeed.ts +1 -1
- package/src/namespaces/Spactionproxy.ts +4 -4
- package/src/namespaces/Stats.ts +296 -296
- package/src/namespaces/Streaming.ts +236 -236
- package/src/namespaces/Task.ts +583 -583
- package/src/namespaces/Telemetry.ts +125 -125
- package/src/namespaces/Txd.ts +1 -1
- package/src/namespaces/Uiapps.ts +43 -43
- package/src/namespaces/Uievents.ts +1 -1
- package/src/namespaces/Uifeed.ts +1 -1
- package/src/namespaces/Uistickyfeed.ts +23 -23
- package/src/namespaces/Unlock.ts +5 -5
- package/src/namespaces/VehicleStatics.ts +12 -12
- package/src/namespaces/Voice.ts +7 -7
- package/src/namespaces/VolumeStatics.ts +143 -143
- package/src/namespaces/Water.ts +47 -47
- package/src/namespaces/WeaponStatics.ts +311 -311
- package/src/types/NativeAliases.ts +6 -1
|
@@ -11,204 +11,217 @@ import { inv, rai, raf, ras, rav, pvi, pvf, pvv, pvii, pvfi, _h, f } from '../ty
|
|
|
11
11
|
|
|
12
12
|
export class CamStatics {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* p6 & p7 - possibly length or time
|
|
15
15
|
*
|
|
16
|
-
* @
|
|
16
|
+
* @param entity
|
|
17
|
+
* @param offset
|
|
18
|
+
* @param p4
|
|
19
|
+
* @param p5
|
|
20
|
+
* @param p6
|
|
21
|
+
* @param p7
|
|
22
|
+
* @param p8
|
|
17
23
|
*/
|
|
18
|
-
static
|
|
19
|
-
|
|
24
|
+
static setGameplayEntityHint(entity: Entity, offset: Vector3, p4: boolean, p5: number, p6: number, p7: number, p8: any): void {
|
|
25
|
+
inv<void>('0xD1F7F32640ADFD12', entity.handle, f(offset.x), f(offset.y), f(offset.z), p4, p5, p6, p7, p8);
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @param pos
|
|
26
|
-
* @param duration
|
|
27
|
-
* @param blendOutDuration
|
|
28
|
-
* @param blendInDuration
|
|
29
|
-
* @param p6
|
|
29
|
+
* Forces camera position to second furthest 3rd person
|
|
30
30
|
*/
|
|
31
|
-
static
|
|
32
|
-
inv<void>('
|
|
31
|
+
static forceThirdPersonCamThisFrame(): void {
|
|
32
|
+
inv<void>('0x8370D34BD2E60B73');
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @
|
|
36
|
+
* @param p0
|
|
37
37
|
*/
|
|
38
|
-
static
|
|
39
|
-
|
|
38
|
+
static setGameplayHintFollowDistanceScalar(p0: number): void {
|
|
39
|
+
inv<void>('0xDDDC54181868F81F', f(p0));
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* @returns
|
|
44
44
|
*/
|
|
45
|
-
static
|
|
46
|
-
return inv<
|
|
45
|
+
static isCamPhotofxRunning(): any {
|
|
46
|
+
return inv<number>('0xA14D5FE82BCB1D9E');
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Sets the amplitude for the gameplay (i.e. 3rd or 1st) camera to shake.
|
|
51
|
+
*
|
|
52
|
+
* @param amplitude
|
|
51
53
|
*/
|
|
52
|
-
static
|
|
53
|
-
|
|
54
|
+
static setGameplayCamShakeAmplitude(amplitude: number): void {
|
|
55
|
+
inv<void>('0x570E35F5C4A44838', f(amplitude));
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
/**
|
|
57
|
-
* @
|
|
59
|
+
* @param dictionary
|
|
60
|
+
* @param shotName
|
|
61
|
+
* @param duration
|
|
58
62
|
*/
|
|
59
|
-
static
|
|
60
|
-
|
|
63
|
+
static cinematicLocationTriggerScriptedShotEvent2(dictionary: string | null, shotName: string | null, duration: number): void {
|
|
64
|
+
inv<void>('0xBC016635D6A73B31', dictionary, shotName, duration);
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
68
|
+
* Sets the camera pitch. Parameters:
|
|
69
|
+
* x = pitches the camera on the x axis.
|
|
70
|
+
* Value2 = always seems to be hex 0x3F800000 (1.000000 float).
|
|
71
|
+
*
|
|
72
|
+
* @param x
|
|
73
|
+
* @param Value2
|
|
67
74
|
*/
|
|
68
|
-
static
|
|
69
|
-
inv<void>('
|
|
75
|
+
static setGameplayCamRelativePitch(x: number, Value2: number): void {
|
|
76
|
+
inv<void>('0xFB760AF4F537B8BF', f(x), f(Value2));
|
|
70
77
|
}
|
|
71
78
|
|
|
72
79
|
/**
|
|
73
|
-
*
|
|
80
|
+
* Creates Kill Cam for specified Ped Handle
|
|
81
|
+
*
|
|
82
|
+
* @param ped
|
|
74
83
|
*/
|
|
75
|
-
static
|
|
76
|
-
|
|
84
|
+
static createKillCam(ped: Ped): void {
|
|
85
|
+
inv<void>('0x2F994CC29CAA9D22', ped.handle);
|
|
77
86
|
}
|
|
78
87
|
|
|
79
88
|
/**
|
|
80
89
|
* @param p0
|
|
81
90
|
*/
|
|
82
|
-
static
|
|
83
|
-
inv<void>('
|
|
91
|
+
static setGameplayHintBaseOrbitPitchOffset(p0: number): void {
|
|
92
|
+
inv<void>('0x421192A2DA48FD01', f(p0));
|
|
84
93
|
}
|
|
85
94
|
|
|
86
95
|
/**
|
|
87
96
|
* @param p0
|
|
88
97
|
* @param p1
|
|
98
|
+
* @param p2
|
|
99
|
+
* @param p3
|
|
100
|
+
* @param p4
|
|
101
|
+
* @param p5
|
|
102
|
+
* @param p6
|
|
103
|
+
* @param p7
|
|
89
104
|
*/
|
|
90
|
-
static
|
|
91
|
-
inv<void>('
|
|
105
|
+
static setGameplayObjectHint(p0: any, p1: number, p2: number, p3: number, p4: boolean, p5: any, p6: any, p7: any): void {
|
|
106
|
+
inv<void>('0xC40551D65F2BF297', p0, f(p1), f(p2), f(p3), p4, p5, p6, p7);
|
|
92
107
|
}
|
|
93
108
|
|
|
94
109
|
/**
|
|
95
|
-
*
|
|
110
|
+
* Forces camera position to furthest 3rd person
|
|
96
111
|
*/
|
|
97
|
-
static
|
|
98
|
-
|
|
112
|
+
static forceThirdPersonCamFarThisFrame(): void {
|
|
113
|
+
inv<void>('0x1CFB749AD4317BDE');
|
|
99
114
|
}
|
|
100
115
|
|
|
101
116
|
/**
|
|
102
|
-
*
|
|
117
|
+
* Used to enable headshot kill replay when you headshot set ped.
|
|
118
|
+
* Params: p1 seems to be 0 or 1 in R* Scripts
|
|
119
|
+
*
|
|
120
|
+
* @param ped
|
|
121
|
+
* @param p1
|
|
103
122
|
*/
|
|
104
|
-
static
|
|
105
|
-
|
|
123
|
+
static reactivatePedHeadshotExecuteSlowcam(ped: Ped, p1: number): void {
|
|
124
|
+
inv<void>('0x986F7A51EE3E1F92', ped.handle, p1);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
static N_0x641092322A8852AB(): void {
|
|
128
|
+
inv<void>('0x641092322A8852AB');
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
static triggerMissionFailedCam(): void {
|
|
132
|
+
inv<void>('0x9A92C06ACBAF9731');
|
|
106
133
|
}
|
|
107
134
|
|
|
108
135
|
/**
|
|
109
136
|
* @param p0
|
|
110
137
|
*/
|
|
111
|
-
static
|
|
112
|
-
inv<void>('
|
|
138
|
+
static N_0x1D9F72DD4FD9A9D7(p0: any): void {
|
|
139
|
+
inv<void>('0x1D9F72DD4FD9A9D7', p0);
|
|
113
140
|
}
|
|
114
141
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
*/
|
|
118
|
-
static isInCinematicMode(): any {
|
|
119
|
-
return inv<number>('0x74F1D22EFA71FAB8');
|
|
142
|
+
static N_0xE6F364DE6C2FDEFE(): void {
|
|
143
|
+
inv<void>('0xE6F364DE6C2FDEFE');
|
|
120
144
|
}
|
|
121
145
|
|
|
122
146
|
/**
|
|
123
|
-
* shakeName: REINFORCED_LASSO_STRUGGLE_SHAKE
|
|
124
|
-
* _RES*
|
|
125
|
-
*
|
|
126
147
|
* @param shakeName
|
|
127
148
|
* @param intensity
|
|
128
149
|
*/
|
|
129
|
-
static
|
|
130
|
-
inv<void>('
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @param dictionary
|
|
135
|
-
* @param shotName
|
|
136
|
-
* @param cameraName
|
|
137
|
-
* @param p3
|
|
138
|
-
*/
|
|
139
|
-
static cinematicLocationTriggerScriptedShotEvent(dictionary: string | null, shotName: string | null, cameraName: string | null, p3: any): void {
|
|
140
|
-
inv<void>('0x02389579A53C3276', dictionary, shotName, cameraName, p3);
|
|
150
|
+
static shakeGameplayCam(shakeName: string | null, intensity: number): void {
|
|
151
|
+
inv<void>('0xD9B31B4650520529', shakeName, f(intensity));
|
|
141
152
|
}
|
|
142
153
|
|
|
143
154
|
/**
|
|
144
|
-
* @param cameraDictionary
|
|
145
155
|
* @returns
|
|
146
156
|
*/
|
|
147
|
-
static
|
|
148
|
-
return inv<number>('
|
|
157
|
+
static N_0x796085220ADCC847(): any {
|
|
158
|
+
return inv<number>('0x796085220ADCC847');
|
|
149
159
|
}
|
|
150
160
|
|
|
151
161
|
/**
|
|
152
|
-
*
|
|
162
|
+
* @param p0
|
|
153
163
|
*/
|
|
154
|
-
static
|
|
155
|
-
inv<void>('
|
|
164
|
+
static forceCinematicRenderingThisUpdate(p0: boolean): void {
|
|
165
|
+
inv<void>('0x702B75DC9D3EDE56', p0);
|
|
156
166
|
}
|
|
157
167
|
|
|
158
168
|
/**
|
|
159
|
-
*
|
|
160
|
-
*
|
|
169
|
+
* Maintains the death camera after respawn
|
|
170
|
+
*
|
|
171
|
+
* @param toggle
|
|
161
172
|
*/
|
|
162
|
-
static
|
|
163
|
-
inv<void>('
|
|
173
|
+
static N_0x63E5841A9264D016(toggle: boolean): void {
|
|
174
|
+
inv<void>('0x63E5841A9264D016', toggle);
|
|
164
175
|
}
|
|
165
176
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
*/
|
|
169
|
-
static create2(cameraDictionary: string | null): void {
|
|
170
|
-
inv<void>('0x7B0279170961A73F', cameraDictionary);
|
|
177
|
+
static N_0x41E452A3C580D1A7(): void {
|
|
178
|
+
inv<void>('0x41E452A3C580D1A7');
|
|
171
179
|
}
|
|
172
180
|
|
|
173
181
|
/**
|
|
174
|
-
*
|
|
182
|
+
* @param p0
|
|
175
183
|
*/
|
|
176
|
-
static
|
|
177
|
-
inv<void>('
|
|
184
|
+
static N_0x728491FB3DFFEF99(p0: any): void {
|
|
185
|
+
inv<void>('0x728491FB3DFFEF99', p0);
|
|
178
186
|
}
|
|
179
187
|
|
|
180
188
|
/**
|
|
181
189
|
* @returns
|
|
182
190
|
*/
|
|
183
|
-
static
|
|
184
|
-
return
|
|
191
|
+
static isGameplayHintActive(): boolean {
|
|
192
|
+
return !!inv<boolean>('0x2E04AB5FEE042D4A', rai());
|
|
185
193
|
}
|
|
186
194
|
|
|
187
195
|
/**
|
|
188
|
-
* @param
|
|
196
|
+
* @param FOV
|
|
189
197
|
*/
|
|
190
|
-
static
|
|
191
|
-
inv<void>('
|
|
198
|
+
static setGameplayHintFov(FOV: number): void {
|
|
199
|
+
inv<void>('0x661E58BC6F00A49A', f(FOV));
|
|
192
200
|
}
|
|
193
201
|
|
|
194
202
|
/**
|
|
195
203
|
* @param p0
|
|
196
204
|
*/
|
|
197
|
-
static
|
|
198
|
-
inv<void>('
|
|
205
|
+
static N_0xB85C13E0BF1F2A1C(p0: any): void {
|
|
206
|
+
inv<void>('0xB85C13E0BF1F2A1C', p0);
|
|
199
207
|
}
|
|
200
208
|
|
|
201
|
-
|
|
202
|
-
|
|
209
|
+
/**
|
|
210
|
+
* @returns
|
|
211
|
+
*/
|
|
212
|
+
static N_0x73FF6BE63DC18819(): any {
|
|
213
|
+
return inv<number>('0x73FF6BE63DC18819');
|
|
203
214
|
}
|
|
204
215
|
|
|
205
216
|
/**
|
|
206
|
-
*
|
|
217
|
+
* shakeNames in script_rel: CORRECTOR_SHAKE, MINIGAME_BOUNTY_SHAKE, POV_DRUNK_SHAKE, DRUNK_SHAKE, MINIGAME_TRAIN_SHAKE
|
|
218
|
+
* *IS_GAMEPLAY**
|
|
207
219
|
*
|
|
220
|
+
* @param shakeName
|
|
208
221
|
* @returns
|
|
209
222
|
*/
|
|
210
|
-
static
|
|
211
|
-
return inv<boolean>('
|
|
223
|
+
static N_0x0060B31968E60E41(shakeName: string | null): boolean {
|
|
224
|
+
return !!inv<boolean>('0x0060B31968E60E41', shakeName, rai());
|
|
212
225
|
}
|
|
213
226
|
|
|
214
227
|
/**
|
|
@@ -217,20 +230,25 @@ export class CamStatics {
|
|
|
217
230
|
* @param duration
|
|
218
231
|
* @returns
|
|
219
232
|
*/
|
|
220
|
-
static
|
|
221
|
-
return inv<
|
|
233
|
+
static N_0xC3AEBB276825A359(dictionary: string | null, shotName: string | null, duration: number): boolean {
|
|
234
|
+
return !!inv<boolean>('0xC3AEBB276825A359', dictionary, shotName, duration, rai());
|
|
222
235
|
}
|
|
223
236
|
|
|
224
237
|
/**
|
|
225
|
-
* @param
|
|
226
|
-
* @
|
|
238
|
+
* @param p0
|
|
239
|
+
* @param p1
|
|
227
240
|
*/
|
|
228
|
-
static
|
|
229
|
-
|
|
241
|
+
static setFirstPersonAimCamRelativeHeadingLimitsThisUpdate(p0: number, p1: number): void {
|
|
242
|
+
inv<void>('0x05BD5E4088B30A66', f(p0), f(p1));
|
|
230
243
|
}
|
|
231
244
|
|
|
232
|
-
|
|
233
|
-
|
|
245
|
+
/**
|
|
246
|
+
* Old name: _DISABLE_CAM_COLLISION_FOR_ENTITY
|
|
247
|
+
*
|
|
248
|
+
* @param entity
|
|
249
|
+
*/
|
|
250
|
+
static setGameplayCamIgnoreEntityCollisionThisUpdate(entity: Entity): void {
|
|
251
|
+
inv<void>('0xD904F75DBD7AB865', entity.handle);
|
|
234
252
|
}
|
|
235
253
|
|
|
236
254
|
/**
|
|
@@ -248,7 +266,7 @@ export class CamStatics {
|
|
|
248
266
|
* @returns
|
|
249
267
|
*/
|
|
250
268
|
static isAimCamActive(): boolean {
|
|
251
|
-
return inv<boolean>('0x698F456FB909E077', rai());
|
|
269
|
+
return !!inv<boolean>('0x698F456FB909E077', rai());
|
|
252
270
|
}
|
|
253
271
|
|
|
254
272
|
/**
|
|
@@ -298,7 +316,7 @@ export class CamStatics {
|
|
|
298
316
|
* @returns
|
|
299
317
|
*/
|
|
300
318
|
static isFollowVehicleCamActive(): boolean {
|
|
301
|
-
return inv<boolean>('0xA40C2F51FB589E9A', rai());
|
|
319
|
+
return !!inv<boolean>('0xA40C2F51FB589E9A', rai());
|
|
302
320
|
}
|
|
303
321
|
|
|
304
322
|
/**
|
|
@@ -345,520 +363,530 @@ export class CamStatics {
|
|
|
345
363
|
}
|
|
346
364
|
|
|
347
365
|
/**
|
|
348
|
-
* @param
|
|
349
|
-
* @param p1
|
|
366
|
+
* @param locationDictName
|
|
350
367
|
*/
|
|
351
|
-
static
|
|
352
|
-
inv<void>('
|
|
368
|
+
static loadCinematicCamLocation(locationDictName: string | null): void {
|
|
369
|
+
inv<void>('0x1B3C2D961F5FC0E1', locationDictName);
|
|
353
370
|
}
|
|
354
371
|
|
|
355
372
|
/**
|
|
356
|
-
*
|
|
373
|
+
* _SET_GAMEPLAY_P* - _SET_GAMEPLAY_V*
|
|
374
|
+
*
|
|
375
|
+
* @param shakeName
|
|
376
|
+
* @param intensity
|
|
357
377
|
*/
|
|
358
|
-
static
|
|
359
|
-
|
|
378
|
+
static N_0xFEFDDC6E8FDF8A75(shakeName: string | null, intensity: number): void {
|
|
379
|
+
inv<void>('0xFEFDDC6E8FDF8A75', shakeName, f(intensity));
|
|
360
380
|
}
|
|
361
381
|
|
|
362
382
|
/**
|
|
363
|
-
* @param cameraDictionary
|
|
364
383
|
* @returns
|
|
365
384
|
*/
|
|
366
|
-
static
|
|
367
|
-
return inv<number>('
|
|
385
|
+
static N_0x5060FA977CEA4455(): any {
|
|
386
|
+
return inv<number>('0x5060FA977CEA4455');
|
|
368
387
|
}
|
|
369
388
|
|
|
370
389
|
/**
|
|
371
|
-
*
|
|
390
|
+
* [SHOP_CAMERA_SUPPORT_START_NEW_ORBIT]
|
|
391
|
+
* p0: struct<32> /*256*\/
|
|
392
|
+
*
|
|
393
|
+
* @returns p0
|
|
372
394
|
*/
|
|
373
|
-
static
|
|
374
|
-
inv<
|
|
395
|
+
static startCameraOrbit(): number {
|
|
396
|
+
const result = inv<number>('0x65B205BF30C13DDB', pvi());
|
|
397
|
+
return result;
|
|
375
398
|
}
|
|
376
399
|
|
|
377
400
|
/**
|
|
378
|
-
*
|
|
379
|
-
*
|
|
401
|
+
* @param p0
|
|
402
|
+
* @param p1
|
|
380
403
|
*/
|
|
381
|
-
static
|
|
382
|
-
inv<void>('
|
|
404
|
+
static setWidescreenBorders(p0: boolean, p1: number): void {
|
|
405
|
+
inv<void>('0xD7F4D54CF80AFA34', p0, p1);
|
|
383
406
|
}
|
|
384
407
|
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
*
|
|
388
|
-
* @param vehicle
|
|
389
|
-
* @param p1
|
|
390
|
-
*/
|
|
391
|
-
static setInVehicleCamStateThisUpdate(vehicle: Vehicle, p1: number): void {
|
|
392
|
-
inv<void>('0xFA1D5E8D1C3CCD67', vehicle.handle, p1);
|
|
408
|
+
static N_0x06557F6D96C86881(): void {
|
|
409
|
+
inv<void>('0x06557F6D96C86881');
|
|
393
410
|
}
|
|
394
411
|
|
|
395
412
|
/**
|
|
396
|
-
*
|
|
397
|
-
*
|
|
398
|
-
*
|
|
399
|
-
* @param
|
|
400
|
-
* @param
|
|
401
|
-
* @param p9
|
|
402
|
-
* @returns
|
|
413
|
+
* minimum: Degrees between -180f and 180f.
|
|
414
|
+
* maximum: Degrees between -180f and 180f. Clamps the gameplay camera's current yaw. Eg. _CLAMP_GAMEPLAY_CAM_YAW(0.0f, 0.0f) will set the horizontal angle directly behind the player. Old name: _CLAMP_GAMEPLAY_CAM_YAW
|
|
415
|
+
*
|
|
416
|
+
* @param minimum
|
|
417
|
+
* @param maximum
|
|
403
418
|
*/
|
|
404
|
-
static
|
|
405
|
-
|
|
419
|
+
static setThirdPersonCamRelativeHeadingLimitsThisUpdate(minimum: number, maximum: number): void {
|
|
420
|
+
inv<void>('0x14F3947318CA8AD2', f(minimum), f(maximum));
|
|
406
421
|
}
|
|
407
422
|
|
|
408
423
|
/**
|
|
409
|
-
* @
|
|
424
|
+
* @param p0
|
|
410
425
|
*/
|
|
411
|
-
static
|
|
412
|
-
|
|
426
|
+
static N_0xDF7F5BE9150E47E4(p0: any): void {
|
|
427
|
+
inv<void>('0xDF7F5BE9150E47E4', p0);
|
|
413
428
|
}
|
|
414
429
|
|
|
415
|
-
static
|
|
416
|
-
inv<void>('
|
|
430
|
+
static N_0x04084490CC302CFB(): void {
|
|
431
|
+
inv<void>('0x04084490CC302CFB');
|
|
417
432
|
}
|
|
418
433
|
|
|
419
434
|
/**
|
|
420
|
-
* @param
|
|
421
|
-
* @param shotName
|
|
422
|
-
* @param cameraName
|
|
423
|
-
* @returns
|
|
435
|
+
* @param p0
|
|
424
436
|
*/
|
|
425
|
-
static
|
|
426
|
-
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
static forceLetterBoxThisUpdate(): void {
|
|
430
|
-
inv<void>('0xC64ABC0676AF262B');
|
|
437
|
+
static stopGameplayCamShaking(p0: boolean): void {
|
|
438
|
+
inv<void>('0xE0DE43D290FB65F9', p0);
|
|
431
439
|
}
|
|
432
440
|
|
|
433
441
|
/**
|
|
442
|
+
* Creates Cinematic Black Bars (at top and bottom)
|
|
443
|
+
* Disable instantly: false/false, Enable instantly: true/true
|
|
444
|
+
*
|
|
434
445
|
* @param p0
|
|
435
446
|
* @param p1
|
|
436
|
-
* @param p2
|
|
437
|
-
* @param p3
|
|
438
|
-
* @param p4
|
|
439
|
-
* @param p5
|
|
440
|
-
* @param p6
|
|
441
|
-
* @param p7
|
|
442
447
|
*/
|
|
443
|
-
static
|
|
444
|
-
inv<void>('
|
|
448
|
+
static requestLetterBoxNow(p0: boolean, p1: boolean): void {
|
|
449
|
+
inv<void>('0x69D65E89FFD72313', p0, p1);
|
|
445
450
|
}
|
|
446
451
|
|
|
447
452
|
/**
|
|
448
|
-
*
|
|
449
|
-
* _SET_P* - _SET_S*
|
|
450
|
-
*
|
|
451
|
-
* @param p0
|
|
453
|
+
* @param entity
|
|
452
454
|
*/
|
|
453
|
-
static
|
|
454
|
-
inv<void>('
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
static N_0x6CAB0BA160B168D2(): void {
|
|
458
|
-
inv<void>('0x6CAB0BA160B168D2');
|
|
455
|
+
static disableCamCollisionForObject(entity: Entity): void {
|
|
456
|
+
inv<void>('0x7E3F546ACFE6C8D9', entity.handle);
|
|
459
457
|
}
|
|
460
458
|
|
|
461
459
|
/**
|
|
462
460
|
* @returns
|
|
463
461
|
*/
|
|
464
|
-
static
|
|
465
|
-
return inv<
|
|
462
|
+
static getGameplayCamFov(): number {
|
|
463
|
+
return inv<number>('0xF6A96E5ACEEC6E50', raf());
|
|
466
464
|
}
|
|
467
465
|
|
|
468
466
|
/**
|
|
469
|
-
*
|
|
470
|
-
*
|
|
471
|
-
* @
|
|
467
|
+
* Fades the screen in. duration: The time the fade should take, in milliseconds.
|
|
468
|
+
*
|
|
469
|
+
* @param duration
|
|
472
470
|
*/
|
|
473
|
-
static
|
|
474
|
-
|
|
471
|
+
static doScreenFadeIn(duration: number): void {
|
|
472
|
+
inv<void>('0x6A053CF596F67DF7', duration);
|
|
475
473
|
}
|
|
476
474
|
|
|
477
475
|
/**
|
|
478
|
-
*
|
|
476
|
+
* script_rel: DRUNK_SHAKE, REINFORCED_LASSO_STRUGGLE_SHAKE, CORRECTOR_SHAKE, MINIGAME_BOUNTY_SHAKE, HAND_SHAKE, MINIGAME_TRAIN_SHAKE
|
|
477
|
+
* script_mp_rel: DRUNK_SHAKE, REINFORCED_LASSO_STRUGGLE_SHAKE
|
|
478
|
+
* _STOP_GAMEPLAY_CAM* - _STOP_I*
|
|
479
|
+
*
|
|
480
|
+
* @param shakeName
|
|
481
|
+
* @param p1
|
|
479
482
|
*/
|
|
480
|
-
static
|
|
481
|
-
inv<void>('
|
|
483
|
+
static stopGameplayCamShakingWithName(shakeName: string | null, p1: boolean): void {
|
|
484
|
+
inv<void>('0x4285804FD65D8066', shakeName, p1);
|
|
482
485
|
}
|
|
483
486
|
|
|
484
487
|
/**
|
|
485
|
-
* Returns true if first person camera is active in saloon1.ysc
|
|
486
|
-
*
|
|
487
488
|
* @returns
|
|
488
489
|
*/
|
|
489
|
-
static
|
|
490
|
-
return inv<
|
|
490
|
+
static isInterpolatingToScriptCams(): boolean {
|
|
491
|
+
return !!inv<boolean>('0x43AB9D5A7D415478', rai());
|
|
491
492
|
}
|
|
492
493
|
|
|
493
|
-
|
|
494
|
-
|
|
494
|
+
/**
|
|
495
|
+
* @returns
|
|
496
|
+
*/
|
|
497
|
+
static getFinalRenderedCamFov(): number {
|
|
498
|
+
return inv<number>('0x04AF77971E508F6A', raf());
|
|
495
499
|
}
|
|
496
500
|
|
|
497
|
-
|
|
498
|
-
|
|
501
|
+
/**
|
|
502
|
+
* UPDATE_PLAYER_PLAYING_STATE - Releasing Lasso Hint Cam
|
|
503
|
+
* Return type char in ida
|
|
504
|
+
* *SET_GAMEPLAY_HINT**
|
|
505
|
+
*
|
|
506
|
+
* @param p0
|
|
507
|
+
*/
|
|
508
|
+
static N_0x88544C0E3291DCAE(p0: boolean): void {
|
|
509
|
+
inv<void>('0x88544C0E3291DCAE', p0);
|
|
499
510
|
}
|
|
500
511
|
|
|
501
512
|
/**
|
|
502
|
-
* @
|
|
513
|
+
* @returns
|
|
503
514
|
*/
|
|
504
|
-
static
|
|
505
|
-
inv<
|
|
515
|
+
static isScreenFadedIn(): boolean {
|
|
516
|
+
return !!inv<boolean>('0x37F9A426FBCF4AF2', rai());
|
|
506
517
|
}
|
|
507
518
|
|
|
508
519
|
/**
|
|
509
|
-
*
|
|
520
|
+
* Old name: _DISABLE_FIRST_PERSON_CAM_THIS_FRAME
|
|
510
521
|
*/
|
|
511
|
-
static
|
|
512
|
-
inv<void>('
|
|
522
|
+
static disableOnFootFirstPersonViewThisUpdate(): void {
|
|
523
|
+
inv<void>('0x9C473089A934C930');
|
|
513
524
|
}
|
|
514
525
|
|
|
515
526
|
/**
|
|
516
|
-
*
|
|
527
|
+
* Old name: _INVALIDATE_VEHICLE_IDLE_CAM
|
|
517
528
|
*/
|
|
518
|
-
static
|
|
519
|
-
|
|
529
|
+
static invalidateCinematicVehicleIdleMode(): void {
|
|
530
|
+
inv<void>('0x634F4A0562CF19B8');
|
|
520
531
|
}
|
|
521
532
|
|
|
522
|
-
|
|
523
|
-
|
|
533
|
+
/**
|
|
534
|
+
* @param dictionaryName
|
|
535
|
+
*/
|
|
536
|
+
static unloadCinematicCameraLocation(dictionaryName: string | null): void {
|
|
537
|
+
inv<void>('0x2412216FCC7B4E3E', dictionaryName);
|
|
524
538
|
}
|
|
525
539
|
|
|
526
540
|
/**
|
|
527
|
-
* @param camHash
|
|
528
|
-
* @param p1
|
|
529
541
|
* @returns
|
|
530
542
|
*/
|
|
531
|
-
static
|
|
532
|
-
return
|
|
543
|
+
static isScreenFadedOut(): boolean {
|
|
544
|
+
return !!inv<boolean>('0xF5472C80DF2FF847', rai());
|
|
533
545
|
}
|
|
534
546
|
|
|
535
547
|
/**
|
|
536
|
-
*
|
|
537
|
-
*
|
|
538
|
-
* @param
|
|
548
|
+
* @param dictionary
|
|
549
|
+
* @param shotName
|
|
550
|
+
* @param duration
|
|
539
551
|
*/
|
|
540
|
-
static
|
|
541
|
-
inv<void>('
|
|
552
|
+
static N_0xA54D643D0773EB65(dictionary: string | null, shotName: string | null, duration: number): void {
|
|
553
|
+
inv<void>('0xA54D643D0773EB65', dictionary, shotName, duration);
|
|
542
554
|
}
|
|
543
555
|
|
|
544
556
|
/**
|
|
545
|
-
*
|
|
546
|
-
*
|
|
547
|
-
* @param name
|
|
548
|
-
* @param entity
|
|
557
|
+
* @returns
|
|
549
558
|
*/
|
|
550
|
-
static
|
|
551
|
-
inv<
|
|
559
|
+
static isDeathFailCameraRunning(): boolean {
|
|
560
|
+
return !!inv<boolean>('0x139EFB0A71DD9011', rai());
|
|
552
561
|
}
|
|
553
562
|
|
|
554
563
|
/**
|
|
555
|
-
* Used for DUELING_LOCK_CAMERA_CONTROLS_THIS_FRAME: Disabling look/aim controls
|
|
556
|
-
* *IS_SC(REEN*)* (?)
|
|
557
|
-
*
|
|
558
564
|
* @returns
|
|
559
565
|
*/
|
|
560
|
-
static
|
|
561
|
-
return inv<
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
static freezeGameplayCamThisFrame(): void {
|
|
565
|
-
inv<void>('0x027CAB2C3AF27010');
|
|
566
|
+
static N_0xDC62CD70658E7A02(): any {
|
|
567
|
+
return inv<number>('0xDC62CD70658E7A02');
|
|
566
568
|
}
|
|
567
569
|
|
|
568
570
|
/**
|
|
569
|
-
* @
|
|
571
|
+
* @param cameraDictionary
|
|
570
572
|
*/
|
|
571
|
-
static
|
|
572
|
-
|
|
573
|
+
static loadCameraDataDict(cameraDictionary: string | null): void {
|
|
574
|
+
inv<void>('0x6A4D224FC7643941', cameraDictionary);
|
|
573
575
|
}
|
|
574
576
|
|
|
575
577
|
/**
|
|
576
|
-
*
|
|
578
|
+
* Does the same as 0x9C473089A934C930 (DISABLE_ON_FOOT_FIRST_PERSON_VIEW_THIS_UPDATE)
|
|
577
579
|
*/
|
|
578
|
-
static
|
|
579
|
-
inv<void>('
|
|
580
|
+
static disableOnFootFirstPersonViewThisUpdate2(): void {
|
|
581
|
+
inv<void>('0x05AB44D906738426');
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
static N_0xF1A6FEEDF3776EF9(): void {
|
|
585
|
+
inv<void>('0xF1A6FEEDF3776EF9');
|
|
580
586
|
}
|
|
581
587
|
|
|
582
588
|
/**
|
|
583
|
-
*
|
|
589
|
+
* Old name: _ANIMATE_GAMEPLAY_CAM_ZOOM
|
|
590
|
+
*
|
|
591
|
+
* @param p0
|
|
592
|
+
* @param distance
|
|
584
593
|
*/
|
|
585
|
-
static
|
|
586
|
-
|
|
594
|
+
static setThirdPersonCamOrbitDistanceLimitsThisUpdate(p0: number, distance: number): void {
|
|
595
|
+
inv<void>('0x2126C740A4AC370B', f(p0), f(distance));
|
|
587
596
|
}
|
|
588
597
|
|
|
589
598
|
/**
|
|
599
|
+
* More info: see HAS_LETTER_BOX
|
|
600
|
+
*
|
|
590
601
|
* @returns
|
|
591
602
|
*/
|
|
592
|
-
static
|
|
593
|
-
return inv<number>('
|
|
603
|
+
static getLetterBoxRatio(): number {
|
|
604
|
+
return inv<number>('0xA2B1C7EF759A63CE', raf());
|
|
594
605
|
}
|
|
595
606
|
|
|
596
607
|
/**
|
|
597
|
-
* @param rotationOrder
|
|
598
608
|
* @returns
|
|
599
609
|
*/
|
|
600
|
-
static
|
|
601
|
-
return
|
|
610
|
+
static N_0x7CE9DC58E3E4755F(): any {
|
|
611
|
+
return inv<number>('0x7CE9DC58E3E4755F');
|
|
602
612
|
}
|
|
603
613
|
|
|
604
614
|
/**
|
|
605
|
-
* @param
|
|
615
|
+
* @param p0
|
|
606
616
|
* @param p1
|
|
607
|
-
* @returns
|
|
608
617
|
*/
|
|
609
|
-
static
|
|
610
|
-
|
|
618
|
+
static N_0xFEB8646818294C75(p0: any, p1: any): void {
|
|
619
|
+
inv<void>('0xFEB8646818294C75', p0, p1);
|
|
611
620
|
}
|
|
612
621
|
|
|
613
622
|
/**
|
|
614
|
-
*
|
|
615
|
-
*
|
|
616
|
-
* @param duration
|
|
623
|
+
* @param p0
|
|
617
624
|
*/
|
|
618
|
-
static
|
|
619
|
-
inv<void>('
|
|
625
|
+
static N_0xDB382FE20C2DA222(p0: any): void {
|
|
626
|
+
inv<void>('0xDB382FE20C2DA222', p0);
|
|
620
627
|
}
|
|
621
628
|
|
|
622
629
|
/**
|
|
623
|
-
*
|
|
624
|
-
* Params: targetPed = death cam focuses on it
|
|
625
|
-
*
|
|
626
|
-
* @param targetPed
|
|
630
|
+
* @param p0
|
|
627
631
|
*/
|
|
628
|
-
static
|
|
629
|
-
inv<void>('
|
|
632
|
+
static N_0x29E6655DF3590B0D(p0: any): void {
|
|
633
|
+
inv<void>('0x29E6655DF3590B0D', p0);
|
|
630
634
|
}
|
|
631
635
|
|
|
632
636
|
/**
|
|
633
|
-
* @param
|
|
637
|
+
* @param pos
|
|
638
|
+
* @param radius
|
|
639
|
+
* @returns
|
|
634
640
|
*/
|
|
635
|
-
static
|
|
636
|
-
inv<
|
|
641
|
+
static isSphereVisible(pos: Vector3, radius: number): boolean {
|
|
642
|
+
return !!inv<boolean>('0x2E941B5FFA2989C6', f(pos.x), f(pos.y), f(pos.z), f(radius), rai());
|
|
637
643
|
}
|
|
638
644
|
|
|
639
|
-
|
|
640
|
-
|
|
645
|
+
/**
|
|
646
|
+
* @param camInitialHeading
|
|
647
|
+
*/
|
|
648
|
+
static setGameplayCamInitialHeading(camInitialHeading: number): void {
|
|
649
|
+
inv<void>('0x6C1053C433A573CF', f(camInitialHeading));
|
|
641
650
|
}
|
|
642
651
|
|
|
643
652
|
/**
|
|
644
653
|
* @param p0
|
|
645
654
|
*/
|
|
646
|
-
static
|
|
647
|
-
inv<void>('
|
|
655
|
+
static stopGameplayHint(p0: boolean): void {
|
|
656
|
+
inv<void>('0x1BCEC33D54CFCA8A', p0);
|
|
648
657
|
}
|
|
649
658
|
|
|
650
659
|
/**
|
|
651
660
|
* @param p0
|
|
652
|
-
* @param p1
|
|
653
|
-
* @param p2
|
|
654
|
-
* @returns
|
|
655
661
|
*/
|
|
656
|
-
static
|
|
657
|
-
|
|
662
|
+
static N_0x0961B089947BA6D0(p0: any): void {
|
|
663
|
+
inv<void>('0x0961B089947BA6D0', p0);
|
|
658
664
|
}
|
|
659
665
|
|
|
660
|
-
|
|
661
|
-
|
|
666
|
+
/**
|
|
667
|
+
* minimum: Degrees between -90f and 90f.
|
|
668
|
+
* maximum: Degrees between -90f and 90f. Clamps the gameplay camera's current pitch. Eg. _CLAMP_GAMEPLAY_CAM_PITCH(0.0f, 0.0f) will set the vertical angle directly behind the player. Old name: _CLAMP_GAMEPLAY_CAM_PITCH
|
|
669
|
+
*
|
|
670
|
+
* @param minimum
|
|
671
|
+
* @param maximum
|
|
672
|
+
*/
|
|
673
|
+
static setThirdPersonCamRelativePitchLimitsThisUpdate(minimum: number, maximum: number): void {
|
|
674
|
+
inv<void>('0x326C7AA308F3DF6A', f(minimum), f(maximum));
|
|
662
675
|
}
|
|
663
676
|
|
|
664
677
|
/**
|
|
665
|
-
* @param dictionary
|
|
666
|
-
* @param shotName
|
|
667
|
-
* @param duration
|
|
668
678
|
* @returns
|
|
669
679
|
*/
|
|
670
|
-
static
|
|
671
|
-
return inv<number>('
|
|
680
|
+
static N_0x6072B7420A83A03F(): any {
|
|
681
|
+
return inv<number>('0x6072B7420A83A03F');
|
|
672
682
|
}
|
|
673
683
|
|
|
674
684
|
/**
|
|
675
685
|
* @param p0
|
|
676
686
|
*/
|
|
677
|
-
static
|
|
678
|
-
inv<void>('
|
|
687
|
+
static N_0xC205B3C54C6A4E37(p0: any): void {
|
|
688
|
+
inv<void>('0xC205B3C54C6A4E37', p0);
|
|
679
689
|
}
|
|
680
690
|
|
|
681
691
|
/**
|
|
682
|
-
*
|
|
692
|
+
* Only used in R* Script camera_photomode
|
|
693
|
+
*
|
|
694
|
+
* @returns
|
|
683
695
|
*/
|
|
684
|
-
static
|
|
685
|
-
inv<
|
|
696
|
+
static isAnimSceneCamActive(): any {
|
|
697
|
+
return inv<number>('0x20389408F0E93B9A');
|
|
686
698
|
}
|
|
687
699
|
|
|
688
700
|
/**
|
|
689
|
-
*
|
|
690
|
-
*
|
|
701
|
+
* Hash used in finale1.ysc: 1726668277
|
|
702
|
+
*
|
|
703
|
+
* @param pos
|
|
704
|
+
* @param duration
|
|
705
|
+
* @param blendOutDuration
|
|
706
|
+
* @param blendInDuration
|
|
707
|
+
* @param p6
|
|
691
708
|
*/
|
|
692
|
-
static
|
|
693
|
-
|
|
709
|
+
static setGameplayCoordHint(pos: Vector3, duration: number, blendOutDuration: number, blendInDuration: number, p6: string | number): void {
|
|
710
|
+
inv<void>('0xFA33B8C69A4A6A0F', f(pos.x), f(pos.y), f(pos.z), duration, blendOutDuration, blendInDuration, _h(p6));
|
|
694
711
|
}
|
|
695
712
|
|
|
696
713
|
/**
|
|
697
714
|
* @returns
|
|
698
715
|
*/
|
|
699
|
-
static
|
|
700
|
-
return inv<number>('
|
|
716
|
+
static N_0x14C4A49E36C29E49(): any {
|
|
717
|
+
return inv<number>('0x14C4A49E36C29E49');
|
|
701
718
|
}
|
|
702
719
|
|
|
703
720
|
/**
|
|
704
|
-
* @
|
|
705
|
-
* @param p1
|
|
706
|
-
* @param p2
|
|
707
|
-
* @param p3
|
|
708
|
-
* @param p4
|
|
709
|
-
* @param p5
|
|
721
|
+
* @returns
|
|
710
722
|
*/
|
|
711
|
-
static
|
|
712
|
-
inv<
|
|
723
|
+
static isScreenFadingIn(): boolean {
|
|
724
|
+
return !!inv<boolean>('0x0CECCC63FFA2EF24', rai());
|
|
713
725
|
}
|
|
714
726
|
|
|
715
727
|
/**
|
|
716
|
-
*
|
|
717
|
-
* *DISABLE**
|
|
728
|
+
* @returns
|
|
718
729
|
*/
|
|
719
|
-
static
|
|
720
|
-
inv<
|
|
730
|
+
static isGameplayCamShaking(): boolean {
|
|
731
|
+
return !!inv<boolean>('0xEA4C5F4AA0A4DBEF', rai());
|
|
721
732
|
}
|
|
722
733
|
|
|
723
734
|
/**
|
|
724
|
-
* Returns true if player is in first person
|
|
725
|
-
*
|
|
726
735
|
* @returns
|
|
727
736
|
*/
|
|
728
|
-
static
|
|
729
|
-
return inv<number>('
|
|
737
|
+
static N_0x190F7DA1AC09A8EF(): any {
|
|
738
|
+
return inv<number>('0x190F7DA1AC09A8EF');
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* @param p0
|
|
743
|
+
* @param p1
|
|
744
|
+
* @param p2
|
|
745
|
+
*/
|
|
746
|
+
static N_0x3B8E3AD9677CE12B(p0: any, p1: any, p2: any): void {
|
|
747
|
+
inv<void>('0x3B8E3AD9677CE12B', p0, p1, p2);
|
|
730
748
|
}
|
|
731
749
|
|
|
732
750
|
/**
|
|
733
751
|
* @returns
|
|
734
752
|
*/
|
|
735
|
-
static
|
|
736
|
-
return inv<
|
|
753
|
+
static getGameplayCamRelativePitch(): number {
|
|
754
|
+
return inv<number>('0x99AADEBBA803F827', raf());
|
|
737
755
|
}
|
|
738
756
|
|
|
739
757
|
/**
|
|
740
|
-
* @param
|
|
758
|
+
* @param p0
|
|
741
759
|
*/
|
|
742
|
-
static
|
|
743
|
-
inv<void>('
|
|
760
|
+
static N_0x8E036B41C37D0E5F(p0: any): void {
|
|
761
|
+
inv<void>('0x8E036B41C37D0E5F', p0);
|
|
744
762
|
}
|
|
745
763
|
|
|
746
764
|
/**
|
|
747
765
|
* @param p0
|
|
766
|
+
* @param p1
|
|
748
767
|
*/
|
|
749
|
-
static
|
|
750
|
-
inv<void>('
|
|
768
|
+
static N_0x1F6EBD94680252CE(p0: any, p1: any): void {
|
|
769
|
+
inv<void>('0x1F6EBD94680252CE', p0, p1);
|
|
751
770
|
}
|
|
752
771
|
|
|
753
772
|
/**
|
|
754
|
-
* @
|
|
755
|
-
* @param pos1
|
|
756
|
-
* @param p4
|
|
757
|
-
* @param p5
|
|
758
|
-
* @param p6
|
|
759
|
-
* @param p7
|
|
773
|
+
* @returns
|
|
760
774
|
*/
|
|
761
|
-
static
|
|
762
|
-
inv<
|
|
775
|
+
static N_0xB6A80E1E3A5444F1(): any {
|
|
776
|
+
return inv<number>('0xB6A80E1E3A5444F1');
|
|
763
777
|
}
|
|
764
778
|
|
|
765
779
|
/**
|
|
766
780
|
* @returns
|
|
767
781
|
*/
|
|
768
|
-
static
|
|
769
|
-
return
|
|
782
|
+
static getGameplayCamRelativeHeading(): number {
|
|
783
|
+
return inv<number>('0xC4ABF536048998AA', raf());
|
|
770
784
|
}
|
|
771
785
|
|
|
772
786
|
/**
|
|
773
787
|
* @param p0
|
|
774
788
|
*/
|
|
775
|
-
static
|
|
776
|
-
inv<void>('
|
|
789
|
+
static N_0x1FC6C727D30FFDDE(p0: any): void {
|
|
790
|
+
inv<void>('0x1FC6C727D30FFDDE', p0);
|
|
777
791
|
}
|
|
778
792
|
|
|
779
|
-
|
|
780
|
-
|
|
793
|
+
/**
|
|
794
|
+
* @returns
|
|
795
|
+
*/
|
|
796
|
+
static isInCinematicMode(): any {
|
|
797
|
+
return inv<number>('0x74F1D22EFA71FAB8');
|
|
781
798
|
}
|
|
782
799
|
|
|
783
800
|
/**
|
|
801
|
+
* shakeName: REINFORCED_LASSO_STRUGGLE_SHAKE
|
|
802
|
+
* _RES*
|
|
803
|
+
*
|
|
784
804
|
* @param shakeName
|
|
785
805
|
* @param intensity
|
|
786
806
|
*/
|
|
787
|
-
static
|
|
788
|
-
inv<void>('
|
|
807
|
+
static N_0xC3E9E5D4F413B773(shakeName: string | null, intensity: number): void {
|
|
808
|
+
inv<void>('0xC3E9E5D4F413B773', shakeName, f(intensity));
|
|
789
809
|
}
|
|
790
810
|
|
|
791
811
|
/**
|
|
792
|
-
* @
|
|
812
|
+
* @param dictionary
|
|
813
|
+
* @param shotName
|
|
814
|
+
* @param cameraName
|
|
815
|
+
* @param p3
|
|
793
816
|
*/
|
|
794
|
-
static
|
|
795
|
-
|
|
817
|
+
static cinematicLocationTriggerScriptedShotEvent(dictionary: string | null, shotName: string | null, cameraName: string | null, p3: any): void {
|
|
818
|
+
inv<void>('0x02389579A53C3276', dictionary, shotName, cameraName, p3);
|
|
796
819
|
}
|
|
797
820
|
|
|
798
821
|
/**
|
|
799
|
-
* @param
|
|
822
|
+
* @param cameraDictionary
|
|
823
|
+
* @returns
|
|
800
824
|
*/
|
|
801
|
-
static
|
|
802
|
-
inv<
|
|
825
|
+
static isCamDataDictLoaded(cameraDictionary: string | null): any {
|
|
826
|
+
return inv<number>('0xDD0B7C5AE58F721D', cameraDictionary);
|
|
803
827
|
}
|
|
804
828
|
|
|
805
829
|
/**
|
|
806
|
-
*
|
|
807
|
-
*
|
|
808
|
-
* @param toggle
|
|
830
|
+
* Forces camera position to closest 3rd person
|
|
809
831
|
*/
|
|
810
|
-
static
|
|
811
|
-
inv<void>('
|
|
832
|
+
static forceThirdPersonCloseThisFrame(): void {
|
|
833
|
+
inv<void>('0x718C6ECF5E8CBDD4');
|
|
812
834
|
}
|
|
813
835
|
|
|
814
|
-
|
|
815
|
-
|
|
836
|
+
/**
|
|
837
|
+
* @param p0
|
|
838
|
+
* @param p1
|
|
839
|
+
*/
|
|
840
|
+
static N_0x0FF7125F07DEB84F(p0: any, p1: any): void {
|
|
841
|
+
inv<void>('0x0FF7125F07DEB84F', p0, p1);
|
|
816
842
|
}
|
|
817
843
|
|
|
818
844
|
/**
|
|
819
|
-
* @param
|
|
845
|
+
* @param cameraDictionary
|
|
820
846
|
*/
|
|
821
|
-
static
|
|
822
|
-
inv<void>('
|
|
847
|
+
static create2(cameraDictionary: string | null): void {
|
|
848
|
+
inv<void>('0x7B0279170961A73F', cameraDictionary);
|
|
823
849
|
}
|
|
824
850
|
|
|
825
851
|
/**
|
|
826
|
-
*
|
|
852
|
+
* Camera will be or is running
|
|
827
853
|
*/
|
|
828
|
-
static
|
|
829
|
-
|
|
854
|
+
static N_0xC3742F1FDF0A6824(): void {
|
|
855
|
+
inv<void>('0xC3742F1FDF0A6824');
|
|
830
856
|
}
|
|
831
857
|
|
|
832
858
|
/**
|
|
833
|
-
* @
|
|
859
|
+
* @returns
|
|
834
860
|
*/
|
|
835
|
-
static
|
|
836
|
-
inv<
|
|
861
|
+
static getRenderingCam(): Cam | null {
|
|
862
|
+
return createFromHandle<Cam>('Cam', inv<number>('0x03A8931ECC8015D6', rai()));
|
|
837
863
|
}
|
|
838
864
|
|
|
839
865
|
/**
|
|
840
866
|
* @param p0
|
|
841
867
|
*/
|
|
842
|
-
static
|
|
843
|
-
inv<void>('
|
|
868
|
+
static N_0x8505E05FC8822843(p0: any): void {
|
|
869
|
+
inv<void>('0x8505E05FC8822843', p0);
|
|
844
870
|
}
|
|
845
871
|
|
|
846
872
|
/**
|
|
847
|
-
* @
|
|
873
|
+
* @param p0
|
|
848
874
|
*/
|
|
849
|
-
static
|
|
850
|
-
|
|
875
|
+
static N_0x2DD3149DC34A3F4C(p0: any): void {
|
|
876
|
+
inv<void>('0x2DD3149DC34A3F4C', p0);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
static N_0xFC3F638BE2B6BB02(): void {
|
|
880
|
+
inv<void>('0xFC3F638BE2B6BB02');
|
|
851
881
|
}
|
|
852
882
|
|
|
853
883
|
/**
|
|
854
|
-
*
|
|
855
|
-
* *IS_GAMEPLAY**
|
|
884
|
+
* _IS_SCRIPTED_S*
|
|
856
885
|
*
|
|
857
|
-
* @param shakeName
|
|
858
886
|
* @returns
|
|
859
887
|
*/
|
|
860
|
-
static
|
|
861
|
-
return inv<boolean>('
|
|
888
|
+
static N_0x975F6EBB62632FE3(): boolean {
|
|
889
|
+
return !!inv<boolean>('0x975F6EBB62632FE3', rai());
|
|
862
890
|
}
|
|
863
891
|
|
|
864
892
|
/**
|
|
@@ -867,697 +895,669 @@ export class CamStatics {
|
|
|
867
895
|
* @param duration
|
|
868
896
|
* @returns
|
|
869
897
|
*/
|
|
870
|
-
static
|
|
871
|
-
return inv<
|
|
898
|
+
static N_0xEA113BF9B0C0C5D7(dictionary: string | null, shotName: string | null, duration: number): any {
|
|
899
|
+
return inv<number>('0xEA113BF9B0C0C5D7', dictionary, shotName, duration);
|
|
872
900
|
}
|
|
873
901
|
|
|
874
902
|
/**
|
|
875
|
-
* @param
|
|
876
|
-
* @
|
|
903
|
+
* @param cameraDictionary
|
|
904
|
+
* @returns
|
|
877
905
|
*/
|
|
878
|
-
static
|
|
879
|
-
inv<
|
|
906
|
+
static N_0xC285FD21294A1C49(cameraDictionary: string | null): boolean {
|
|
907
|
+
return !!inv<boolean>('0xC285FD21294A1C49', cameraDictionary, rai());
|
|
880
908
|
}
|
|
881
909
|
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
*
|
|
885
|
-
* @param entity
|
|
886
|
-
*/
|
|
887
|
-
static setGameplayCamIgnoreEntityCollisionThisUpdate(entity: Entity): void {
|
|
888
|
-
inv<void>('0xD904F75DBD7AB865', entity.handle);
|
|
910
|
+
static disableCinematicModeThisFrame(): void {
|
|
911
|
+
inv<void>('0x8910C24B7E0046EC');
|
|
889
912
|
}
|
|
890
913
|
|
|
891
914
|
/**
|
|
892
|
-
* @
|
|
915
|
+
* @param p0
|
|
916
|
+
* @param p1
|
|
893
917
|
*/
|
|
894
|
-
static
|
|
895
|
-
|
|
918
|
+
static N_0xF48664E9C83825E3(p0: any, p1: any): void {
|
|
919
|
+
inv<void>('0xF48664E9C83825E3', p0, p1);
|
|
896
920
|
}
|
|
897
921
|
|
|
898
922
|
/**
|
|
899
|
-
*
|
|
900
|
-
*
|
|
901
|
-
* @param ped
|
|
923
|
+
* @returns
|
|
902
924
|
*/
|
|
903
|
-
static
|
|
904
|
-
inv<
|
|
925
|
+
static isGameplayCamLookingBehind(): boolean {
|
|
926
|
+
return !!inv<boolean>('0x8FE0D24FFD04D5A2', rai());
|
|
905
927
|
}
|
|
906
928
|
|
|
907
929
|
/**
|
|
908
|
-
* @param
|
|
909
|
-
* @
|
|
910
|
-
* @param rot
|
|
930
|
+
* @param cameraDictionary
|
|
931
|
+
* @returns
|
|
911
932
|
*/
|
|
912
|
-
static
|
|
913
|
-
inv<
|
|
933
|
+
static isCameraAvailable(cameraDictionary: string | null): any {
|
|
934
|
+
return inv<number>('0x927B810E43E99932', cameraDictionary);
|
|
914
935
|
}
|
|
915
936
|
|
|
916
937
|
/**
|
|
917
|
-
*
|
|
938
|
+
* Old name: _DISABLE_VEHICLE_FIRST_PERSON_CAM_THIS_FRAME
|
|
918
939
|
*/
|
|
919
|
-
static
|
|
920
|
-
inv<void>('
|
|
940
|
+
static disableCinematicBonnetCameraThisUpdate(): void {
|
|
941
|
+
inv<void>('0xA5929C2E57AC90D1');
|
|
921
942
|
}
|
|
922
943
|
|
|
923
944
|
/**
|
|
924
|
-
*
|
|
925
|
-
*
|
|
926
|
-
* @param p0
|
|
945
|
+
* NPLOI_UPDATE__GUN_SPINNING_PREVIEW - Adjusting Camera / Ped Reset Flags This Frame
|
|
946
|
+
* *DISABLE**
|
|
927
947
|
*/
|
|
928
|
-
static
|
|
929
|
-
inv<void>('
|
|
948
|
+
static N_0xA8BA2E0204D8486F(): void {
|
|
949
|
+
inv<void>('0xA8BA2E0204D8486F');
|
|
930
950
|
}
|
|
931
951
|
|
|
932
952
|
/**
|
|
933
|
-
*
|
|
953
|
+
* Forces gameplay cam to specified vehicle as if you were in it
|
|
934
954
|
*
|
|
935
|
-
* @param
|
|
955
|
+
* @param vehicle
|
|
936
956
|
* @param p1
|
|
937
957
|
*/
|
|
938
|
-
static
|
|
939
|
-
inv<void>('
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
/**
|
|
943
|
-
* BOOL param indicates whether the cam should be destroyed if it belongs to the calling script.
|
|
944
|
-
*
|
|
945
|
-
* @param p0
|
|
946
|
-
*/
|
|
947
|
-
static destroyAllCams(p0: boolean): void {
|
|
948
|
-
inv<void>('0x163600D6E136C9F8', p0);
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
/**
|
|
952
|
-
* @param cameraDictionary
|
|
953
|
-
*/
|
|
954
|
-
static destroy(cameraDictionary: string | null): void {
|
|
955
|
-
inv<void>('0x0A5A4F1979ABB40E', cameraDictionary);
|
|
958
|
+
static setInVehicleCamStateThisUpdate(vehicle: Vehicle, p1: number): void {
|
|
959
|
+
inv<void>('0xFA1D5E8D1C3CCD67', vehicle.handle, p1);
|
|
956
960
|
}
|
|
957
961
|
|
|
958
962
|
/**
|
|
963
|
+
* @param camName
|
|
964
|
+
* @param pos
|
|
965
|
+
* @param rot
|
|
966
|
+
* @param fov
|
|
967
|
+
* @param p8
|
|
968
|
+
* @param p9
|
|
959
969
|
* @returns
|
|
960
970
|
*/
|
|
961
|
-
static
|
|
962
|
-
return inv<number>('
|
|
971
|
+
static createCamWithParams(camName: string | null, pos: Vector3, rot: Vector3, fov: number, p8: boolean, p9: number): Cam | null {
|
|
972
|
+
return createFromHandle<Cam>('Cam', inv<number>('0x40C23491CE83708E', camName, f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z), f(fov), p8, p9, rai()));
|
|
963
973
|
}
|
|
964
974
|
|
|
965
975
|
/**
|
|
966
|
-
* Checks data related to Cinematic Cam Locations, if the check fails, the location is being loaded using 0x1B3C2D961F5FC0E1.
|
|
967
|
-
*
|
|
968
|
-
* @param locationDictName
|
|
969
976
|
* @returns
|
|
970
977
|
*/
|
|
971
|
-
static
|
|
972
|
-
return inv<
|
|
978
|
+
static getPhotoModeFocusDistance(): number {
|
|
979
|
+
return inv<number>('0x18FC740FFDCD7454', raf());
|
|
973
980
|
}
|
|
974
981
|
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
*/
|
|
978
|
-
static isGameplayCamRendering(): boolean {
|
|
979
|
-
return inv<boolean>('0x8660EA714834E412', rai());
|
|
982
|
+
static N_0x70A6658D476C6187(): void {
|
|
983
|
+
inv<void>('0x70A6658D476C6187');
|
|
980
984
|
}
|
|
981
985
|
|
|
982
986
|
/**
|
|
987
|
+
* @param dictionary
|
|
988
|
+
* @param shotName
|
|
989
|
+
* @param cameraName
|
|
983
990
|
* @returns
|
|
984
991
|
*/
|
|
985
|
-
static
|
|
986
|
-
return inv<
|
|
992
|
+
static N_0x1D931B7CC0EE3956(dictionary: string | null, shotName: string | null, cameraName: string | null): boolean {
|
|
993
|
+
return !!inv<boolean>('0x1D931B7CC0EE3956', dictionary, shotName, cameraName, rai());
|
|
987
994
|
}
|
|
988
995
|
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
*/
|
|
992
|
-
static getGameplayCamCoord(): Vector3 {
|
|
993
|
-
return Vector3.fromArray(inv<number[]>('0x595320200B98596E', rav()));
|
|
996
|
+
static N_0xCF69EA05CD9C33C9(): void {
|
|
997
|
+
inv<void>('0xCF69EA05CD9C33C9');
|
|
994
998
|
}
|
|
995
999
|
|
|
996
1000
|
/**
|
|
997
|
-
* @param
|
|
1001
|
+
* @param camHash
|
|
1002
|
+
* @param p1
|
|
1003
|
+
* @returns
|
|
998
1004
|
*/
|
|
999
|
-
static
|
|
1000
|
-
inv<
|
|
1005
|
+
static createCamera(camHash: string | number, p1: boolean): Cam | null {
|
|
1006
|
+
return createFromHandle<Cam>('Cam', inv<number>('0x57CDF879EA466C46', _h(camHash), p1, rai()));
|
|
1001
1007
|
}
|
|
1002
1008
|
|
|
1003
1009
|
/**
|
|
1004
|
-
*
|
|
1005
|
-
*
|
|
1010
|
+
* Used in Script Function SHOP_CAMERA_SUPPORT_START_NEW_ORBIT
|
|
1011
|
+
*
|
|
1012
|
+
* @param camInitialZoom
|
|
1006
1013
|
*/
|
|
1007
|
-
static
|
|
1008
|
-
|
|
1014
|
+
static setGameplayCamInitialZoom(camInitialZoom: number): void {
|
|
1015
|
+
inv<void>('0xBCDA0BA8762FACB9', f(camInitialZoom));
|
|
1009
1016
|
}
|
|
1010
1017
|
|
|
1011
1018
|
/**
|
|
1012
|
-
*
|
|
1019
|
+
* Only used in R* Script fm_mission_controller
|
|
1020
|
+
*
|
|
1021
|
+
* @param name
|
|
1022
|
+
* @param entity
|
|
1013
1023
|
*/
|
|
1014
|
-
static
|
|
1015
|
-
|
|
1024
|
+
static cinematicLocationOverrideTargetEntityThisUpdate(name: string | null, entity: Entity): void {
|
|
1025
|
+
inv<void>('0x0B0F914459731F60', name, entity.handle);
|
|
1016
1026
|
}
|
|
1017
1027
|
|
|
1018
1028
|
/**
|
|
1029
|
+
* Used for DUELING_LOCK_CAMERA_CONTROLS_THIS_FRAME: Disabling look/aim controls
|
|
1030
|
+
* *IS_SC(REEN*)* (?)
|
|
1031
|
+
*
|
|
1019
1032
|
* @returns
|
|
1020
1033
|
*/
|
|
1021
|
-
static
|
|
1022
|
-
return inv<
|
|
1034
|
+
static N_0x1204EB53A5FBC63D(): boolean {
|
|
1035
|
+
return !!inv<boolean>('0x1204EB53A5FBC63D', rai());
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
static freezeGameplayCamThisFrame(): void {
|
|
1039
|
+
inv<void>('0x027CAB2C3AF27010');
|
|
1023
1040
|
}
|
|
1024
1041
|
|
|
1025
1042
|
/**
|
|
1026
|
-
*
|
|
1027
|
-
* This native allows to move the gameplay cam with the given speed, enableSlide will allow to move the cam to the slideOffset, enableZoom will allow to move the cam to the zoomOffset. EXAMPLE:
|
|
1028
|
-
* Citizen.InvokeNative(0x066167c63111d8cf,1.0, true, -1.0, true, 2.0)
|
|
1029
|
-
*
|
|
1030
|
-
* @param camSpeed
|
|
1031
|
-
* @param enableSlide
|
|
1032
|
-
* @param slideOffset
|
|
1033
|
-
* @param enableZoom
|
|
1034
|
-
* @param zoomOffset
|
|
1043
|
+
* @returns
|
|
1035
1044
|
*/
|
|
1036
|
-
static
|
|
1037
|
-
inv<
|
|
1045
|
+
static isInterpolatingFromScriptCams(): boolean {
|
|
1046
|
+
return !!inv<boolean>('0x251241CAEC707106', rai());
|
|
1038
1047
|
}
|
|
1039
1048
|
|
|
1040
1049
|
/**
|
|
1041
1050
|
* @param p0
|
|
1042
1051
|
*/
|
|
1043
|
-
static
|
|
1044
|
-
inv<void>('
|
|
1052
|
+
static N_0x9AC65A36D3C0C189(p0: any): void {
|
|
1053
|
+
inv<void>('0x9AC65A36D3C0C189', p0);
|
|
1045
1054
|
}
|
|
1046
1055
|
|
|
1047
1056
|
/**
|
|
1048
|
-
* @param camHash
|
|
1049
|
-
* @param pos
|
|
1050
|
-
* @param rot
|
|
1051
|
-
* @param fov
|
|
1052
|
-
* @param p8
|
|
1053
|
-
* @param p9
|
|
1054
1057
|
* @returns
|
|
1055
1058
|
*/
|
|
1056
|
-
static
|
|
1057
|
-
return
|
|
1059
|
+
static N_0xF824530B612FE0CE(): any {
|
|
1060
|
+
return inv<number>('0xF824530B612FE0CE');
|
|
1058
1061
|
}
|
|
1059
1062
|
|
|
1060
1063
|
/**
|
|
1061
|
-
* @
|
|
1064
|
+
* @returns
|
|
1062
1065
|
*/
|
|
1063
|
-
static
|
|
1064
|
-
inv<
|
|
1066
|
+
static getFirstPersonAimCamZoomFactor(): number {
|
|
1067
|
+
return inv<number>('0xB4132CA1B0EE1365', raf());
|
|
1065
1068
|
}
|
|
1066
1069
|
|
|
1067
1070
|
/**
|
|
1068
|
-
*
|
|
1069
|
-
*
|
|
1070
|
-
* @param p0
|
|
1071
|
+
* @param rotationOrder
|
|
1072
|
+
* @returns
|
|
1071
1073
|
*/
|
|
1072
|
-
static
|
|
1073
|
-
inv<
|
|
1074
|
+
static getGameplayCamRot(rotationOrder: number): Vector3 {
|
|
1075
|
+
return Vector3.fromArray(inv<number[]>('0x0252D2B5582957A6', rotationOrder, rav()));
|
|
1074
1076
|
}
|
|
1075
1077
|
|
|
1076
1078
|
/**
|
|
1077
|
-
* @param
|
|
1079
|
+
* @param camName
|
|
1080
|
+
* @param p1
|
|
1081
|
+
* @returns
|
|
1078
1082
|
*/
|
|
1079
|
-
static
|
|
1080
|
-
inv<
|
|
1083
|
+
static createCam(camName: string | null, p1: boolean): Cam | null {
|
|
1084
|
+
return createFromHandle<Cam>('Cam', inv<number>('0xE72CDBA7F0A02DD6', camName, p1, rai()));
|
|
1081
1085
|
}
|
|
1082
1086
|
|
|
1083
1087
|
/**
|
|
1084
|
-
*
|
|
1088
|
+
* Fades the screen out. duration: The time the fade should take, in milliseconds.
|
|
1085
1089
|
*
|
|
1086
|
-
* @param
|
|
1087
|
-
* @param p1
|
|
1090
|
+
* @param duration
|
|
1088
1091
|
*/
|
|
1089
|
-
static
|
|
1090
|
-
inv<void>('
|
|
1092
|
+
static doScreenFadeOut(duration: number): void {
|
|
1093
|
+
inv<void>('0x40C719A5E410B9E4', duration);
|
|
1091
1094
|
}
|
|
1092
1095
|
|
|
1093
1096
|
/**
|
|
1094
|
-
*
|
|
1095
|
-
*
|
|
1097
|
+
* Used for DUELING_MANAGE_DEATH_CAMERA - Initializing death camera
|
|
1098
|
+
* Params: targetPed = death cam focuses on it
|
|
1099
|
+
*
|
|
1100
|
+
* @param targetPed
|
|
1096
1101
|
*/
|
|
1097
|
-
static
|
|
1098
|
-
inv<void>('
|
|
1102
|
+
static forceCinematicDeathCamOnPed(targetPed: Ped): void {
|
|
1103
|
+
inv<void>('0xE3639DB78B3B5400', targetPed.handle);
|
|
1099
1104
|
}
|
|
1100
1105
|
|
|
1101
1106
|
/**
|
|
1102
|
-
* @
|
|
1107
|
+
* @param p0
|
|
1103
1108
|
*/
|
|
1104
|
-
static
|
|
1105
|
-
|
|
1109
|
+
static N_0xC252C0CC969AF79A(p0: any): void {
|
|
1110
|
+
inv<void>('0xC252C0CC969AF79A', p0);
|
|
1106
1111
|
}
|
|
1107
1112
|
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
*/
|
|
1111
|
-
static N_0x2AB7C81B3F70570C(): any {
|
|
1112
|
-
return inv<number>('0x2AB7C81B3F70570C');
|
|
1113
|
+
static N_0x3C486E334520579D(): void {
|
|
1114
|
+
inv<void>('0x3C486E334520579D');
|
|
1113
1115
|
}
|
|
1114
1116
|
|
|
1115
1117
|
/**
|
|
1118
|
+
* @param dictionary
|
|
1119
|
+
* @param shotName
|
|
1120
|
+
* @param duration
|
|
1116
1121
|
* @returns
|
|
1117
1122
|
*/
|
|
1118
|
-
static
|
|
1119
|
-
return inv<
|
|
1123
|
+
static N_0x465F04F68AD38197(dictionary: string | null, shotName: string | null, duration: number): any {
|
|
1124
|
+
return inv<number>('0x465F04F68AD38197', dictionary, shotName, duration);
|
|
1120
1125
|
}
|
|
1121
1126
|
|
|
1122
1127
|
/**
|
|
1123
|
-
* @
|
|
1128
|
+
* @param p0
|
|
1124
1129
|
*/
|
|
1125
|
-
static
|
|
1126
|
-
|
|
1130
|
+
static N_0xE2BB2D6A9FE2ECDE(p0: any): void {
|
|
1131
|
+
inv<void>('0xE2BB2D6A9FE2ECDE', p0);
|
|
1127
1132
|
}
|
|
1128
1133
|
|
|
1129
1134
|
/**
|
|
1130
|
-
*
|
|
1131
|
-
* Return type char in ida
|
|
1132
|
-
* *SET_GAMEPLAY_HINT**
|
|
1133
|
-
*
|
|
1134
|
-
* @param p0
|
|
1135
|
+
* @param cameraDictionary
|
|
1135
1136
|
*/
|
|
1136
|
-
static
|
|
1137
|
-
inv<void>('
|
|
1137
|
+
static unloadCameraDataDict(cameraDictionary: string | null): void {
|
|
1138
|
+
inv<void>('0x798BE43C9393632B', cameraDictionary);
|
|
1138
1139
|
}
|
|
1139
1140
|
|
|
1140
1141
|
/**
|
|
1142
|
+
* @param sLocationDictName
|
|
1141
1143
|
* @returns
|
|
1142
1144
|
*/
|
|
1143
|
-
static
|
|
1144
|
-
return inv<boolean>('
|
|
1145
|
+
static isCinematicCamLocationLoaded(sLocationDictName: string | null): boolean {
|
|
1146
|
+
return !!inv<boolean>('0xAA235E2F2C09E952', sLocationDictName, rai());
|
|
1145
1147
|
}
|
|
1146
1148
|
|
|
1147
1149
|
/**
|
|
1148
|
-
*
|
|
1150
|
+
* @returns
|
|
1149
1151
|
*/
|
|
1150
|
-
static
|
|
1151
|
-
inv<
|
|
1152
|
+
static N_0x450769C833D58844(): any {
|
|
1153
|
+
return inv<number>('0x450769C833D58844');
|
|
1152
1154
|
}
|
|
1153
1155
|
|
|
1154
1156
|
/**
|
|
1155
|
-
*
|
|
1157
|
+
* @param p0
|
|
1158
|
+
* @param p1
|
|
1159
|
+
* @param p2
|
|
1160
|
+
* @param p3
|
|
1161
|
+
* @param p4
|
|
1162
|
+
* @param p5
|
|
1156
1163
|
*/
|
|
1157
|
-
static
|
|
1158
|
-
inv<void>('
|
|
1164
|
+
static requestLetterBoxOvertime(p0: number, p1: number, p2: boolean, p3: number, p4: boolean, p5: boolean): void {
|
|
1165
|
+
inv<void>('0xE296208C273BD7F0', p0, p1, p2, p3, p4, p5);
|
|
1159
1166
|
}
|
|
1160
1167
|
|
|
1161
1168
|
/**
|
|
1162
|
-
*
|
|
1169
|
+
* NPLOI_UPDATE__GUN_SPINNING_PREVIEW - Adjusting Camera / Ped Reset Flags This Frame
|
|
1170
|
+
* *DISABLE**
|
|
1163
1171
|
*/
|
|
1164
|
-
static
|
|
1165
|
-
inv<void>('
|
|
1172
|
+
static N_0x0F1FFEF5D54AE832(): void {
|
|
1173
|
+
inv<void>('0x0F1FFEF5D54AE832');
|
|
1166
1174
|
}
|
|
1167
1175
|
|
|
1168
1176
|
/**
|
|
1177
|
+
* Returns true if player is in first person
|
|
1178
|
+
*
|
|
1169
1179
|
* @returns
|
|
1170
1180
|
*/
|
|
1171
|
-
static
|
|
1172
|
-
return inv<
|
|
1181
|
+
static isInFullFirstPersonMode(): any {
|
|
1182
|
+
return inv<number>('0xD1BA66940E94C547');
|
|
1173
1183
|
}
|
|
1174
1184
|
|
|
1175
1185
|
/**
|
|
1176
|
-
* @
|
|
1177
|
-
* @param shotName
|
|
1178
|
-
* @param duration
|
|
1186
|
+
* @returns
|
|
1179
1187
|
*/
|
|
1180
|
-
static
|
|
1181
|
-
inv<
|
|
1188
|
+
static isFirstPersonAimCamActive(): boolean {
|
|
1189
|
+
return !!inv<boolean>('0xF63134C54B6EC212', rai());
|
|
1182
1190
|
}
|
|
1183
1191
|
|
|
1184
1192
|
/**
|
|
1185
|
-
* @
|
|
1193
|
+
* @param cameraDictionary
|
|
1186
1194
|
*/
|
|
1187
|
-
static
|
|
1188
|
-
|
|
1195
|
+
static N_0xAC77757C05DE9E5A(cameraDictionary: string | null): void {
|
|
1196
|
+
inv<void>('0xAC77757C05DE9E5A', cameraDictionary);
|
|
1189
1197
|
}
|
|
1190
1198
|
|
|
1191
1199
|
/**
|
|
1192
|
-
* @
|
|
1200
|
+
* @param p0
|
|
1193
1201
|
*/
|
|
1194
|
-
static
|
|
1195
|
-
|
|
1202
|
+
static setGameplayCamMaxMotionBlurStrengthThisUpdate(p0: number): void {
|
|
1203
|
+
inv<void>('0x8459B3E64257B21D', f(p0));
|
|
1196
1204
|
}
|
|
1197
1205
|
|
|
1198
1206
|
/**
|
|
1199
|
-
*
|
|
1200
|
-
*
|
|
1201
|
-
* @param entity
|
|
1202
|
-
* @param offset
|
|
1207
|
+
* @param p0
|
|
1208
|
+
* @param pos1
|
|
1203
1209
|
* @param p4
|
|
1204
1210
|
* @param p5
|
|
1205
1211
|
* @param p6
|
|
1206
1212
|
* @param p7
|
|
1207
|
-
* @param p8
|
|
1208
1213
|
*/
|
|
1209
|
-
static
|
|
1210
|
-
inv<void>('
|
|
1214
|
+
static setGameplayPedHint(p0: Ped, pos1: Vector3, p4: boolean, p5: any, p6: any, p7: any): void {
|
|
1215
|
+
inv<void>('0x90FB951648851733', p0.handle, f(pos1.x), f(pos1.y), f(pos1.z), p4, p5, p6, p7);
|
|
1211
1216
|
}
|
|
1212
1217
|
|
|
1213
1218
|
/**
|
|
1214
|
-
*
|
|
1219
|
+
* @returns
|
|
1215
1220
|
*/
|
|
1216
|
-
static
|
|
1217
|
-
inv<
|
|
1221
|
+
static getFinalRenderedCamCoord(): Vector3 {
|
|
1222
|
+
return Vector3.fromArray(inv<number[]>('0x5352E025EC2B416F', rav()));
|
|
1218
1223
|
}
|
|
1219
1224
|
|
|
1220
1225
|
/**
|
|
1221
|
-
* @
|
|
1226
|
+
* @returns
|
|
1222
1227
|
*/
|
|
1223
|
-
static
|
|
1224
|
-
inv<
|
|
1228
|
+
static N_0x8B1A5FE7E41E52B2(): any {
|
|
1229
|
+
return inv<number>('0x8B1A5FE7E41E52B2');
|
|
1225
1230
|
}
|
|
1226
1231
|
|
|
1227
1232
|
/**
|
|
1228
|
-
*
|
|
1233
|
+
* Forces gameplay cam to specified ped as if you were the ped or spectating it
|
|
1234
|
+
*
|
|
1235
|
+
* @param ped
|
|
1229
1236
|
*/
|
|
1230
|
-
static
|
|
1231
|
-
|
|
1237
|
+
static setGameplayCamFollowPedThisUpdate(ped: Ped): void {
|
|
1238
|
+
inv<void>('0x82E41D6ADE924FCA', ped.handle);
|
|
1232
1239
|
}
|
|
1233
1240
|
|
|
1234
1241
|
/**
|
|
1235
|
-
*
|
|
1236
|
-
*
|
|
1237
|
-
* @param
|
|
1242
|
+
* @param name
|
|
1243
|
+
* @param pos
|
|
1244
|
+
* @param rot
|
|
1238
1245
|
*/
|
|
1239
|
-
static
|
|
1240
|
-
inv<void>('
|
|
1246
|
+
static cinematicLocationSetLocationAndRotation(name: string | null, pos: Vector3, rot: Vector3): void {
|
|
1247
|
+
inv<void>('0x0E94C95EC3185FA9', name, f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z));
|
|
1241
1248
|
}
|
|
1242
1249
|
|
|
1243
1250
|
/**
|
|
1244
|
-
* @param
|
|
1245
|
-
* @param shotName
|
|
1246
|
-
* @param duration
|
|
1251
|
+
* @param camInitialPitch
|
|
1247
1252
|
*/
|
|
1248
|
-
static
|
|
1249
|
-
inv<void>('
|
|
1253
|
+
static setGameplayCamInitialPitch(camInitialPitch: number): void {
|
|
1254
|
+
inv<void>('0x449995EA846D3FC2', f(camInitialPitch));
|
|
1250
1255
|
}
|
|
1251
1256
|
|
|
1252
1257
|
/**
|
|
1253
|
-
*
|
|
1254
|
-
* x = pitches the camera on the x axis.
|
|
1255
|
-
* Value2 = always seems to be hex 0x3F800000 (1.000000 float).
|
|
1258
|
+
* Old name: _SET_GAMEPLAY_HINT_ANIM_OFFSETY
|
|
1256
1259
|
*
|
|
1257
|
-
* @param
|
|
1258
|
-
* @param Value2
|
|
1260
|
+
* @param p0
|
|
1259
1261
|
*/
|
|
1260
|
-
static
|
|
1261
|
-
inv<void>('
|
|
1262
|
+
static setGameplayHintCameraRelativeVerticalOffset(p0: number): void {
|
|
1263
|
+
inv<void>('0x29E74F819150CC32', f(p0));
|
|
1262
1264
|
}
|
|
1263
1265
|
|
|
1264
1266
|
/**
|
|
1265
|
-
*
|
|
1267
|
+
* Old name: _SET_FIRST_PERSON_CAM_PITCH_RANGE
|
|
1266
1268
|
*
|
|
1267
|
-
* @param
|
|
1269
|
+
* @param p0
|
|
1270
|
+
* @param p1
|
|
1268
1271
|
*/
|
|
1269
|
-
static
|
|
1270
|
-
inv<void>('
|
|
1272
|
+
static setFirstPersonAimCamRelativePitchLimitsThisUpdate(p0: number, p1: number): void {
|
|
1273
|
+
inv<void>('0x715B7F5E8BED32A2', f(p0), f(p1));
|
|
1271
1274
|
}
|
|
1272
1275
|
|
|
1273
1276
|
/**
|
|
1277
|
+
* BOOL param indicates whether the cam should be destroyed if it belongs to the calling script.
|
|
1278
|
+
*
|
|
1274
1279
|
* @param p0
|
|
1275
1280
|
*/
|
|
1276
|
-
static
|
|
1277
|
-
inv<void>('
|
|
1281
|
+
static destroyAllCams(p0: boolean): void {
|
|
1282
|
+
inv<void>('0x163600D6E136C9F8', p0);
|
|
1278
1283
|
}
|
|
1279
1284
|
|
|
1280
1285
|
/**
|
|
1281
|
-
* @param
|
|
1282
|
-
* @param p1
|
|
1283
|
-
* @param p2
|
|
1284
|
-
* @param p3
|
|
1285
|
-
* @param p4
|
|
1286
|
-
* @param p5
|
|
1287
|
-
* @param p6
|
|
1288
|
-
* @param p7
|
|
1286
|
+
* @param cameraDictionary
|
|
1289
1287
|
*/
|
|
1290
|
-
static
|
|
1291
|
-
inv<void>('
|
|
1288
|
+
static destroy(cameraDictionary: string | null): void {
|
|
1289
|
+
inv<void>('0x0A5A4F1979ABB40E', cameraDictionary);
|
|
1292
1290
|
}
|
|
1293
1291
|
|
|
1294
1292
|
/**
|
|
1295
|
-
*
|
|
1293
|
+
* @returns
|
|
1296
1294
|
*/
|
|
1297
|
-
static
|
|
1298
|
-
inv<
|
|
1295
|
+
static getPhotoModeDof(): number {
|
|
1296
|
+
return inv<number>('0x4653A741D17F2CD0', raf());
|
|
1299
1297
|
}
|
|
1300
1298
|
|
|
1301
1299
|
/**
|
|
1302
|
-
*
|
|
1303
|
-
* Params: p1 seems to be 0 or 1 in R* Scripts
|
|
1300
|
+
* Checks data related to Cinematic Cam Locations, if the check fails, the location is being loaded using 0x1B3C2D961F5FC0E1.
|
|
1304
1301
|
*
|
|
1305
|
-
* @param
|
|
1306
|
-
* @
|
|
1302
|
+
* @param locationDictName
|
|
1303
|
+
* @returns
|
|
1307
1304
|
*/
|
|
1308
|
-
static
|
|
1309
|
-
inv<
|
|
1305
|
+
static isCinematicCamLocationLoaded2(locationDictName: string | null): boolean {
|
|
1306
|
+
return !!inv<boolean>('0x595550376B7EA230', locationDictName, rai());
|
|
1310
1307
|
}
|
|
1311
1308
|
|
|
1312
|
-
|
|
1313
|
-
|
|
1309
|
+
/**
|
|
1310
|
+
* @returns
|
|
1311
|
+
*/
|
|
1312
|
+
static isGameplayCamRendering(): boolean {
|
|
1313
|
+
return !!inv<boolean>('0x8660EA714834E412', rai());
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
1316
|
-
|
|
1317
|
-
|
|
1316
|
+
/**
|
|
1317
|
+
* @returns
|
|
1318
|
+
*/
|
|
1319
|
+
static N_0xEF9A3132A0AA6B19(): any {
|
|
1320
|
+
return inv<number>('0xEF9A3132A0AA6B19');
|
|
1318
1321
|
}
|
|
1319
1322
|
|
|
1320
1323
|
/**
|
|
1321
|
-
* @
|
|
1324
|
+
* @returns
|
|
1322
1325
|
*/
|
|
1323
|
-
static
|
|
1324
|
-
inv<
|
|
1326
|
+
static getGameplayCamCoord(): Vector3 {
|
|
1327
|
+
return Vector3.fromArray(inv<number[]>('0x595320200B98596E', rav()));
|
|
1325
1328
|
}
|
|
1326
1329
|
|
|
1327
1330
|
/**
|
|
1328
|
-
*
|
|
1329
|
-
*
|
|
1330
|
-
* @param shakeName
|
|
1331
|
-
* @param intensity
|
|
1331
|
+
* @param p0
|
|
1332
1332
|
*/
|
|
1333
|
-
static
|
|
1334
|
-
inv<void>('
|
|
1333
|
+
static setCinematicButtonActive(p0: boolean): void {
|
|
1334
|
+
inv<void>('0xB90411F480457A6C', p0);
|
|
1335
1335
|
}
|
|
1336
1336
|
|
|
1337
1337
|
/**
|
|
1338
|
+
* @param rotationOrder
|
|
1338
1339
|
* @returns
|
|
1339
1340
|
*/
|
|
1340
|
-
static
|
|
1341
|
-
return inv<number>('
|
|
1341
|
+
static getFinalRenderedCamRot(rotationOrder: number): Vector3 {
|
|
1342
|
+
return Vector3.fromArray(inv<number[]>('0x602685BD85DD26CA', rotationOrder, rav()));
|
|
1342
1343
|
}
|
|
1343
1344
|
|
|
1344
1345
|
/**
|
|
1345
|
-
*
|
|
1346
|
-
* p0: struct<32> /*256*\/
|
|
1347
|
-
*
|
|
1348
|
-
* @returns p0
|
|
1346
|
+
* @returns
|
|
1349
1347
|
*/
|
|
1350
|
-
static
|
|
1351
|
-
|
|
1352
|
-
return result;
|
|
1348
|
+
static N_0x1811A02277A9E49D(): boolean {
|
|
1349
|
+
return !!inv<boolean>('0x1811A02277A9E49D', rai());
|
|
1353
1350
|
}
|
|
1354
1351
|
|
|
1355
1352
|
/**
|
|
1356
|
-
* @
|
|
1357
|
-
* @param p1
|
|
1353
|
+
* @returns
|
|
1358
1354
|
*/
|
|
1359
|
-
static
|
|
1360
|
-
inv<
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
static N_0x06557F6D96C86881(): void {
|
|
1364
|
-
inv<void>('0x06557F6D96C86881');
|
|
1355
|
+
static N_0x80D7A3E39B120BC4(): any {
|
|
1356
|
+
return inv<number>('0x80D7A3E39B120BC4');
|
|
1365
1357
|
}
|
|
1366
1358
|
|
|
1367
1359
|
/**
|
|
1368
|
-
*
|
|
1369
|
-
*
|
|
1360
|
+
* Not official name
|
|
1361
|
+
* This native allows to move the gameplay cam with the given speed, enableSlide will allow to move the cam to the slideOffset, enableZoom will allow to move the cam to the zoomOffset. EXAMPLE:
|
|
1362
|
+
* Citizen.InvokeNative(0x066167c63111d8cf,1.0, true, -1.0, true, 2.0)
|
|
1370
1363
|
*
|
|
1371
|
-
* @param
|
|
1372
|
-
* @param
|
|
1364
|
+
* @param camSpeed
|
|
1365
|
+
* @param enableSlide
|
|
1366
|
+
* @param slideOffset
|
|
1367
|
+
* @param enableZoom
|
|
1368
|
+
* @param zoomOffset
|
|
1373
1369
|
*/
|
|
1374
|
-
static
|
|
1375
|
-
inv<void>('
|
|
1370
|
+
static setGameplayCamParamsThisUpdate(camSpeed: number, enableSlide: boolean, slideOffset: number, enableZoom: boolean, zoomOffset: number): void {
|
|
1371
|
+
inv<void>('0x066167C63111D8CF', f(camSpeed), enableSlide, f(slideOffset), enableZoom, f(zoomOffset));
|
|
1376
1372
|
}
|
|
1377
1373
|
|
|
1378
1374
|
/**
|
|
1379
1375
|
* @param p0
|
|
1380
1376
|
*/
|
|
1381
|
-
static
|
|
1382
|
-
inv<void>('
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
static N_0x04084490CC302CFB(): void {
|
|
1386
|
-
inv<void>('0x04084490CC302CFB');
|
|
1377
|
+
static stopCodeGameplayHint(p0: boolean): void {
|
|
1378
|
+
inv<void>('0x93759A83D0D844E7', p0);
|
|
1387
1379
|
}
|
|
1388
1380
|
|
|
1389
1381
|
/**
|
|
1390
|
-
* @param
|
|
1382
|
+
* @param camHash
|
|
1383
|
+
* @param pos
|
|
1384
|
+
* @param rot
|
|
1385
|
+
* @param fov
|
|
1386
|
+
* @param p8
|
|
1387
|
+
* @param p9
|
|
1388
|
+
* @returns
|
|
1391
1389
|
*/
|
|
1392
|
-
static
|
|
1393
|
-
inv<
|
|
1390
|
+
static createCameraWithParams(camHash: string | number, pos: Vector3, rot: Vector3, fov: number, p8: boolean, p9: any): Cam | null {
|
|
1391
|
+
return createFromHandle<Cam>('Cam', inv<number>('0x98B99B9F27E2D60B', _h(camHash), f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z), f(fov), p8, p9, rai()));
|
|
1394
1392
|
}
|
|
1395
1393
|
|
|
1396
1394
|
/**
|
|
1397
|
-
* Creates Cinematic Black Bars (at top and bottom)
|
|
1398
|
-
* Disable instantly: false/false, Enable instantly: true/true
|
|
1399
|
-
*
|
|
1400
1395
|
* @param p0
|
|
1401
|
-
* @param p1
|
|
1402
1396
|
*/
|
|
1403
|
-
static
|
|
1404
|
-
inv<void>('
|
|
1397
|
+
static setCinematicModeActive(p0: boolean): void {
|
|
1398
|
+
inv<void>('0xCE7A90B160F75046', p0);
|
|
1405
1399
|
}
|
|
1406
1400
|
|
|
1407
1401
|
/**
|
|
1408
|
-
*
|
|
1402
|
+
* Old name: _SET_GAMEPLAY_HINT_ANIM_OFFSETX
|
|
1403
|
+
*
|
|
1404
|
+
* @param p0
|
|
1409
1405
|
*/
|
|
1410
|
-
static
|
|
1411
|
-
inv<void>('
|
|
1406
|
+
static setGameplayHintCameraRelativeSideOffset(p0: number): void {
|
|
1407
|
+
inv<void>('0xF86B6F93727C59C9', f(p0));
|
|
1412
1408
|
}
|
|
1413
1409
|
|
|
1414
1410
|
/**
|
|
1415
|
-
* @
|
|
1411
|
+
* @param p0
|
|
1416
1412
|
*/
|
|
1417
|
-
static
|
|
1418
|
-
|
|
1413
|
+
static N_0x6519238858AF5479(p0: any): void {
|
|
1414
|
+
inv<void>('0x6519238858AF5479', p0);
|
|
1419
1415
|
}
|
|
1420
1416
|
|
|
1421
1417
|
/**
|
|
1422
|
-
*
|
|
1418
|
+
* Sets the camera position relative to heading in float from -360 to +360. Heading is always 0 in aiming camera.
|
|
1423
1419
|
*
|
|
1424
|
-
* @param
|
|
1420
|
+
* @param heading
|
|
1421
|
+
* @param p1
|
|
1425
1422
|
*/
|
|
1426
|
-
static
|
|
1427
|
-
inv<void>('
|
|
1423
|
+
static setGameplayCamRelativeHeading(heading: number, p1: number): void {
|
|
1424
|
+
inv<void>('0x5D1EB123EAC5D071', f(heading), f(p1));
|
|
1428
1425
|
}
|
|
1429
1426
|
|
|
1430
1427
|
/**
|
|
1431
|
-
*
|
|
1432
|
-
* script_mp_rel: DRUNK_SHAKE, REINFORCED_LASSO_STRUGGLE_SHAKE
|
|
1433
|
-
* _STOP_GAMEPLAY_CAM* - _STOP_I*
|
|
1434
|
-
*
|
|
1435
|
-
* @param shakeName
|
|
1428
|
+
* @param p0
|
|
1436
1429
|
* @param p1
|
|
1437
1430
|
*/
|
|
1438
|
-
static
|
|
1439
|
-
inv<void>('
|
|
1431
|
+
static N_0x4D2F46D1B28D90FB(p0: any, p1: any): void {
|
|
1432
|
+
inv<void>('0x4D2F46D1B28D90FB', p0, p1);
|
|
1440
1433
|
}
|
|
1441
1434
|
|
|
1442
1435
|
/**
|
|
1443
|
-
* @
|
|
1436
|
+
* @returns
|
|
1444
1437
|
*/
|
|
1445
|
-
static
|
|
1446
|
-
inv<
|
|
1438
|
+
static getPhotoModeFocalLength(): number {
|
|
1439
|
+
return inv<number>('0x2533BAFFBE737E54', raf());
|
|
1447
1440
|
}
|
|
1448
1441
|
|
|
1449
1442
|
/**
|
|
1450
|
-
*
|
|
1443
|
+
* @returns
|
|
1451
1444
|
*/
|
|
1452
|
-
static
|
|
1453
|
-
inv<
|
|
1445
|
+
static N_0x2AB7C81B3F70570C(): any {
|
|
1446
|
+
return inv<number>('0x2AB7C81B3F70570C');
|
|
1454
1447
|
}
|
|
1455
1448
|
|
|
1456
|
-
static
|
|
1457
|
-
inv<void>('
|
|
1449
|
+
static forceLetterBoxThisUpdate(): void {
|
|
1450
|
+
inv<void>('0xC64ABC0676AF262B');
|
|
1458
1451
|
}
|
|
1459
1452
|
|
|
1460
1453
|
/**
|
|
1461
|
-
* Old name: _ANIMATE_GAMEPLAY_CAM_ZOOM
|
|
1462
|
-
*
|
|
1463
1454
|
* @param p0
|
|
1464
|
-
* @param
|
|
1455
|
+
* @param p1
|
|
1456
|
+
* @param p2
|
|
1457
|
+
* @param p3
|
|
1458
|
+
* @param p4
|
|
1459
|
+
* @param p5
|
|
1460
|
+
* @param p6
|
|
1461
|
+
* @param p7
|
|
1465
1462
|
*/
|
|
1466
|
-
static
|
|
1467
|
-
inv<void>('
|
|
1463
|
+
static setGameplayVehicleHint(p0: any, p1: number, p2: number, p3: number, p4: boolean, p5: any, p6: any, p7: any): void {
|
|
1464
|
+
inv<void>('0xE2B2BB7DAC280515', p0, f(p1), f(p2), f(p3), p4, p5, p6, p7);
|
|
1468
1465
|
}
|
|
1469
1466
|
|
|
1470
1467
|
/**
|
|
1471
|
-
*
|
|
1468
|
+
* Used for DUELING_MANAGE_DEATH_CAMERA - Initializing death camera
|
|
1469
|
+
* _SET_P* - _SET_S*
|
|
1472
1470
|
*
|
|
1473
|
-
* @
|
|
1471
|
+
* @param p0
|
|
1474
1472
|
*/
|
|
1475
|
-
static
|
|
1476
|
-
|
|
1473
|
+
static setStartCinematicDeathCam(p0: boolean): void {
|
|
1474
|
+
inv<void>('0x6E969927CF632608', p0);
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
static N_0x6CAB0BA160B168D2(): void {
|
|
1478
|
+
inv<void>('0x6CAB0BA160B168D2');
|
|
1477
1479
|
}
|
|
1478
1480
|
|
|
1479
1481
|
/**
|
|
1480
1482
|
* @returns
|
|
1481
1483
|
*/
|
|
1482
|
-
static
|
|
1483
|
-
return inv<
|
|
1484
|
+
static isScreenFadingOut(): boolean {
|
|
1485
|
+
return !!inv<boolean>('0x02F39BEFE7B88D00', rai());
|
|
1484
1486
|
}
|
|
1485
1487
|
|
|
1486
1488
|
/**
|
|
1487
1489
|
* @param p0
|
|
1488
1490
|
* @param p1
|
|
1491
|
+
* @returns
|
|
1489
1492
|
*/
|
|
1490
|
-
static
|
|
1491
|
-
inv<
|
|
1493
|
+
static N_0x4138EE36BC3DC0A7(p0: any, p1: any): any {
|
|
1494
|
+
return inv<number>('0x4138EE36BC3DC0A7', p0, p1);
|
|
1492
1495
|
}
|
|
1493
1496
|
|
|
1494
1497
|
/**
|
|
1495
|
-
*
|
|
1498
|
+
* nullsub, doesn't do anything
|
|
1496
1499
|
*/
|
|
1497
|
-
static
|
|
1498
|
-
inv<void>('
|
|
1500
|
+
static disableFirstPersonFlashEffectThisUpdate(): void {
|
|
1501
|
+
inv<void>('0x77D65669A05D1A1A');
|
|
1499
1502
|
}
|
|
1500
1503
|
|
|
1501
1504
|
/**
|
|
1502
|
-
*
|
|
1505
|
+
* Returns true if first person camera is active in saloon1.ysc
|
|
1506
|
+
*
|
|
1507
|
+
* @returns
|
|
1503
1508
|
*/
|
|
1504
|
-
static
|
|
1505
|
-
inv<
|
|
1509
|
+
static forceFirstPersonCamThisFrame(): any {
|
|
1510
|
+
return inv<number>('0x90DA5BA5C2635416');
|
|
1506
1511
|
}
|
|
1507
1512
|
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
* @param radius
|
|
1511
|
-
* @returns
|
|
1512
|
-
*/
|
|
1513
|
-
static isSphereVisible(pos: Vector3, radius: number): boolean {
|
|
1514
|
-
return inv<boolean>('0x2E941B5FFA2989C6', f(pos.x), f(pos.y), f(pos.z), f(radius), rai());
|
|
1513
|
+
static N_0x18C3DFAC458783BB(): void {
|
|
1514
|
+
inv<void>('0x18C3DFAC458783BB');
|
|
1515
1515
|
}
|
|
1516
1516
|
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
*/
|
|
1520
|
-
static setGameplayCamInitialHeading(camInitialHeading: number): void {
|
|
1521
|
-
inv<void>('0x6C1053C433A573CF', f(camInitialHeading));
|
|
1517
|
+
static N_0x16E9ABDD34DDD931(): void {
|
|
1518
|
+
inv<void>('0x16E9ABDD34DDD931');
|
|
1522
1519
|
}
|
|
1523
1520
|
|
|
1524
1521
|
/**
|
|
1525
|
-
* @param
|
|
1522
|
+
* @param cameraDictionary
|
|
1526
1523
|
*/
|
|
1527
|
-
static
|
|
1528
|
-
inv<void>('
|
|
1524
|
+
static create(cameraDictionary: string | null): void {
|
|
1525
|
+
inv<void>('0xB8B207C34285E978', cameraDictionary);
|
|
1529
1526
|
}
|
|
1530
1527
|
|
|
1531
1528
|
/**
|
|
1532
1529
|
* @param p0
|
|
1533
1530
|
*/
|
|
1534
|
-
static
|
|
1535
|
-
inv<void>('
|
|
1531
|
+
static N_0x5B637D6F3B67716A(p0: any): void {
|
|
1532
|
+
inv<void>('0x5B637D6F3B67716A', p0);
|
|
1536
1533
|
}
|
|
1537
1534
|
|
|
1538
1535
|
/**
|
|
1539
|
-
*
|
|
1540
|
-
* maximum: Degrees between -90f and 90f. Clamps the gameplay camera's current pitch. Eg. _CLAMP_GAMEPLAY_CAM_PITCH(0.0f, 0.0f) will set the vertical angle directly behind the player. Old name: _CLAMP_GAMEPLAY_CAM_PITCH
|
|
1541
|
-
*
|
|
1542
|
-
* @param minimum
|
|
1543
|
-
* @param maximum
|
|
1536
|
+
* @returns
|
|
1544
1537
|
*/
|
|
1545
|
-
static
|
|
1546
|
-
inv<
|
|
1538
|
+
static isCinematicCamRendering(): boolean {
|
|
1539
|
+
return !!inv<boolean>('0xBF7C780731AADBF8', rai());
|
|
1547
1540
|
}
|
|
1548
1541
|
|
|
1549
1542
|
/**
|
|
1550
|
-
* @
|
|
1543
|
+
* @param p0
|
|
1551
1544
|
*/
|
|
1552
|
-
static
|
|
1553
|
-
|
|
1545
|
+
static setScriptedCameraIsFirstPersonThisFrame(p0: boolean): void {
|
|
1546
|
+
inv<void>('0x1DD95A8D6B24A0C9', p0);
|
|
1554
1547
|
}
|
|
1555
1548
|
|
|
1556
1549
|
/**
|
|
1557
1550
|
* @param p0
|
|
1551
|
+
* @param p1
|
|
1552
|
+
* @param p2
|
|
1553
|
+
* @returns
|
|
1558
1554
|
*/
|
|
1559
|
-
static
|
|
1560
|
-
inv<
|
|
1555
|
+
static isFirstPersonCameraActive(p0: any, p1: any, p2: any): boolean {
|
|
1556
|
+
return !!inv<boolean>('0xA24C1D341C6E0D53', p0, p1, p2, rai());
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
static N_0x3C8F74E8FE751614(): void {
|
|
1560
|
+
inv<void>('0x3C8F74E8FE751614');
|
|
1561
1561
|
}
|
|
1562
1562
|
|
|
1563
1563
|
}
|