@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
package/dist/classes/Player.js
CHANGED
|
@@ -9,185 +9,58 @@ export class Player {
|
|
|
9
9
|
return handle === 0 ? null : new Player(handle);
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Returns true if the player is riding a train.
|
|
13
|
-
*
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
isRidingTrain() {
|
|
17
|
-
return inv('0x2FB0ACADA6A238DD', this.handle, rai());
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Sets whether all trails are hidden during Eagle Eye mode.
|
|
21
|
-
*
|
|
22
|
-
* @param hide
|
|
23
|
-
*/
|
|
24
|
-
eagleEyeSetHideAllTrails(hide) {
|
|
25
|
-
inv('0x330CA55A3647FA1C', this.handle, hide);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* _IS_PLAYER_S* - _IS_PLAYER_T*
|
|
29
|
-
*
|
|
30
|
-
* @returns
|
|
31
|
-
*/
|
|
32
|
-
N_0x621D1B289CAF5978() {
|
|
33
|
-
return inv('0x621D1B289CAF5978', this.handle, rai());
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Decreases the damage the player receives while on horseback
|
|
37
|
-
* Previous name: _SET_RECEIVED_HORSEBACK_DAMAGE_DECREASE
|
|
38
|
-
*
|
|
39
|
-
* @param damageDecrease
|
|
40
|
-
*/
|
|
41
|
-
setReceivedDamageTakenOnHorsebackModifier(damageDecrease) {
|
|
42
|
-
inv('0xB427911EA6DFFEF3', this.handle, f(damageDecrease));
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @param toggle
|
|
46
|
-
*/
|
|
47
|
-
setCanMercyKill(toggle) {
|
|
48
|
-
inv('0x39363DFD04E91496', this.handle, toggle);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* @param p1
|
|
52
|
-
* @param discoveryHash
|
|
53
|
-
* @returns
|
|
54
|
-
*/
|
|
55
|
-
getHasDiscoveredCharacterNameSp(p1, discoveryHash) {
|
|
56
|
-
return inv('0x0772F87D7B07719A', this.handle, p1, _h(discoveryHash));
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* @param speech
|
|
60
|
-
*/
|
|
61
|
-
setInteractionPositiveResponse(speech) {
|
|
62
|
-
inv('0xC6366A585659D15C', this.handle, speech);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* This can be between 1.0f - 50.0f
|
|
66
|
-
*
|
|
67
|
-
* @param multiplier
|
|
68
|
-
*/
|
|
69
|
-
setAirDragMultiplierForPlayersVehicle(multiplier) {
|
|
70
|
-
inv('0x5DA6500FE849DA16', this.handle, f(multiplier));
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Only applies to HUNTERCART01
|
|
74
|
-
*
|
|
75
|
-
* @param wagon
|
|
76
|
-
*/
|
|
77
|
-
setHuntingWagon(wagon) {
|
|
78
|
-
inv('0x6A4404BDFA62CE2C', this.handle, wagon.handle);
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Applies a customizable aura effect to nearby entities when Deadeye is active, with control over aura intensity and additional behavior based on a flag parameter.
|
|
82
|
-
*
|
|
83
|
-
* @param p1
|
|
84
12
|
* @param p2
|
|
85
13
|
* @param p3
|
|
86
|
-
* @
|
|
87
|
-
* @param flag
|
|
88
|
-
*/
|
|
89
|
-
setDeadeyeEntityAuraIntensityWithFlag(p1, p2, p3, intensity, flag) {
|
|
90
|
-
inv('0x131E294EF60160DF', this.handle, f(p1), f(p2), f(p3), f(intensity), flag);
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* @param target
|
|
94
|
-
*/
|
|
95
|
-
setBountyTarget(target) {
|
|
96
|
-
inv('0x6ADF821FBF21920E', this.handle, target.handle);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Retrieves whether all trails are currently hidden during Eagle Eye mode for the specified player.
|
|
100
|
-
*
|
|
101
|
-
* @returns
|
|
102
|
-
*/
|
|
103
|
-
eagleEyeAreAllTrailsHidden() {
|
|
104
|
-
return inv('0xA62BBAAE67A05BB0', this.handle);
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* @returns
|
|
14
|
+
* @returns outEntity
|
|
108
15
|
*/
|
|
109
|
-
|
|
110
|
-
|
|
16
|
+
getInteractionTargetEntity(p2, p3) {
|
|
17
|
+
const result = inv('0x3EE1F7A8C32F24E1', this.handle, pvi(), p2, p3);
|
|
18
|
+
return [result[0], createFromHandle('Entity', result[1])];
|
|
111
19
|
}
|
|
112
20
|
/**
|
|
113
|
-
* @param weaponGroup
|
|
114
21
|
* @param toggle
|
|
115
22
|
*/
|
|
116
|
-
|
|
117
|
-
inv('
|
|
23
|
+
set DeadeyeTaggingEnabled(toggle) {
|
|
24
|
+
inv('0x6B5DDFB967E5073D', this.handle, toggle);
|
|
118
25
|
}
|
|
119
26
|
/**
|
|
120
|
-
* Returns false if PromptType is enabled
|
|
121
|
-
* Params: See 0x0751D461F06E41CE
|
|
122
|
-
*
|
|
123
|
-
* @param promptType
|
|
124
|
-
* @param promptMode
|
|
125
27
|
* @returns
|
|
126
28
|
*/
|
|
127
|
-
|
|
128
|
-
return inv('
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* @param toggle
|
|
132
|
-
*/
|
|
133
|
-
setLockonToFriendlyPlayers(toggle) {
|
|
134
|
-
inv('0x4A056257802DD3E5', this.handle, toggle);
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Activates the Surrender prompt for the specified player in the current frame.
|
|
138
|
-
*
|
|
139
|
-
* @param targetPed
|
|
140
|
-
* @param promptOrder
|
|
141
|
-
* @param p3
|
|
142
|
-
*/
|
|
143
|
-
setCooperatePromptThisFrame(targetPed, promptOrder, p3) {
|
|
144
|
-
inv('0xCBB54CC7FFFFAB86', this.handle, targetPed.handle, promptOrder, p3);
|
|
29
|
+
get Stamina() {
|
|
30
|
+
return inv('0x0FF421E467373FCF', this.handle, raf());
|
|
145
31
|
}
|
|
146
32
|
/**
|
|
147
|
-
*
|
|
148
|
-
* https://github.com/femga/rdr3_discoveries/tree/master/AI/PLAYER_RESET_FLAGS
|
|
149
|
-
*
|
|
150
|
-
* @param playerResetFlag
|
|
151
|
-
* @param p2
|
|
33
|
+
* @param modifier
|
|
152
34
|
*/
|
|
153
|
-
|
|
154
|
-
inv('
|
|
35
|
+
set MeleeWeaponDamageModifier(modifier) {
|
|
36
|
+
inv('0xE4CB5A3F18170381', this.handle, f(modifier));
|
|
155
37
|
}
|
|
156
38
|
/**
|
|
157
39
|
* @returns
|
|
158
40
|
*/
|
|
159
|
-
|
|
160
|
-
return inv('
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* @param closeRangeLowerBound
|
|
164
|
-
* @param closeRangeUpperBound
|
|
165
|
-
*/
|
|
166
|
-
setDamageCloseDistanceBonus(closeRangeLowerBound, closeRangeUpperBound) {
|
|
167
|
-
inv('0x7761A30432C91297', this.handle, f(closeRangeLowerBound), f(closeRangeUpperBound));
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* @param multiplier
|
|
171
|
-
*/
|
|
172
|
-
setSneakingNoiseMultiplier(multiplier) {
|
|
173
|
-
inv('0x4DE44FA389DCA565', this.handle, f(multiplier));
|
|
41
|
+
hasBeenSpottedInStolenVehicle() {
|
|
42
|
+
return !!inv('0xC932F57F31EA9152', this.handle, rai());
|
|
174
43
|
}
|
|
175
44
|
/**
|
|
176
|
-
*
|
|
45
|
+
* Enables or disables the Pick Up prompt for a hat on the ground for the specified player. When set to true, the player will see a prompt to pick up the hat if they are near it.
|
|
177
46
|
*
|
|
178
|
-
* @param
|
|
179
|
-
* @param bRestrictToThisScript
|
|
47
|
+
* @param canPickup
|
|
180
48
|
*/
|
|
181
|
-
|
|
182
|
-
inv('
|
|
49
|
+
set CanPickupHat(canPickup) {
|
|
50
|
+
inv('0xACA45DDCEF6071C4', this.handle, canPickup);
|
|
183
51
|
}
|
|
184
52
|
/**
|
|
185
|
-
*
|
|
53
|
+
* Sets the aura color for entities that the player can target in Deadeye mode, based on a specific hash value. This Native was previously named `SetPlayerStatFlagHash`, but it has been re-evaluated and renamed to better reflect its function in controlling the Deadeye aura color for targeted entities
|
|
54
|
+
* some colors
|
|
55
|
+
* 0: Default aura
|
|
56
|
+
* 1014693585
|
|
57
|
+
* 1936842089
|
|
58
|
+
* 1979474018
|
|
186
59
|
*
|
|
187
|
-
* @
|
|
60
|
+
* @param auraColorHash
|
|
188
61
|
*/
|
|
189
|
-
|
|
190
|
-
|
|
62
|
+
set DeadEyeAuraByHash(auraColorHash) {
|
|
63
|
+
inv('0x768E81AE285A4B67', this.handle, _h(auraColorHash));
|
|
191
64
|
}
|
|
192
65
|
/**
|
|
193
66
|
* @param disabled
|
|
@@ -220,7 +93,7 @@ export class Player {
|
|
|
220
93
|
/**
|
|
221
94
|
* @returns
|
|
222
95
|
*/
|
|
223
|
-
|
|
96
|
+
get CachedDeadEyeAmount() {
|
|
224
97
|
return inv('0xDF66A37936D5F3D9', this.handle, raf());
|
|
225
98
|
}
|
|
226
99
|
clearHasDamagedAtLeastOnePed() {
|
|
@@ -232,14 +105,14 @@ export class Player {
|
|
|
232
105
|
* @returns
|
|
233
106
|
*/
|
|
234
107
|
isTargettingEntity(entity, p2) {
|
|
235
|
-
return inv('0x27F89FDC16688A7A', this.handle, entity.handle, p2, rai());
|
|
108
|
+
return !!inv('0x27F89FDC16688A7A', this.handle, entity.handle, p2, rai());
|
|
236
109
|
}
|
|
237
110
|
/**
|
|
238
111
|
* If player has less Dead Eye than required, Dead Eye cant be triggered.
|
|
239
112
|
*
|
|
240
113
|
* @returns
|
|
241
114
|
*/
|
|
242
|
-
|
|
115
|
+
get RequiredDeadEyeAmount() {
|
|
243
116
|
return inv('0x811A748B1BE231BA', this.handle, raf());
|
|
244
117
|
}
|
|
245
118
|
/**
|
|
@@ -260,7 +133,7 @@ export class Player {
|
|
|
260
133
|
/**
|
|
261
134
|
* @param toggle
|
|
262
135
|
*/
|
|
263
|
-
|
|
136
|
+
set Lockon(toggle) {
|
|
264
137
|
inv('0x462AA1973CBBA75E', this.handle, toggle);
|
|
265
138
|
}
|
|
266
139
|
/**
|
|
@@ -276,7 +149,7 @@ export class Player {
|
|
|
276
149
|
/**
|
|
277
150
|
* @param closeDamageBonus
|
|
278
151
|
*/
|
|
279
|
-
|
|
152
|
+
set DamageCloseDistanceBonusTotal(closeDamageBonus) {
|
|
280
153
|
inv('0x5006C36652D6EC56', this.handle, f(closeDamageBonus));
|
|
281
154
|
}
|
|
282
155
|
/**
|
|
@@ -291,7 +164,7 @@ export class Player {
|
|
|
291
164
|
/**
|
|
292
165
|
* @param multiplier
|
|
293
166
|
*/
|
|
294
|
-
|
|
167
|
+
set StaminaSprintDepletionMultiplier(multiplier) {
|
|
295
168
|
inv('0xBBADFB5E5E5766FB', this.handle, f(multiplier));
|
|
296
169
|
}
|
|
297
170
|
/**
|
|
@@ -305,26 +178,26 @@ export class Player {
|
|
|
305
178
|
*
|
|
306
179
|
* @returns entity
|
|
307
180
|
*/
|
|
308
|
-
|
|
181
|
+
get InteractionAimEntity() {
|
|
309
182
|
const result = inv('0xBEA3A6E5F5F79A6F', this.handle, pvi(), rai());
|
|
310
183
|
return [!!result[0], createFromHandle('Entity', result[1])];
|
|
311
184
|
}
|
|
312
185
|
/**
|
|
313
186
|
* @param modifier
|
|
314
187
|
*/
|
|
315
|
-
|
|
188
|
+
set WeaponDefenseModifier(modifier) {
|
|
316
189
|
inv('0xD15CC2D493160BE3', this.handle, f(modifier));
|
|
317
190
|
}
|
|
318
191
|
/**
|
|
319
192
|
* @returns
|
|
320
193
|
*/
|
|
321
194
|
hasDamagedAtLeastOneNonAnimalPed() {
|
|
322
|
-
return inv('0x16C8D205DD5A2E90', this.handle, rai());
|
|
195
|
+
return !!inv('0x16C8D205DD5A2E90', this.handle, rai());
|
|
323
196
|
}
|
|
324
197
|
/**
|
|
325
198
|
* @returns
|
|
326
199
|
*/
|
|
327
|
-
|
|
200
|
+
get DeadeyeAbilityLevel() {
|
|
328
201
|
return inv('0xCCE7C695C164C35F', this.handle, rai());
|
|
329
202
|
}
|
|
330
203
|
/**
|
|
@@ -332,8 +205,8 @@ export class Player {
|
|
|
332
205
|
*
|
|
333
206
|
* @returns
|
|
334
207
|
*/
|
|
335
|
-
|
|
336
|
-
return inv('0x2009F8AB7A5E9D6D', this.handle, rai());
|
|
208
|
+
get IsOnMountLockonEntity() {
|
|
209
|
+
return !!inv('0x2009F8AB7A5E9D6D', this.handle, rai());
|
|
337
210
|
}
|
|
338
211
|
suppressWitnessesCallingPoliceThisFrame() {
|
|
339
212
|
inv('0x96722257E5381E00', this.handle);
|
|
@@ -377,13 +250,13 @@ export class Player {
|
|
|
377
250
|
/**
|
|
378
251
|
* @param accuracy
|
|
379
252
|
*/
|
|
380
|
-
|
|
253
|
+
set TotalAccuracyModifier(accuracy) {
|
|
381
254
|
inv('0x967FF5BC0CFE6D26', this.handle, f(accuracy));
|
|
382
255
|
}
|
|
383
256
|
/**
|
|
384
257
|
* @returns
|
|
385
258
|
*/
|
|
386
|
-
|
|
259
|
+
get VehicleOwnedByPlayer() {
|
|
387
260
|
return createFromHandle('Vehicle', inv('0xB9050A97594C8832', this.handle, rai()));
|
|
388
261
|
}
|
|
389
262
|
/**
|
|
@@ -398,7 +271,7 @@ export class Player {
|
|
|
398
271
|
* @returns
|
|
399
272
|
*/
|
|
400
273
|
N_0x927861B2C08DBEA5() {
|
|
401
|
-
return inv('0x927861B2C08DBEA5', this.handle, rai());
|
|
274
|
+
return !!inv('0x927861B2C08DBEA5', this.handle, rai());
|
|
402
275
|
}
|
|
403
276
|
/**
|
|
404
277
|
* it is used to check for that period of time if player damaged any peds only returns the last 3 hits with the entity ids so if you hit the same entity 3 times it will return the same entity id 3 times, if you hit 4 different entities within that time it will return the last 3 entity ids
|
|
@@ -416,7 +289,7 @@ export class Player {
|
|
|
416
289
|
/**
|
|
417
290
|
* @param multiplier
|
|
418
291
|
*/
|
|
419
|
-
|
|
292
|
+
set StaminaRechargeMultiplier(multiplier) {
|
|
420
293
|
inv('0xFECA17CF3343694B', this.handle, f(multiplier));
|
|
421
294
|
}
|
|
422
295
|
/**
|
|
@@ -431,7 +304,7 @@ export class Player {
|
|
|
431
304
|
* @returns
|
|
432
305
|
*/
|
|
433
306
|
updateTeleport() {
|
|
434
|
-
return inv('0xC39DCE4672CBFBC1', this.handle, rai());
|
|
307
|
+
return !!inv('0xC39DCE4672CBFBC1', this.handle, rai());
|
|
435
308
|
}
|
|
436
309
|
resetInputGait() {
|
|
437
310
|
inv('0x61A2EECAB274829B', this.handle);
|
|
@@ -448,7 +321,7 @@ export class Player {
|
|
|
448
321
|
/**
|
|
449
322
|
* @param modifier
|
|
450
323
|
*/
|
|
451
|
-
|
|
324
|
+
set WeaponDegradationModifier(modifier) {
|
|
452
325
|
inv('0x11A7FF918EF6BC66', this.handle, f(modifier));
|
|
453
326
|
}
|
|
454
327
|
/**
|
|
@@ -456,7 +329,7 @@ export class Player {
|
|
|
456
329
|
*
|
|
457
330
|
* @param timer
|
|
458
331
|
*/
|
|
459
|
-
|
|
332
|
+
set SpecialAbilityDisableTimer(timer) {
|
|
460
333
|
inv('0xC0B1C05B313693D1', this.handle, f(timer));
|
|
461
334
|
}
|
|
462
335
|
/**
|
|
@@ -480,13 +353,13 @@ export class Player {
|
|
|
480
353
|
*
|
|
481
354
|
* @returns
|
|
482
355
|
*/
|
|
483
|
-
|
|
484
|
-
return inv('0xB8A70C22FD48197A', this.handle, rai());
|
|
356
|
+
get IsClimbing() {
|
|
357
|
+
return !!inv('0xB8A70C22FD48197A', this.handle, rai());
|
|
485
358
|
}
|
|
486
359
|
/**
|
|
487
360
|
* @returns Refer to [enum: ePedMood]
|
|
488
361
|
*/
|
|
489
|
-
|
|
362
|
+
get Mood() {
|
|
490
363
|
return inv('0x054473164C012699', this.handle, rai());
|
|
491
364
|
}
|
|
492
365
|
clearBountyTarget() {
|
|
@@ -497,7 +370,7 @@ export class Player {
|
|
|
497
370
|
*
|
|
498
371
|
* @param p1
|
|
499
372
|
*/
|
|
500
|
-
|
|
373
|
+
set LockonFocusFireVfx(p1) {
|
|
501
374
|
inv('0x5F8E0303C229C84B', this.handle, p1);
|
|
502
375
|
}
|
|
503
376
|
/**
|
|
@@ -555,21 +428,21 @@ export class Player {
|
|
|
555
428
|
/**
|
|
556
429
|
* @param vehicle
|
|
557
430
|
*/
|
|
558
|
-
|
|
431
|
+
set OwnsVehicle(vehicle) {
|
|
559
432
|
inv('0xD0E02AA618020D17', this.handle, vehicle.handle);
|
|
560
433
|
}
|
|
561
434
|
/**
|
|
562
435
|
* @returns
|
|
563
436
|
*/
|
|
564
437
|
hasDamagedAtLeastOnePed() {
|
|
565
|
-
return inv('0xDA4A4B9B96E20092', this.handle, rai());
|
|
438
|
+
return !!inv('0xDA4A4B9B96E20092', this.handle, rai());
|
|
566
439
|
}
|
|
567
440
|
/**
|
|
568
441
|
* Seems to enable active horse equipment prompt when being near it and enables the control that opens the inventory as well
|
|
569
442
|
*
|
|
570
443
|
* @param mount
|
|
571
444
|
*/
|
|
572
|
-
|
|
445
|
+
set OwnsMount(mount) {
|
|
573
446
|
inv('0xE6D4E435B56D5BD0', this.handle, mount.handle);
|
|
574
447
|
}
|
|
575
448
|
/**
|
|
@@ -583,7 +456,7 @@ export class Player {
|
|
|
583
456
|
*
|
|
584
457
|
* @returns
|
|
585
458
|
*/
|
|
586
|
-
|
|
459
|
+
get PedScriptIndex() {
|
|
587
460
|
return createFromHandle('Ped', inv('0x5C880F9056D784C8', this.handle, rai()));
|
|
588
461
|
}
|
|
589
462
|
/**
|
|
@@ -597,7 +470,7 @@ export class Player {
|
|
|
597
470
|
/**
|
|
598
471
|
* @returns Returns the player name, or if the player doesn't exist, it returns "**Invalid**"
|
|
599
472
|
*/
|
|
600
|
-
|
|
473
|
+
get Name() {
|
|
601
474
|
return inv('0x7124FD9AC0E01BA0', this.handle, ras());
|
|
602
475
|
}
|
|
603
476
|
/**
|
|
@@ -605,7 +478,7 @@ export class Player {
|
|
|
605
478
|
*
|
|
606
479
|
* @param horse
|
|
607
480
|
*/
|
|
608
|
-
|
|
481
|
+
set PedActiveHorse(horse) {
|
|
609
482
|
inv('0x8FBF9EDB378CCB8C', this.handle, horse.handle);
|
|
610
483
|
}
|
|
611
484
|
/**
|
|
@@ -615,7 +488,7 @@ export class Player {
|
|
|
615
488
|
*
|
|
616
489
|
* @param active
|
|
617
490
|
*/
|
|
618
|
-
|
|
491
|
+
set MountStateActive(active) {
|
|
619
492
|
inv('0xDF93973251FB2CA5', this.handle, active);
|
|
620
493
|
}
|
|
621
494
|
/**
|
|
@@ -646,7 +519,7 @@ export class Player {
|
|
|
646
519
|
*
|
|
647
520
|
* @param label
|
|
648
521
|
*/
|
|
649
|
-
|
|
522
|
+
set SitPromptText(label) {
|
|
650
523
|
inv('0x988C9045531B9FCE', this.handle, label);
|
|
651
524
|
}
|
|
652
525
|
updateWantedPositionThisFrame() {
|
|
@@ -671,7 +544,7 @@ export class Player {
|
|
|
671
544
|
*
|
|
672
545
|
* @param label
|
|
673
546
|
*/
|
|
674
|
-
|
|
547
|
+
set MeleePromptText(label) {
|
|
675
548
|
inv('0x0FAF95D71ED67ADE', this.handle, label);
|
|
676
549
|
}
|
|
677
550
|
/**
|
|
@@ -708,7 +581,7 @@ export class Player {
|
|
|
708
581
|
/**
|
|
709
582
|
* @param modifier
|
|
710
583
|
*/
|
|
711
|
-
|
|
584
|
+
set ExplosiveWeaponDamageModifier(modifier) {
|
|
712
585
|
inv('0x2D3ACE3DE0A2B622', this.handle, f(modifier));
|
|
713
586
|
}
|
|
714
587
|
/**
|
|
@@ -716,7 +589,7 @@ export class Player {
|
|
|
716
589
|
*
|
|
717
590
|
* @returns
|
|
718
591
|
*/
|
|
719
|
-
|
|
592
|
+
get IsMountOnRoad() {
|
|
720
593
|
return inv('0xE631EAF35828FA67', this.handle);
|
|
721
594
|
}
|
|
722
595
|
/**
|
|
@@ -731,7 +604,7 @@ export class Player {
|
|
|
731
604
|
*
|
|
732
605
|
* @param level
|
|
733
606
|
*/
|
|
734
|
-
|
|
607
|
+
set DeadeyeAbilityLevel(level) {
|
|
735
608
|
inv('0xF0FE8E790BFEB5BB', this.handle, level);
|
|
736
609
|
}
|
|
737
610
|
/**
|
|
@@ -739,19 +612,19 @@ export class Player {
|
|
|
739
612
|
*
|
|
740
613
|
* @param enable
|
|
741
614
|
*/
|
|
742
|
-
|
|
615
|
+
set PickupPromptVisible(enable) {
|
|
743
616
|
inv('0xD1A70C1E8D1031FE', this.handle, enable);
|
|
744
617
|
}
|
|
745
618
|
/**
|
|
746
619
|
* @param mount
|
|
747
620
|
*/
|
|
748
|
-
|
|
621
|
+
set PedAsSaddleHorseForPlayer(mount) {
|
|
749
622
|
inv('0xD2CB0FB0FDCB473D', this.handle, mount.handle);
|
|
750
623
|
}
|
|
751
624
|
/**
|
|
752
625
|
* @returns
|
|
753
626
|
*/
|
|
754
|
-
|
|
627
|
+
get ActiveHorseForPlayer() {
|
|
755
628
|
return createFromHandle('Ped', inv('0x46FA0AE18F4C7FA9', this.handle, rai()));
|
|
756
629
|
}
|
|
757
630
|
/**
|
|
@@ -790,7 +663,7 @@ export class Player {
|
|
|
790
663
|
* @returns
|
|
791
664
|
*/
|
|
792
665
|
canStartMission() {
|
|
793
|
-
return inv('0x2DF170B1185AF777', this.handle, rai());
|
|
666
|
+
return !!inv('0x2DF170B1185AF777', this.handle, rai());
|
|
794
667
|
}
|
|
795
668
|
/**
|
|
796
669
|
* Adds an interactive focus mode preset between a player and a specific set of coordinates with a target entity.
|
|
@@ -809,7 +682,7 @@ export class Player {
|
|
|
809
682
|
/**
|
|
810
683
|
* @returns
|
|
811
684
|
*/
|
|
812
|
-
|
|
685
|
+
get StaminaRechargeMultiplier() {
|
|
813
686
|
return inv('0x617D3494AD58200F', this.handle, raf());
|
|
814
687
|
}
|
|
815
688
|
/**
|
|
@@ -817,14 +690,14 @@ export class Player {
|
|
|
817
690
|
*
|
|
818
691
|
* @returns
|
|
819
692
|
*/
|
|
820
|
-
|
|
693
|
+
get DeadeyeAbilityDepletionDelay() {
|
|
821
694
|
return inv('0xE92261BD28C0878F', this.handle);
|
|
822
695
|
}
|
|
823
696
|
/**
|
|
824
697
|
* @returns
|
|
825
698
|
*/
|
|
826
|
-
|
|
827
|
-
return inv('0xAA67BCB0097F2FA3', this.handle, rai());
|
|
699
|
+
get IsReadyForCutscene() {
|
|
700
|
+
return !!inv('0xAA67BCB0097F2FA3', this.handle, rai());
|
|
828
701
|
}
|
|
829
702
|
/**
|
|
830
703
|
* @param p1
|
|
@@ -863,7 +736,7 @@ export class Player {
|
|
|
863
736
|
/**
|
|
864
737
|
* @returns
|
|
865
738
|
*/
|
|
866
|
-
|
|
739
|
+
get Ped() {
|
|
867
740
|
return createFromHandle('Ped', inv('0x275F255ED201B937', this.handle, rai()));
|
|
868
741
|
}
|
|
869
742
|
/**
|
|
@@ -871,7 +744,7 @@ export class Player {
|
|
|
871
744
|
*
|
|
872
745
|
* @param toggle
|
|
873
746
|
*/
|
|
874
|
-
|
|
747
|
+
set AllRandomPedsFlee(toggle) {
|
|
875
748
|
inv('0xE705309B8C6445A4', this.handle, toggle);
|
|
876
749
|
}
|
|
877
750
|
/**
|
|
@@ -884,14 +757,14 @@ export class Player {
|
|
|
884
757
|
/**
|
|
885
758
|
* @returns entity
|
|
886
759
|
*/
|
|
887
|
-
|
|
760
|
+
get EntityIsFreeAimingAt() {
|
|
888
761
|
const result = inv('0xA6817C110B830EAD', this.handle, pvi(), rai());
|
|
889
762
|
return [!!result[0], createFromHandle('Entity', result[1])];
|
|
890
763
|
}
|
|
891
764
|
/**
|
|
892
765
|
* @returns
|
|
893
766
|
*/
|
|
894
|
-
|
|
767
|
+
get TempHorse() {
|
|
895
768
|
return createFromHandle('Ped', inv('0xD3F7445CEA2E5035', this.handle, rai()));
|
|
896
769
|
}
|
|
897
770
|
/**
|
|
@@ -902,25 +775,25 @@ export class Player {
|
|
|
902
775
|
* @returns
|
|
903
776
|
*/
|
|
904
777
|
hasDamagedAnyPedRecently(duration) {
|
|
905
|
-
return inv('0x72AD59F7B7FB6E24', this.handle, duration, rai());
|
|
778
|
+
return !!inv('0x72AD59F7B7FB6E24', this.handle, duration, rai());
|
|
906
779
|
}
|
|
907
780
|
/**
|
|
908
781
|
* @returns entity
|
|
909
782
|
*/
|
|
910
|
-
|
|
783
|
+
get TargetEntity() {
|
|
911
784
|
const result = inv('0xAE663DDD99C8A670', this.handle, pvi(), rai());
|
|
912
785
|
return [!!result[0], createFromHandle('Entity', result[1])];
|
|
913
786
|
}
|
|
914
787
|
/**
|
|
915
788
|
* @returns Returns true if the ped has a ped, and the ped is alive and not arrested.
|
|
916
789
|
*/
|
|
917
|
-
|
|
918
|
-
return inv('0xBFFB35986CAAE58C', this.handle, rai());
|
|
790
|
+
get IsPlaying() {
|
|
791
|
+
return !!inv('0xBFFB35986CAAE58C', this.handle, rai());
|
|
919
792
|
}
|
|
920
793
|
/**
|
|
921
794
|
* @returns
|
|
922
795
|
*/
|
|
923
|
-
|
|
796
|
+
get SaddleHorseForPlayer() {
|
|
924
797
|
return createFromHandle('Ped', inv('0xB48050D326E9A2F3', this.handle, rai()));
|
|
925
798
|
}
|
|
926
799
|
/**
|
|
@@ -928,19 +801,19 @@ export class Player {
|
|
|
928
801
|
*
|
|
929
802
|
* @param range
|
|
930
803
|
*/
|
|
931
|
-
|
|
804
|
+
set LockonRangeOverride(range) {
|
|
932
805
|
inv('0x3A3CD06597388322', this.handle, f(range));
|
|
933
806
|
}
|
|
934
807
|
/**
|
|
935
808
|
* @returns
|
|
936
809
|
*/
|
|
937
|
-
|
|
810
|
+
get HuntingWagon() {
|
|
938
811
|
return createFromHandle('Vehicle', inv('0x5CA6BBD4A7D8145E', this.handle, rai()));
|
|
939
812
|
}
|
|
940
813
|
/**
|
|
941
814
|
* @param modifier
|
|
942
815
|
*/
|
|
943
|
-
|
|
816
|
+
set TrampleDamageModifier(modifier) {
|
|
944
817
|
inv('0xAF341032E97FB061', this.handle, f(modifier));
|
|
945
818
|
}
|
|
946
819
|
/**
|
|
@@ -948,7 +821,7 @@ export class Player {
|
|
|
948
821
|
*
|
|
949
822
|
* @returns
|
|
950
823
|
*/
|
|
951
|
-
|
|
824
|
+
get IsFreeFocusing() {
|
|
952
825
|
return inv('0x1A51BFE60708E482', this.handle);
|
|
953
826
|
}
|
|
954
827
|
/**
|
|
@@ -966,13 +839,13 @@ export class Player {
|
|
|
966
839
|
*
|
|
967
840
|
* @returns
|
|
968
841
|
*/
|
|
969
|
-
|
|
970
|
-
return inv('0xE022CC1B545F1D9F', this.handle, rai());
|
|
842
|
+
get IsSecondarySpecialAbilityEnabled() {
|
|
843
|
+
return !!inv('0xE022CC1B545F1D9F', this.handle, rai());
|
|
971
844
|
}
|
|
972
845
|
/**
|
|
973
846
|
* @param multiplier
|
|
974
847
|
*/
|
|
975
|
-
|
|
848
|
+
set NoiseMultiplier(multiplier) {
|
|
976
849
|
inv('0xB5EC6BDAEBCA454C', this.handle, f(multiplier));
|
|
977
850
|
}
|
|
978
851
|
/**
|
|
@@ -980,19 +853,19 @@ export class Player {
|
|
|
980
853
|
*
|
|
981
854
|
* @returns
|
|
982
855
|
*/
|
|
983
|
-
|
|
984
|
-
return inv('0x936F967D4BE1CE9D', this.handle, rai());
|
|
856
|
+
get IsFreeAiming() {
|
|
857
|
+
return !!inv('0x936F967D4BE1CE9D', this.handle, rai());
|
|
985
858
|
}
|
|
986
859
|
/**
|
|
987
860
|
* @param showingInfoCard
|
|
988
861
|
*/
|
|
989
|
-
|
|
862
|
+
set ShowInfoCard(showingInfoCard) {
|
|
990
863
|
inv('0xDC68829BB3F37023', this.handle, showingInfoCard);
|
|
991
864
|
}
|
|
992
865
|
/**
|
|
993
866
|
* @param regenRate
|
|
994
867
|
*/
|
|
995
|
-
|
|
868
|
+
set HealthRechargeMultiplier(regenRate) {
|
|
996
869
|
inv('0x8899C244EBCF70DE', this.handle, f(regenRate));
|
|
997
870
|
}
|
|
998
871
|
/**
|
|
@@ -1000,7 +873,7 @@ export class Player {
|
|
|
1000
873
|
*
|
|
1001
874
|
* @param damageInfo
|
|
1002
875
|
*/
|
|
1003
|
-
|
|
876
|
+
set DamageInfoOverride(damageInfo) {
|
|
1004
877
|
inv('0x78B3D19AF6391A55', this.handle, damageInfo);
|
|
1005
878
|
}
|
|
1006
879
|
/**
|
|
@@ -1008,7 +881,7 @@ export class Player {
|
|
|
1008
881
|
*
|
|
1009
882
|
* @param toggle
|
|
1010
883
|
*/
|
|
1011
|
-
|
|
884
|
+
set CanBeHassledByGangs(toggle) {
|
|
1012
885
|
inv('0xC7FE774412046825', this.handle, toggle);
|
|
1013
886
|
}
|
|
1014
887
|
/**
|
|
@@ -1024,7 +897,7 @@ export class Player {
|
|
|
1024
897
|
*
|
|
1025
898
|
* @param staminaDrain
|
|
1026
899
|
*/
|
|
1027
|
-
|
|
900
|
+
set BowStaminaDrainSpeed(staminaDrain) {
|
|
1028
901
|
inv('0xFE7C9CF376D23342', this.handle, f(staminaDrain));
|
|
1029
902
|
}
|
|
1030
903
|
setAllRandomPedsFleeThisFrame() {
|
|
@@ -1043,7 +916,7 @@ export class Player {
|
|
|
1043
916
|
*
|
|
1044
917
|
* @param damage
|
|
1045
918
|
*/
|
|
1046
|
-
|
|
919
|
+
set LassoDamagePerSecond(damage) {
|
|
1047
920
|
inv('0x43F50A7CD2482156', this.handle, f(damage));
|
|
1048
921
|
}
|
|
1049
922
|
/**
|
|
@@ -1053,7 +926,7 @@ export class Player {
|
|
|
1053
926
|
* @returns
|
|
1054
927
|
*/
|
|
1055
928
|
isBeingArrested(atArresting) {
|
|
1056
|
-
return inv('0xC8183AE963C58374', this.handle, atArresting, rai());
|
|
929
|
+
return !!inv('0xC8183AE963C58374', this.handle, atArresting, rai());
|
|
1057
930
|
}
|
|
1058
931
|
/**
|
|
1059
932
|
* Gets a value indicating whether the specified player is currently aiming freely at the specified entity.
|
|
@@ -1062,12 +935,12 @@ export class Player {
|
|
|
1062
935
|
* @returns
|
|
1063
936
|
*/
|
|
1064
937
|
isFreeAimingAtEntity(entity) {
|
|
1065
|
-
return inv('0x8C67C11C68713D25', this.handle, entity.handle, rai());
|
|
938
|
+
return !!inv('0x8C67C11C68713D25', this.handle, entity.handle, rai());
|
|
1066
939
|
}
|
|
1067
940
|
/**
|
|
1068
941
|
* @param farDamageBonus
|
|
1069
942
|
*/
|
|
1070
|
-
|
|
943
|
+
set DamageFarDistanceBonusTotal(farDamageBonus) {
|
|
1071
944
|
inv('0x1F0E3A4434565F8F', this.handle, f(farDamageBonus));
|
|
1072
945
|
}
|
|
1073
946
|
setMayNotEnterAnyVehicle() {
|
|
@@ -1076,7 +949,7 @@ export class Player {
|
|
|
1076
949
|
/**
|
|
1077
950
|
* @returns
|
|
1078
951
|
*/
|
|
1079
|
-
|
|
952
|
+
get Health() {
|
|
1080
953
|
return inv('0x0317C947D062854E', this.handle, raf());
|
|
1081
954
|
}
|
|
1082
955
|
resetWantedLevelDifficulty() {
|
|
@@ -1091,7 +964,7 @@ export class Player {
|
|
|
1091
964
|
/**
|
|
1092
965
|
* @returns
|
|
1093
966
|
*/
|
|
1094
|
-
|
|
967
|
+
get NumMarkedDeadeyeTargets() {
|
|
1095
968
|
return inv('0xCCD9B77F70D31C9D', this.handle, rai());
|
|
1096
969
|
}
|
|
1097
970
|
/**
|
|
@@ -1113,7 +986,7 @@ export class Player {
|
|
|
1113
986
|
/**
|
|
1114
987
|
* @param speech
|
|
1115
988
|
*/
|
|
1116
|
-
|
|
989
|
+
set InteractionNegativeResponse(speech) {
|
|
1117
990
|
inv('0x98CD760DE43B612E', this.handle, speech);
|
|
1118
991
|
}
|
|
1119
992
|
/**
|
|
@@ -1131,13 +1004,13 @@ export class Player {
|
|
|
1131
1004
|
/**
|
|
1132
1005
|
* @param toggle
|
|
1133
1006
|
*/
|
|
1134
|
-
|
|
1007
|
+
set SimulateAiming(toggle) {
|
|
1135
1008
|
inv('0xE0447DEF81CCDFD2', this.handle, toggle);
|
|
1136
1009
|
}
|
|
1137
1010
|
/**
|
|
1138
1011
|
* @returns
|
|
1139
1012
|
*/
|
|
1140
|
-
|
|
1013
|
+
get AiDefenseModifierAgainstAi() {
|
|
1141
1014
|
return inv('0x2E78D822208E740A', this.handle, raf());
|
|
1142
1015
|
}
|
|
1143
1016
|
/**
|
|
@@ -1145,7 +1018,7 @@ export class Player {
|
|
|
1145
1018
|
*
|
|
1146
1019
|
* @param modifier
|
|
1147
1020
|
*/
|
|
1148
|
-
|
|
1021
|
+
set HealthRechargeTimeModifier(modifier) {
|
|
1149
1022
|
inv('0x535ED4605F89AB6E', this.handle, f(modifier));
|
|
1150
1023
|
}
|
|
1151
1024
|
/**
|
|
@@ -1159,7 +1032,7 @@ export class Player {
|
|
|
1159
1032
|
/**
|
|
1160
1033
|
* @param accuracy
|
|
1161
1034
|
*/
|
|
1162
|
-
|
|
1035
|
+
set RemoteAccuracyFloorModifier(accuracy) {
|
|
1163
1036
|
inv('0xDEE80FEDFDD43C9B', this.handle, f(accuracy));
|
|
1164
1037
|
}
|
|
1165
1038
|
/**
|
|
@@ -1172,13 +1045,13 @@ export class Player {
|
|
|
1172
1045
|
/**
|
|
1173
1046
|
* @returns
|
|
1174
1047
|
*/
|
|
1175
|
-
|
|
1048
|
+
get StaminaDepletionMultiplier() {
|
|
1176
1049
|
return inv('0x68A0389E0718AC8F', this.handle, raf());
|
|
1177
1050
|
}
|
|
1178
1051
|
/**
|
|
1179
1052
|
* @returns
|
|
1180
1053
|
*/
|
|
1181
|
-
|
|
1054
|
+
get CurrentStealthNoise() {
|
|
1182
1055
|
return inv('0xD7ECC25E176ECBA5', this.handle, raf());
|
|
1183
1056
|
}
|
|
1184
1057
|
/**
|
|
@@ -1193,7 +1066,7 @@ export class Player {
|
|
|
1193
1066
|
*
|
|
1194
1067
|
* @param mood Refer to [enum: ePedMood]
|
|
1195
1068
|
*/
|
|
1196
|
-
|
|
1069
|
+
set Mood(mood) {
|
|
1197
1070
|
inv('0x39BED552DB46FFA9', this.handle, mood);
|
|
1198
1071
|
}
|
|
1199
1072
|
/**
|
|
@@ -1220,7 +1093,7 @@ export class Player {
|
|
|
1220
1093
|
*
|
|
1221
1094
|
* @param disable
|
|
1222
1095
|
*/
|
|
1223
|
-
|
|
1096
|
+
set DisableWantedLevel(disable) {
|
|
1224
1097
|
inv('0x8674D138391FFB1B', this.handle, disable);
|
|
1225
1098
|
}
|
|
1226
1099
|
/**
|
|
@@ -1234,19 +1107,19 @@ export class Player {
|
|
|
1234
1107
|
/**
|
|
1235
1108
|
* @param p1
|
|
1236
1109
|
*/
|
|
1237
|
-
|
|
1110
|
+
set ManageBuffSuperJump(p1) {
|
|
1238
1111
|
inv('0x292F0B6EDC82E3A4', this.handle, f(p1));
|
|
1239
1112
|
}
|
|
1240
1113
|
/**
|
|
1241
1114
|
* @param multiplier
|
|
1242
1115
|
*/
|
|
1243
|
-
|
|
1116
|
+
set SpecialAbilityMultiplier(multiplier) {
|
|
1244
1117
|
inv('0x5A498FCA232F71E1', this.handle, f(multiplier));
|
|
1245
1118
|
}
|
|
1246
1119
|
/**
|
|
1247
1120
|
* @param accuracy
|
|
1248
1121
|
*/
|
|
1249
|
-
|
|
1122
|
+
set LocalAccuracyFloorModifier(accuracy) {
|
|
1250
1123
|
inv('0x4EA69188FBCE6A7D', this.handle, f(accuracy));
|
|
1251
1124
|
}
|
|
1252
1125
|
/**
|
|
@@ -1254,7 +1127,7 @@ export class Player {
|
|
|
1254
1127
|
* @returns
|
|
1255
1128
|
*/
|
|
1256
1129
|
isWantedLevelGreater(wantedLevel) {
|
|
1257
|
-
return inv('0xE1C0AD4C24324C36', this.handle, wantedLevel, rai());
|
|
1130
|
+
return !!inv('0xE1C0AD4C24324C36', this.handle, wantedLevel, rai());
|
|
1258
1131
|
}
|
|
1259
1132
|
/**
|
|
1260
1133
|
* SPECIAL_ABILITY_NONE = -1,
|
|
@@ -1268,13 +1141,13 @@ export class Player {
|
|
|
1268
1141
|
*
|
|
1269
1142
|
* @param type
|
|
1270
1143
|
*/
|
|
1271
|
-
|
|
1144
|
+
set SpecialAbilityType(type) {
|
|
1272
1145
|
inv('0x00BA333DA05ADC23', this.handle, type);
|
|
1273
1146
|
}
|
|
1274
1147
|
/**
|
|
1275
1148
|
* @param toggle
|
|
1276
1149
|
*/
|
|
1277
|
-
|
|
1150
|
+
set EveryoneIgnorePlayer(toggle) {
|
|
1278
1151
|
inv('0x34630A768925B852', this.handle, toggle);
|
|
1279
1152
|
}
|
|
1280
1153
|
/**
|
|
@@ -1282,7 +1155,7 @@ export class Player {
|
|
|
1282
1155
|
*
|
|
1283
1156
|
* @param toggle
|
|
1284
1157
|
*/
|
|
1285
|
-
|
|
1158
|
+
set CanUseCover(toggle) {
|
|
1286
1159
|
inv('0x5EDA520F7A3BAF4E', this.handle, toggle);
|
|
1287
1160
|
}
|
|
1288
1161
|
/**
|
|
@@ -1315,7 +1188,7 @@ export class Player {
|
|
|
1315
1188
|
/**
|
|
1316
1189
|
* @param filter
|
|
1317
1190
|
*/
|
|
1318
|
-
|
|
1191
|
+
set DeadeyeTaggingConfig(filter) {
|
|
1319
1192
|
inv('0x83FCD6921FC8FD05', this.handle, filter);
|
|
1320
1193
|
}
|
|
1321
1194
|
/**
|
|
@@ -1338,7 +1211,7 @@ export class Player {
|
|
|
1338
1211
|
/**
|
|
1339
1212
|
* @returns
|
|
1340
1213
|
*/
|
|
1341
|
-
|
|
1214
|
+
get IsSpecialAbilityActive() {
|
|
1342
1215
|
return inv('0xB16223CB7DA965F0', this.handle);
|
|
1343
1216
|
}
|
|
1344
1217
|
reportPoliceSpottedPlayer() {
|
|
@@ -1350,12 +1223,12 @@ export class Player {
|
|
|
1350
1223
|
* @returns
|
|
1351
1224
|
*/
|
|
1352
1225
|
getReceivedBattleEventRecently(p1, p2) {
|
|
1353
|
-
return inv('0xFB6EB8785F808551', this.handle, p1, p2, rai());
|
|
1226
|
+
return !!inv('0xFB6EB8785F808551', this.handle, p1, p2, rai());
|
|
1354
1227
|
}
|
|
1355
1228
|
/**
|
|
1356
1229
|
* @returns
|
|
1357
1230
|
*/
|
|
1358
|
-
|
|
1231
|
+
get SpecialAbilityMultiplier() {
|
|
1359
1232
|
return inv('0xAB3773E7AA1E9DCC', this.handle, raf());
|
|
1360
1233
|
}
|
|
1361
1234
|
/**
|
|
@@ -1385,18 +1258,18 @@ export class Player {
|
|
|
1385
1258
|
* @returns
|
|
1386
1259
|
*/
|
|
1387
1260
|
N_0xE7F8707269544B29(ped) {
|
|
1388
|
-
return inv('0xE7F8707269544B29', this.handle, ped.handle, rai());
|
|
1261
|
+
return !!inv('0xE7F8707269544B29', this.handle, ped.handle, rai());
|
|
1389
1262
|
}
|
|
1390
1263
|
/**
|
|
1391
1264
|
* @returns
|
|
1392
1265
|
*/
|
|
1393
|
-
|
|
1394
|
-
return inv('0xB78350754157C00F', this.handle, rai());
|
|
1266
|
+
get IsScriptControlOn() {
|
|
1267
|
+
return !!inv('0xB78350754157C00F', this.handle, rai());
|
|
1395
1268
|
}
|
|
1396
1269
|
/**
|
|
1397
1270
|
* @returns
|
|
1398
1271
|
*/
|
|
1399
|
-
|
|
1272
|
+
get IsSecondarySpecialAbilityActive() {
|
|
1400
1273
|
return inv('0x45AB66D02B601FA7', this.handle);
|
|
1401
1274
|
}
|
|
1402
1275
|
N_0xC900A465364A85D6() {
|
|
@@ -1407,7 +1280,7 @@ export class Player {
|
|
|
1407
1280
|
*
|
|
1408
1281
|
* @returns
|
|
1409
1282
|
*/
|
|
1410
|
-
|
|
1283
|
+
get Group() {
|
|
1411
1284
|
return inv('0x9BAB31815159ABCF', this.handle, rai());
|
|
1412
1285
|
}
|
|
1413
1286
|
/**
|
|
@@ -1424,7 +1297,7 @@ export class Player {
|
|
|
1424
1297
|
*
|
|
1425
1298
|
* @param modifier
|
|
1426
1299
|
*/
|
|
1427
|
-
|
|
1300
|
+
set WeaponDamageModifier(modifier) {
|
|
1428
1301
|
inv('0x94D529F7B73D7A85', this.handle, f(modifier));
|
|
1429
1302
|
}
|
|
1430
1303
|
/**
|
|
@@ -1432,14 +1305,14 @@ export class Player {
|
|
|
1432
1305
|
*
|
|
1433
1306
|
* @param durationCost
|
|
1434
1307
|
*/
|
|
1435
|
-
|
|
1308
|
+
set SpecialAbilityDurationCost(durationCost) {
|
|
1436
1309
|
inv('0xB783F75940B23014', this.handle, f(durationCost));
|
|
1437
1310
|
}
|
|
1438
1311
|
/**
|
|
1439
1312
|
* @returns
|
|
1440
1313
|
*/
|
|
1441
|
-
|
|
1442
|
-
return inv('0x4605C66E0F935F83', this.handle, rai());
|
|
1314
|
+
get IsTargettingAnything() {
|
|
1315
|
+
return !!inv('0x4605C66E0F935F83', this.handle, rai());
|
|
1443
1316
|
}
|
|
1444
1317
|
/**
|
|
1445
1318
|
* @param modifier
|
|
@@ -1450,13 +1323,13 @@ export class Player {
|
|
|
1450
1323
|
/**
|
|
1451
1324
|
* @returns
|
|
1452
1325
|
*/
|
|
1453
|
-
|
|
1326
|
+
get DeadEye() {
|
|
1454
1327
|
return inv('0xA81D24AE0AF99A5E', this.handle, raf());
|
|
1455
1328
|
}
|
|
1456
1329
|
/**
|
|
1457
1330
|
* @returns
|
|
1458
1331
|
*/
|
|
1459
|
-
|
|
1332
|
+
get IsInScope() {
|
|
1460
1333
|
return inv('0x04D7F33640662FA2', this.handle);
|
|
1461
1334
|
}
|
|
1462
1335
|
/**
|
|
@@ -1475,58 +1348,85 @@ export class Player {
|
|
|
1475
1348
|
inv('0x09C28F828EE674FA', this.handle, f(speedBoost), duration);
|
|
1476
1349
|
}
|
|
1477
1350
|
/**
|
|
1478
|
-
*
|
|
1479
|
-
*
|
|
1480
|
-
* @returns
|
|
1351
|
+
* Returns true if the player is riding a train.
|
|
1352
|
+
*
|
|
1353
|
+
* @returns
|
|
1481
1354
|
*/
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
return [result[0], createFromHandle('Entity', result[1])];
|
|
1355
|
+
get IsRidingTrain() {
|
|
1356
|
+
return !!inv('0x2FB0ACADA6A238DD', this.handle, rai());
|
|
1485
1357
|
}
|
|
1486
1358
|
/**
|
|
1487
|
-
*
|
|
1359
|
+
* Sets whether all trails are hidden during Eagle Eye mode.
|
|
1360
|
+
*
|
|
1361
|
+
* @param hide
|
|
1488
1362
|
*/
|
|
1489
|
-
|
|
1490
|
-
inv('
|
|
1363
|
+
eagleEyeSetHideAllTrails(hide) {
|
|
1364
|
+
inv('0x330CA55A3647FA1C', this.handle, hide);
|
|
1491
1365
|
}
|
|
1492
1366
|
/**
|
|
1367
|
+
* _IS_PLAYER_S* - _IS_PLAYER_T*
|
|
1368
|
+
*
|
|
1493
1369
|
* @returns
|
|
1494
1370
|
*/
|
|
1495
|
-
|
|
1496
|
-
return inv('
|
|
1371
|
+
N_0x621D1B289CAF5978() {
|
|
1372
|
+
return !!inv('0x621D1B289CAF5978', this.handle, rai());
|
|
1497
1373
|
}
|
|
1498
1374
|
/**
|
|
1499
|
-
*
|
|
1375
|
+
* Decreases the damage the player receives while on horseback
|
|
1376
|
+
* Previous name: _SET_RECEIVED_HORSEBACK_DAMAGE_DECREASE
|
|
1377
|
+
*
|
|
1378
|
+
* @param damageDecrease
|
|
1500
1379
|
*/
|
|
1501
|
-
|
|
1502
|
-
inv('
|
|
1380
|
+
set ReceivedDamageTakenOnHorsebackModifier(damageDecrease) {
|
|
1381
|
+
inv('0xB427911EA6DFFEF3', this.handle, f(damageDecrease));
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
* @param toggle
|
|
1385
|
+
*/
|
|
1386
|
+
set CanMercyKill(toggle) {
|
|
1387
|
+
inv('0x39363DFD04E91496', this.handle, toggle);
|
|
1503
1388
|
}
|
|
1504
1389
|
/**
|
|
1390
|
+
* @param p1
|
|
1391
|
+
* @param discoveryHash
|
|
1505
1392
|
* @returns
|
|
1506
1393
|
*/
|
|
1507
|
-
|
|
1508
|
-
return inv('
|
|
1394
|
+
getHasDiscoveredCharacterNameSp(p1, discoveryHash) {
|
|
1395
|
+
return inv('0x0772F87D7B07719A', this.handle, p1, _h(discoveryHash));
|
|
1509
1396
|
}
|
|
1510
1397
|
/**
|
|
1511
|
-
*
|
|
1398
|
+
* @param speech
|
|
1399
|
+
*/
|
|
1400
|
+
set InteractionPositiveResponse(speech) {
|
|
1401
|
+
inv('0xC6366A585659D15C', this.handle, speech);
|
|
1402
|
+
}
|
|
1403
|
+
/**
|
|
1404
|
+
* This can be between 1.0f - 50.0f
|
|
1512
1405
|
*
|
|
1513
|
-
* @param
|
|
1406
|
+
* @param multiplier
|
|
1514
1407
|
*/
|
|
1515
|
-
|
|
1516
|
-
inv('
|
|
1408
|
+
set AirDragMultiplierForPlayersVehicle(multiplier) {
|
|
1409
|
+
inv('0x5DA6500FE849DA16', this.handle, f(multiplier));
|
|
1517
1410
|
}
|
|
1518
1411
|
/**
|
|
1519
|
-
*
|
|
1520
|
-
* some colors
|
|
1521
|
-
* 0: Default aura
|
|
1522
|
-
* 1014693585
|
|
1523
|
-
* 1936842089
|
|
1524
|
-
* 1979474018
|
|
1412
|
+
* Only applies to HUNTERCART01
|
|
1525
1413
|
*
|
|
1526
|
-
* @param
|
|
1414
|
+
* @param wagon
|
|
1527
1415
|
*/
|
|
1528
|
-
|
|
1529
|
-
inv('
|
|
1416
|
+
set HuntingWagon(wagon) {
|
|
1417
|
+
inv('0x6A4404BDFA62CE2C', this.handle, wagon.handle);
|
|
1418
|
+
}
|
|
1419
|
+
/**
|
|
1420
|
+
* Applies a customizable aura effect to nearby entities when Deadeye is active, with control over aura intensity and additional behavior based on a flag parameter.
|
|
1421
|
+
*
|
|
1422
|
+
* @param p1
|
|
1423
|
+
* @param p2
|
|
1424
|
+
* @param p3
|
|
1425
|
+
* @param intensity
|
|
1426
|
+
* @param flag
|
|
1427
|
+
*/
|
|
1428
|
+
setDeadeyeEntityAuraIntensityWithFlag(p1, p2, p3, intensity, flag) {
|
|
1429
|
+
inv('0x131E294EF60160DF', this.handle, f(p1), f(p2), f(p3), f(intensity), flag);
|
|
1530
1430
|
}
|
|
1531
1431
|
/**
|
|
1532
1432
|
* Returns true if PromptType is enabled for ped (mount)
|
|
@@ -1545,13 +1445,13 @@ export class Player {
|
|
|
1545
1445
|
*
|
|
1546
1446
|
* @param flag
|
|
1547
1447
|
*/
|
|
1548
|
-
|
|
1448
|
+
set DeadeyeEntityAuraWithFlag(flag) {
|
|
1549
1449
|
inv('0x2B12B6FC8B8772AB', this.handle, flag);
|
|
1550
1450
|
}
|
|
1551
1451
|
/**
|
|
1552
1452
|
* @returns
|
|
1553
1453
|
*/
|
|
1554
|
-
|
|
1454
|
+
get MountOwnedByPlayer() {
|
|
1555
1455
|
return createFromHandle('Ped', inv('0xF49F14462F0AE27C', this.handle, rai()));
|
|
1556
1456
|
}
|
|
1557
1457
|
/**
|
|
@@ -1591,7 +1491,7 @@ export class Player {
|
|
|
1591
1491
|
/**
|
|
1592
1492
|
* @param drawReductionTime
|
|
1593
1493
|
*/
|
|
1594
|
-
|
|
1494
|
+
set BowDrawReductionTimeInDeadeye(drawReductionTime) {
|
|
1595
1495
|
inv('0xBE0C524970892D41', this.handle, f(drawReductionTime));
|
|
1596
1496
|
}
|
|
1597
1497
|
/**
|
|
@@ -1630,7 +1530,7 @@ export class Player {
|
|
|
1630
1530
|
*
|
|
1631
1531
|
* @param modifier
|
|
1632
1532
|
*/
|
|
1633
|
-
|
|
1533
|
+
set AiDefenseModifierAgainstAi(modifier) {
|
|
1634
1534
|
inv('0x914071FF93AF2692', this.handle, f(modifier));
|
|
1635
1535
|
}
|
|
1636
1536
|
/**
|
|
@@ -1639,13 +1539,13 @@ export class Player {
|
|
|
1639
1539
|
*
|
|
1640
1540
|
* @returns
|
|
1641
1541
|
*/
|
|
1642
|
-
|
|
1542
|
+
get Team() {
|
|
1643
1543
|
return inv('0xB464EB6A40C7975B', this.handle, rai());
|
|
1644
1544
|
}
|
|
1645
1545
|
/**
|
|
1646
1546
|
* @returns
|
|
1647
1547
|
*/
|
|
1648
|
-
|
|
1548
|
+
get HealthRechargeMultiplier() {
|
|
1649
1549
|
return inv('0x22CD23BB0C45E0CD', this.handle, raf());
|
|
1650
1550
|
}
|
|
1651
1551
|
/**
|
|
@@ -1677,7 +1577,7 @@ export class Player {
|
|
|
1677
1577
|
*
|
|
1678
1578
|
* @param promptTextKey
|
|
1679
1579
|
*/
|
|
1680
|
-
|
|
1580
|
+
set PromptLeaveText(promptTextKey) {
|
|
1681
1581
|
inv('0x06C3DB00B69D5435', this.handle, promptTextKey);
|
|
1682
1582
|
}
|
|
1683
1583
|
/**
|
|
@@ -1692,7 +1592,7 @@ export class Player {
|
|
|
1692
1592
|
/**
|
|
1693
1593
|
* @returns
|
|
1694
1594
|
*/
|
|
1695
|
-
|
|
1595
|
+
get Ped2() {
|
|
1696
1596
|
return createFromHandle('Ped', inv('0x5EBE38A20BC51C27', this.handle, rai()));
|
|
1697
1597
|
}
|
|
1698
1598
|
/**
|
|
@@ -1726,7 +1626,7 @@ export class Player {
|
|
|
1726
1626
|
*
|
|
1727
1627
|
* @param delay
|
|
1728
1628
|
*/
|
|
1729
|
-
|
|
1629
|
+
set DeadeyeAbilityDepletionDelay(delay) {
|
|
1730
1630
|
inv('0x870634493CB4372C', this.handle, f(delay));
|
|
1731
1631
|
}
|
|
1732
1632
|
/**
|
|
@@ -1735,14 +1635,14 @@ export class Player {
|
|
|
1735
1635
|
*
|
|
1736
1636
|
* @param multiplier
|
|
1737
1637
|
*/
|
|
1738
|
-
|
|
1638
|
+
set SwimMultiplierForPlayer(multiplier) {
|
|
1739
1639
|
inv('0xBFCEABDE34DA5085', this.handle, f(multiplier));
|
|
1740
1640
|
}
|
|
1741
1641
|
/**
|
|
1742
1642
|
* @returns
|
|
1743
1643
|
*/
|
|
1744
|
-
|
|
1745
|
-
return inv('0x2E9C3FCB6798F397', this.handle, rai());
|
|
1644
|
+
get IsDead() {
|
|
1645
|
+
return !!inv('0x2E9C3FCB6798F397', this.handle, rai());
|
|
1746
1646
|
}
|
|
1747
1647
|
/**
|
|
1748
1648
|
* @param ped
|
|
@@ -1768,8 +1668,8 @@ export class Player {
|
|
|
1768
1668
|
*
|
|
1769
1669
|
* @returns
|
|
1770
1670
|
*/
|
|
1771
|
-
|
|
1772
|
-
return inv('0x0CBBCB2CCFA7DC4E', this.handle, rai());
|
|
1671
|
+
get Invincible() {
|
|
1672
|
+
return !!inv('0x0CBBCB2CCFA7DC4E', this.handle, rai());
|
|
1773
1673
|
}
|
|
1774
1674
|
resetArrestState() {
|
|
1775
1675
|
inv('0x12917931C31F1750', this.handle);
|
|
@@ -1787,7 +1687,7 @@ export class Player {
|
|
|
1787
1687
|
*
|
|
1788
1688
|
* @param toggle
|
|
1789
1689
|
*/
|
|
1790
|
-
|
|
1690
|
+
set Invincible(toggle) {
|
|
1791
1691
|
inv('0xFEBEEBC9CBDF4B12', this.handle, toggle);
|
|
1792
1692
|
}
|
|
1793
1693
|
/**
|
|
@@ -1795,14 +1695,120 @@ export class Player {
|
|
|
1795
1695
|
*
|
|
1796
1696
|
* @returns
|
|
1797
1697
|
*/
|
|
1798
|
-
|
|
1799
|
-
return inv('0x7964097FCE4C244B', this.handle, rai());
|
|
1698
|
+
get IsControlOn() {
|
|
1699
|
+
return !!inv('0x7964097FCE4C244B', this.handle, rai());
|
|
1800
1700
|
}
|
|
1801
1701
|
/**
|
|
1802
1702
|
* @param vehicle
|
|
1803
1703
|
*/
|
|
1804
|
-
|
|
1704
|
+
set MayOnlyEnterThisVehicle(vehicle) {
|
|
1805
1705
|
inv('0xDA35A134038557EC', this.handle, vehicle.handle);
|
|
1806
1706
|
}
|
|
1707
|
+
/**
|
|
1708
|
+
* @param weaponGroup
|
|
1709
|
+
* @param toggle
|
|
1710
|
+
*/
|
|
1711
|
+
setWeaponGroupAsInstantKill(weaponGroup, toggle) {
|
|
1712
|
+
inv('0x59F0AFF3E0A1B019', this.handle, _h(weaponGroup), toggle);
|
|
1713
|
+
}
|
|
1714
|
+
/**
|
|
1715
|
+
* Returns false if PromptType is enabled
|
|
1716
|
+
* Params: See 0x0751D461F06E41CE
|
|
1717
|
+
*
|
|
1718
|
+
* @param promptType
|
|
1719
|
+
* @param promptMode
|
|
1720
|
+
* @returns
|
|
1721
|
+
*/
|
|
1722
|
+
getUiPromptIsDisabled(promptType, promptMode) {
|
|
1723
|
+
return inv('0x6614F9039BD31931', this.handle, promptType, promptMode);
|
|
1724
|
+
}
|
|
1725
|
+
/**
|
|
1726
|
+
* @param toggle
|
|
1727
|
+
*/
|
|
1728
|
+
set LockonToFriendlyPlayers(toggle) {
|
|
1729
|
+
inv('0x4A056257802DD3E5', this.handle, toggle);
|
|
1730
|
+
}
|
|
1731
|
+
/**
|
|
1732
|
+
* Activates the Surrender prompt for the specified player in the current frame.
|
|
1733
|
+
*
|
|
1734
|
+
* @param targetPed
|
|
1735
|
+
* @param promptOrder
|
|
1736
|
+
* @param p3
|
|
1737
|
+
*/
|
|
1738
|
+
setCooperatePromptThisFrame(targetPed, promptOrder, p3) {
|
|
1739
|
+
inv('0xCBB54CC7FFFFAB86', this.handle, targetPed.handle, promptOrder, p3);
|
|
1740
|
+
}
|
|
1741
|
+
/**
|
|
1742
|
+
* https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePlayerResetFlags
|
|
1743
|
+
* https://github.com/femga/rdr3_discoveries/tree/master/AI/PLAYER_RESET_FLAGS
|
|
1744
|
+
*
|
|
1745
|
+
* @param playerResetFlag
|
|
1746
|
+
* @param p2
|
|
1747
|
+
*/
|
|
1748
|
+
setResetFlag(playerResetFlag, p2) {
|
|
1749
|
+
inv('0x9F9A829C6751F3C7', this.handle, playerResetFlag, p2);
|
|
1750
|
+
}
|
|
1751
|
+
/**
|
|
1752
|
+
* @returns
|
|
1753
|
+
*/
|
|
1754
|
+
get WantedLevel() {
|
|
1755
|
+
return inv('0xABC532F9098BFD9D', this.handle, rai());
|
|
1756
|
+
}
|
|
1757
|
+
/**
|
|
1758
|
+
* @param closeRangeLowerBound
|
|
1759
|
+
* @param closeRangeUpperBound
|
|
1760
|
+
*/
|
|
1761
|
+
setDamageCloseDistanceBonus(closeRangeLowerBound, closeRangeUpperBound) {
|
|
1762
|
+
inv('0x7761A30432C91297', this.handle, f(closeRangeLowerBound), f(closeRangeUpperBound));
|
|
1763
|
+
}
|
|
1764
|
+
/**
|
|
1765
|
+
* @param multiplier
|
|
1766
|
+
*/
|
|
1767
|
+
set SneakingNoiseMultiplier(multiplier) {
|
|
1768
|
+
inv('0x4DE44FA389DCA565', this.handle, f(multiplier));
|
|
1769
|
+
}
|
|
1770
|
+
/**
|
|
1771
|
+
* Sets the player's team.
|
|
1772
|
+
*
|
|
1773
|
+
* @param team
|
|
1774
|
+
* @param bRestrictToThisScript
|
|
1775
|
+
*/
|
|
1776
|
+
setTeam(team, bRestrictToThisScript) {
|
|
1777
|
+
inv('0xE8DD8536F01DE600', this.handle, team, bRestrictToThisScript);
|
|
1778
|
+
}
|
|
1779
|
+
/**
|
|
1780
|
+
* Checks if the player's Deadeye ability is enabled.
|
|
1781
|
+
*
|
|
1782
|
+
* @returns
|
|
1783
|
+
*/
|
|
1784
|
+
get IsSpecialAbilityEnabled() {
|
|
1785
|
+
return inv('0xDE6C85975F9D4894', this.handle);
|
|
1786
|
+
}
|
|
1787
|
+
/**
|
|
1788
|
+
* @param target
|
|
1789
|
+
*/
|
|
1790
|
+
set BountyTarget(target) {
|
|
1791
|
+
inv('0x6ADF821FBF21920E', this.handle, target.handle);
|
|
1792
|
+
}
|
|
1793
|
+
/**
|
|
1794
|
+
* Retrieves whether all trails are currently hidden during Eagle Eye mode for the specified player.
|
|
1795
|
+
*
|
|
1796
|
+
* @returns
|
|
1797
|
+
*/
|
|
1798
|
+
eagleEyeAreAllTrailsHidden() {
|
|
1799
|
+
return inv('0xA62BBAAE67A05BB0', this.handle);
|
|
1800
|
+
}
|
|
1801
|
+
/**
|
|
1802
|
+
* @returns
|
|
1803
|
+
*/
|
|
1804
|
+
get IsDeadeyeTaggingEnabled() {
|
|
1805
|
+
return inv('0x32348719DCED2969', this.handle);
|
|
1806
|
+
}
|
|
1807
|
+
/**
|
|
1808
|
+
* Gets the player's server ID. In multiplayer, this is the player's unique server-side identifier.
|
|
1809
|
+
*/
|
|
1810
|
+
get ServerId() {
|
|
1811
|
+
return inv('0x4D97BCC7', this.handle, rai());
|
|
1812
|
+
}
|
|
1807
1813
|
}
|
|
1808
1814
|
registerHandle('Player', Player);
|