@nativewrappers/redm-codegen 0.0.4 → 0.0.5
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 +96 -96
- package/dist/classes/AnimScene.d.ts.map +1 -1
- package/dist/classes/AnimScene.js +137 -137
- package/dist/classes/BaseModel.d.ts +19 -19
- package/dist/classes/BaseModel.d.ts.map +1 -1
- package/dist/classes/BaseModel.js +33 -33
- package/dist/classes/BaseTask.d.ts +33 -33
- package/dist/classes/BaseTask.d.ts.map +1 -1
- package/dist/classes/BaseTask.js +40 -40
- package/dist/classes/Cam.d.ts +85 -85
- package/dist/classes/Cam.d.ts.map +1 -1
- package/dist/classes/Cam.js +108 -108
- package/dist/classes/Entity.d.ts +288 -283
- package/dist/classes/Entity.d.ts.map +1 -1
- package/dist/classes/Entity.js +410 -401
- 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 +729 -729
- package/dist/classes/PedTask.d.ts.map +1 -1
- package/dist/classes/PedTask.js +935 -935
- package/dist/classes/PersChar.d.ts +13 -13
- package/dist/classes/PersChar.d.ts.map +1 -1
- package/dist/classes/PersChar.js +19 -19
- package/dist/classes/Pickup.d.ts +6 -6
- package/dist/classes/Pickup.d.ts.map +1 -1
- package/dist/classes/Pickup.js +13 -13
- package/dist/classes/Player.d.ts +343 -339
- package/dist/classes/Player.d.ts.map +1 -1
- package/dist/classes/Player.js +495 -489
- package/dist/classes/Prop.d.ts +64 -64
- package/dist/classes/Prop.d.ts.map +1 -1
- package/dist/classes/Prop.js +94 -94
- package/dist/classes/PropSet.d.ts +18 -18
- package/dist/classes/PropSet.d.ts.map +1 -1
- package/dist/classes/PropSet.js +27 -27
- 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 +24 -24
- package/dist/classes/VehicleTask.d.ts.map +1 -1
- package/dist/classes/VehicleTask.js +30 -30
- 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 +351 -351
- package/dist/classes/Weapon.d.ts.map +1 -1
- package/dist/classes/Weapon.js +486 -486
- 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 +48 -48
- package/dist/namespaces/Animscene.d.ts.map +1 -1
- package/dist/namespaces/Animscene.js +65 -65
- package/dist/namespaces/Audio.d.ts +476 -476
- package/dist/namespaces/Audio.d.ts.map +1 -1
- package/dist/namespaces/Audio.js +692 -692
- package/dist/namespaces/Bounty.d.ts +57 -57
- package/dist/namespaces/Bounty.d.ts.map +1 -1
- package/dist/namespaces/Bounty.js +90 -90
- package/dist/namespaces/CamStatics.d.ts +432 -432
- package/dist/namespaces/CamStatics.d.ts.map +1 -1
- package/dist/namespaces/CamStatics.js +606 -606
- package/dist/namespaces/Collection.d.ts +78 -78
- package/dist/namespaces/Collection.d.ts.map +1 -1
- package/dist/namespaces/Collection.js +111 -111
- package/dist/namespaces/Companion.d.ts +22 -22
- package/dist/namespaces/Companion.d.ts.map +1 -1
- package/dist/namespaces/Companion.js +30 -30
- package/dist/namespaces/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.d.ts +10 -10
- package/dist/namespaces/Crashlog.d.ts.map +1 -1
- package/dist/namespaces/Crashlog.js +21 -21
- package/dist/namespaces/Crew.js +4 -4
- package/dist/namespaces/Databinding.d.ts +154 -154
- package/dist/namespaces/Databinding.d.ts.map +1 -1
- package/dist/namespaces/Databinding.js +222 -222
- 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.d.ts +5 -5
- package/dist/namespaces/Dlc.d.ts.map +1 -1
- package/dist/namespaces/Dlc.js +9 -9
- package/dist/namespaces/EntityStatics.d.ts +80 -80
- package/dist/namespaces/EntityStatics.d.ts.map +1 -1
- package/dist/namespaces/EntityStatics.js +113 -113
- 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 +781 -781
- package/dist/namespaces/Graphics.d.ts.map +1 -1
- package/dist/namespaces/Graphics.js +1207 -1207
- package/dist/namespaces/Hud.d.ts +483 -483
- package/dist/namespaces/Hud.d.ts.map +1 -1
- package/dist/namespaces/Hud.js +678 -678
- 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 +211 -211
- package/dist/namespaces/Inventory.d.ts.map +1 -1
- package/dist/namespaces/Inventory.js +291 -291
- package/dist/namespaces/Itemdatabase.js +3 -3
- 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.js +3 -3
- package/dist/namespaces/Minigame.d.ts +65 -65
- package/dist/namespaces/Minigame.d.ts.map +1 -1
- package/dist/namespaces/Minigame.js +105 -105
- 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.d.ts +15 -15
- package/dist/namespaces/Missiondata.d.ts.map +1 -1
- package/dist/namespaces/Missiondata.js +24 -24
- 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 +1067 -1067
- package/dist/namespaces/Network.d.ts.map +1 -1
- package/dist/namespaces/Network.js +1586 -1586
- package/dist/namespaces/Object.d.ts +231 -231
- package/dist/namespaces/Object.d.ts.map +1 -1
- package/dist/namespaces/Object.js +337 -337
- package/dist/namespaces/Pad.d.ts +42 -42
- package/dist/namespaces/Pad.d.ts.map +1 -1
- package/dist/namespaces/Pad.js +68 -68
- 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 +54 -54
- package/dist/namespaces/Perschar.d.ts.map +1 -1
- package/dist/namespaces/Perschar.js +84 -84
- package/dist/namespaces/Physics.d.ts +121 -121
- package/dist/namespaces/Physics.d.ts.map +1 -1
- package/dist/namespaces/Physics.js +155 -155
- package/dist/namespaces/PlayerStatics.d.ts +97 -97
- package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
- package/dist/namespaces/PlayerStatics.js +142 -142
- package/dist/namespaces/Population.d.ts +11 -11
- package/dist/namespaces/Population.d.ts.map +1 -1
- package/dist/namespaces/Population.js +15 -15
- package/dist/namespaces/Posse.d.ts +33 -33
- package/dist/namespaces/Posse.d.ts.map +1 -1
- package/dist/namespaces/Posse.js +51 -51
- 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/Shapetest.d.ts +11 -11
- package/dist/namespaces/Shapetest.d.ts.map +1 -1
- package/dist/namespaces/Shapetest.js +13 -13
- 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 +191 -191
- package/dist/namespaces/Stats.d.ts.map +1 -1
- package/dist/namespaces/Stats.js +281 -281
- package/dist/namespaces/Streaming.d.ts +84 -84
- package/dist/namespaces/Streaming.d.ts.map +1 -1
- package/dist/namespaces/Streaming.js +137 -137
- package/dist/namespaces/Task.d.ts +347 -347
- package/dist/namespaces/Task.d.ts.map +1 -1
- package/dist/namespaces/Task.js +488 -488
- package/dist/namespaces/Telemetry.d.ts +151 -151
- package/dist/namespaces/Telemetry.d.ts.map +1 -1
- package/dist/namespaces/Telemetry.js +206 -206
- 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.d.ts +15 -15
- package/dist/namespaces/Uifeed.d.ts.map +1 -1
- package/dist/namespaces/Uifeed.js +25 -25
- 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.d.ts +38 -38
- package/dist/namespaces/Voice.d.ts.map +1 -1
- package/dist/namespaces/Voice.js +61 -61
- 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/WeaponStatics.d.ts +276 -276
- package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
- package/dist/namespaces/WeaponStatics.js +371 -371
- 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 +159 -159
- package/src/classes/BaseModel.ts +37 -37
- package/src/classes/BaseTask.ts +41 -41
- package/src/classes/Cam.ts +111 -111
- package/src/classes/Entity.ts +422 -411
- 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 +957 -957
- package/src/classes/PersChar.ts +22 -22
- package/src/classes/Pickup.ts +14 -14
- package/src/classes/Player.ts +994 -987
- package/src/classes/Prop.ts +106 -106
- package/src/classes/PropSet.ts +29 -29
- package/src/classes/Vehicle.ts +147 -147
- package/src/classes/VehicleModel.ts +2 -2
- package/src/classes/VehicleTask.ts +31 -31
- package/src/classes/Volume.ts +62 -62
- package/src/classes/Weapon.ts +511 -511
- package/src/namespaces/Aicoverpoint.ts +40 -40
- package/src/namespaces/Aitransport.ts +104 -104
- package/src/namespaces/Animscene.ts +71 -71
- package/src/namespaces/Audio.ts +725 -725
- package/src/namespaces/Bounty.ts +102 -102
- package/src/namespaces/CamStatics.ts +700 -700
- package/src/namespaces/Collection.ts +113 -113
- package/src/namespaces/Companion.ts +34 -34
- package/src/namespaces/Compapp.ts +1 -1
- package/src/namespaces/Compendium.ts +94 -94
- package/src/namespaces/Crashlog.ts +23 -23
- package/src/namespaces/Crew.ts +4 -4
- package/src/namespaces/Databinding.ts +237 -237
- package/src/namespaces/Datafile.ts +4 -4
- package/src/namespaces/Decorator.ts +37 -37
- package/src/namespaces/Dlc.ts +9 -9
- package/src/namespaces/EntityStatics.ts +117 -117
- 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 +1218 -1218
- package/src/namespaces/Hud.ts +696 -696
- 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 +294 -294
- package/src/namespaces/Itemdatabase.ts +3 -3
- 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 +3 -3
- package/src/namespaces/Minigame.ts +109 -109
- package/src/namespaces/Misc.ts +38 -38
- package/src/namespaces/Missiondata.ts +28 -28
- package/src/namespaces/Money.ts +3 -3
- package/src/namespaces/Netshopping.ts +99 -99
- package/src/namespaces/Network.ts +1616 -1616
- package/src/namespaces/Object.ts +344 -344
- package/src/namespaces/Pad.ts +76 -76
- package/src/namespaces/Pathfind.ts +10 -10
- package/src/namespaces/PedStatics.ts +12 -12
- package/src/namespaces/Perschar.ts +86 -86
- package/src/namespaces/Physics.ts +171 -171
- package/src/namespaces/PlayerStatics.ts +162 -162
- package/src/namespaces/Population.ts +17 -17
- package/src/namespaces/Posse.ts +54 -54
- package/src/namespaces/Propset.ts +92 -92
- package/src/namespaces/Replay.ts +3 -3
- package/src/namespaces/Scripts.ts +13 -13
- package/src/namespaces/Shapetest.ts +14 -14
- 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 +287 -287
- package/src/namespaces/Streaming.ts +159 -159
- package/src/namespaces/Task.ts +517 -517
- package/src/namespaces/Telemetry.ts +224 -224
- 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 +28 -28
- 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 +70 -70
- package/src/namespaces/VolumeStatics.ts +143 -143
- package/src/namespaces/WeaponStatics.ts +383 -383
- package/src/types/NativeAliases.ts +6 -1
package/dist/classes/Player.js
CHANGED
|
@@ -13,8 +13,8 @@ export class Player {
|
|
|
13
13
|
*
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
return inv('0x2FB0ACADA6A238DD', this.handle, rai());
|
|
16
|
+
get IsRidingTrain() {
|
|
17
|
+
return !!inv('0x2FB0ACADA6A238DD', this.handle, rai());
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Sets whether all trails are hidden during Eagle Eye mode.
|
|
@@ -30,7 +30,7 @@ export class Player {
|
|
|
30
30
|
* @returns
|
|
31
31
|
*/
|
|
32
32
|
N_0x621D1B289CAF5978() {
|
|
33
|
-
return inv('0x621D1B289CAF5978', this.handle, rai());
|
|
33
|
+
return !!inv('0x621D1B289CAF5978', this.handle, rai());
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Decreases the damage the player receives while on horseback
|
|
@@ -38,13 +38,13 @@ export class Player {
|
|
|
38
38
|
*
|
|
39
39
|
* @param damageDecrease
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
set ReceivedDamageTakenOnHorsebackModifier(damageDecrease) {
|
|
42
42
|
inv('0xB427911EA6DFFEF3', this.handle, f(damageDecrease));
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* @param toggle
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
set CanMercyKill(toggle) {
|
|
48
48
|
inv('0x39363DFD04E91496', this.handle, toggle);
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
@@ -58,7 +58,7 @@ export class Player {
|
|
|
58
58
|
/**
|
|
59
59
|
* @param speech
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
set InteractionPositiveResponse(speech) {
|
|
62
62
|
inv('0xC6366A585659D15C', this.handle, speech);
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
@@ -66,7 +66,7 @@ export class Player {
|
|
|
66
66
|
*
|
|
67
67
|
* @param multiplier
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
set AirDragMultiplierForPlayersVehicle(multiplier) {
|
|
70
70
|
inv('0x5DA6500FE849DA16', this.handle, f(multiplier));
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
@@ -74,7 +74,7 @@ export class Player {
|
|
|
74
74
|
*
|
|
75
75
|
* @param wagon
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
set HuntingWagon(wagon) {
|
|
78
78
|
inv('0x6A4404BDFA62CE2C', this.handle, wagon.handle);
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
@@ -92,7 +92,7 @@ export class Player {
|
|
|
92
92
|
/**
|
|
93
93
|
* @param target
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
set BountyTarget(target) {
|
|
96
96
|
inv('0x6ADF821FBF21920E', this.handle, target.handle);
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
@@ -106,9 +106,183 @@ export class Player {
|
|
|
106
106
|
/**
|
|
107
107
|
* @returns
|
|
108
108
|
*/
|
|
109
|
-
|
|
109
|
+
get IsDeadeyeTaggingEnabled() {
|
|
110
110
|
return inv('0x32348719DCED2969', this.handle);
|
|
111
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Sets Player's Defense against AI modifier
|
|
114
|
+
*
|
|
115
|
+
* @param modifier
|
|
116
|
+
*/
|
|
117
|
+
set AiDefenseModifierAgainstAi(modifier) {
|
|
118
|
+
inv('0x914071FF93AF2692', this.handle, f(modifier));
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Gets the player's team.
|
|
122
|
+
* Returns -1 in singleplayer.
|
|
123
|
+
*
|
|
124
|
+
* @returns
|
|
125
|
+
*/
|
|
126
|
+
get Team() {
|
|
127
|
+
return inv('0xB464EB6A40C7975B', this.handle, rai());
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* @returns
|
|
131
|
+
*/
|
|
132
|
+
get HealthRechargeMultiplier() {
|
|
133
|
+
return inv('0x22CD23BB0C45E0CD', this.handle, raf());
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Used in script function: NET_AUTO_FOLLOW_UPDATE_LEADER_VALUES
|
|
137
|
+
* followMode:
|
|
138
|
+
* HORSEFOLLOWMODE_AUTO = 0,
|
|
139
|
+
* HORSEFOLLOWMODE_SIDE_ONLY,
|
|
140
|
+
* HORSEFOLLOWMODE_BEHIND_ONLY,
|
|
141
|
+
* HORSEFOLLOWMODE_BEHIND_AND_SIDE,
|
|
142
|
+
* HORSEFOLLOWMODE_BEHIND_CLOSE
|
|
143
|
+
* followPriority:
|
|
144
|
+
* HORSEFOLLOWPRIORITY_STEER_ASSIST = 0,
|
|
145
|
+
* HORSEFOLLOWPRIORITY_AMBIENT,
|
|
146
|
+
* HORSEFOLLOWPRIORITY_NORMAL,
|
|
147
|
+
* HORSEFOLLOWPRIORITY_HIGH
|
|
148
|
+
*
|
|
149
|
+
* @param ped
|
|
150
|
+
* @param p2
|
|
151
|
+
* @param p3
|
|
152
|
+
* @param followMode
|
|
153
|
+
* @param followPriority
|
|
154
|
+
* @param p6
|
|
155
|
+
*/
|
|
156
|
+
addAsFollowTarget(ped, p2, p3, followMode, followPriority, p6) {
|
|
157
|
+
inv('0xAC22AA6DF4D1C1DE', this.handle, ped.handle, f(p2), f(p3), followMode, followPriority, p6);
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Sets the stand prompt for a specific player using a predefined text entry. use AddTextEntry for promptTextKey for custom names
|
|
161
|
+
*
|
|
162
|
+
* @param promptTextKey
|
|
163
|
+
*/
|
|
164
|
+
set PromptLeaveText(promptTextKey) {
|
|
165
|
+
inv('0x06C3DB00B69D5435', this.handle, promptTextKey);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Retrieves the number of marks placed on a PED when Deadeye mode is active for the specified player.
|
|
169
|
+
*
|
|
170
|
+
* @param ped
|
|
171
|
+
* @returns
|
|
172
|
+
*/
|
|
173
|
+
getNumDeadeyeMarksOnPed(ped) {
|
|
174
|
+
return inv('0x27AD7162D3FED01E', this.handle, ped.handle);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @returns
|
|
178
|
+
*/
|
|
179
|
+
get Ped2() {
|
|
180
|
+
return createFromHandle('Ped', inv('0x5EBE38A20BC51C27', this.handle, rai()));
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* @param p1
|
|
184
|
+
* @returns
|
|
185
|
+
*/
|
|
186
|
+
getIsUiPromptActive(p1) {
|
|
187
|
+
return inv('0x51BEA356B1C60225', this.handle, p1);
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Returns true if PromptType is enabled for ped (mount)
|
|
191
|
+
* Params: See 0x0751D461F06E41CE
|
|
192
|
+
*
|
|
193
|
+
* @param ped
|
|
194
|
+
* @param promptType
|
|
195
|
+
* @param promptMode
|
|
196
|
+
* @returns
|
|
197
|
+
*/
|
|
198
|
+
getUiPromptForPedIsEnabled(ped, promptType, promptMode) {
|
|
199
|
+
return inv('0xEA8F168A76A0B9BC', this.handle, ped.handle, promptType, promptMode);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Applies a aura effect to nearby entities when Deadeye is active, based on a flag parameter. This includes humans, animals, vehicles, and horses pulling those vehicles. Additionally, depending on the flag value, the player's appearance may change (e.g., turning gray).
|
|
203
|
+
*
|
|
204
|
+
* @param flag
|
|
205
|
+
*/
|
|
206
|
+
set DeadeyeEntityAuraWithFlag(flag) {
|
|
207
|
+
inv('0x2B12B6FC8B8772AB', this.handle, flag);
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* @returns
|
|
211
|
+
*/
|
|
212
|
+
get MountOwnedByPlayer() {
|
|
213
|
+
return createFromHandle('Ped', inv('0xF49F14462F0AE27C', this.handle, rai()));
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* @param weaponHash Refer to [enum: eWeaponHash]
|
|
217
|
+
* @param damageModifier
|
|
218
|
+
*/
|
|
219
|
+
setWeaponTypeDamageModifier(weaponHash, damageModifier) {
|
|
220
|
+
inv('0xD04AD186CE8BB129', this.handle, weaponHash, f(damageModifier));
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Only used in script function PROCESS_PED_INTERRUPT_DIALOGUE
|
|
224
|
+
* *GET_PLAYER**
|
|
225
|
+
*
|
|
226
|
+
* @returns ped
|
|
227
|
+
*/
|
|
228
|
+
N_0x7AE93C45EC14A166() {
|
|
229
|
+
const result = inv('0x7AE93C45EC14A166', this.handle, pvi(), rai());
|
|
230
|
+
return [!!result[0], createFromHandle('Ped', result[1])];
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* @param speed
|
|
234
|
+
* @param duration
|
|
235
|
+
* @param heading
|
|
236
|
+
* @param p4
|
|
237
|
+
* @param p5
|
|
238
|
+
*/
|
|
239
|
+
simulateInputGait(speed, duration, heading, p4, p5) {
|
|
240
|
+
inv('0xFA0C063C422C4355', this.handle, f(speed), duration, f(heading), p4, p5);
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* @param p1
|
|
244
|
+
* @returns
|
|
245
|
+
*/
|
|
246
|
+
getDeadEyeMeterLevel(p1) {
|
|
247
|
+
return inv('0x3A6AE4EEE30370FE', this.handle, p1, raf());
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* @param drawReductionTime
|
|
251
|
+
*/
|
|
252
|
+
set BowDrawReductionTimeInDeadeye(drawReductionTime) {
|
|
253
|
+
inv('0xBE0C524970892D41', this.handle, f(drawReductionTime));
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Checks if the player can focus on tracks while in Eagle Eye mode. Returns true if the player is able to focus on a track, otherwise false.
|
|
257
|
+
*
|
|
258
|
+
* @returns
|
|
259
|
+
*/
|
|
260
|
+
eagleEyeCanFocusOnTrack() {
|
|
261
|
+
return inv('0x1DA5C5B0923E1B85', this.handle);
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* @param range
|
|
265
|
+
*/
|
|
266
|
+
eagleEyeSetRange(range) {
|
|
267
|
+
inv('0x22C8B10802301381', this.handle, f(range));
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* *SET_SPECIAL_ABILITY**
|
|
271
|
+
*
|
|
272
|
+
* @param p1
|
|
273
|
+
*/
|
|
274
|
+
N_0x4D1699543B1C023C(p1) {
|
|
275
|
+
inv('0x4D1699543B1C023C', this.handle, f(p1));
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Drains Deadeye by given amount.
|
|
279
|
+
*
|
|
280
|
+
* @param amount
|
|
281
|
+
* @param p2
|
|
282
|
+
*/
|
|
283
|
+
specialAbilityDrainByAmount(amount, p2) {
|
|
284
|
+
inv('0x200114E99552462B', this.handle, f(amount), p2);
|
|
285
|
+
}
|
|
112
286
|
/**
|
|
113
287
|
* @param weaponGroup
|
|
114
288
|
* @param toggle
|
|
@@ -130,7 +304,7 @@ export class Player {
|
|
|
130
304
|
/**
|
|
131
305
|
* @param toggle
|
|
132
306
|
*/
|
|
133
|
-
|
|
307
|
+
set LockonToFriendlyPlayers(toggle) {
|
|
134
308
|
inv('0x4A056257802DD3E5', this.handle, toggle);
|
|
135
309
|
}
|
|
136
310
|
/**
|
|
@@ -156,7 +330,7 @@ export class Player {
|
|
|
156
330
|
/**
|
|
157
331
|
* @returns
|
|
158
332
|
*/
|
|
159
|
-
|
|
333
|
+
get WantedLevel() {
|
|
160
334
|
return inv('0xABC532F9098BFD9D', this.handle, rai());
|
|
161
335
|
}
|
|
162
336
|
/**
|
|
@@ -169,7 +343,7 @@ export class Player {
|
|
|
169
343
|
/**
|
|
170
344
|
* @param multiplier
|
|
171
345
|
*/
|
|
172
|
-
|
|
346
|
+
set SneakingNoiseMultiplier(multiplier) {
|
|
173
347
|
inv('0x4DE44FA389DCA565', this.handle, f(multiplier));
|
|
174
348
|
}
|
|
175
349
|
/**
|
|
@@ -186,101 +360,257 @@ export class Player {
|
|
|
186
360
|
*
|
|
187
361
|
* @returns
|
|
188
362
|
*/
|
|
189
|
-
|
|
363
|
+
get IsSpecialAbilityEnabled() {
|
|
190
364
|
return inv('0xDE6C85975F9D4894', this.handle);
|
|
191
365
|
}
|
|
192
366
|
/**
|
|
193
|
-
* @param
|
|
367
|
+
* @param p2
|
|
368
|
+
* @param p3
|
|
369
|
+
* @returns outEntity
|
|
194
370
|
*/
|
|
195
|
-
|
|
196
|
-
inv('
|
|
371
|
+
getInteractionTargetEntity(p2, p3) {
|
|
372
|
+
const result = inv('0x3EE1F7A8C32F24E1', this.handle, pvi(), p2, p3);
|
|
373
|
+
return [result[0], createFromHandle('Entity', result[1])];
|
|
197
374
|
}
|
|
198
375
|
/**
|
|
199
|
-
* @param
|
|
200
|
-
* @param amount
|
|
376
|
+
* @param toggle
|
|
201
377
|
*/
|
|
202
|
-
|
|
203
|
-
inv('
|
|
378
|
+
set DeadeyeTaggingEnabled(toggle) {
|
|
379
|
+
inv('0x6B5DDFB967E5073D', this.handle, toggle);
|
|
204
380
|
}
|
|
205
381
|
/**
|
|
206
|
-
* @
|
|
382
|
+
* @returns
|
|
207
383
|
*/
|
|
208
|
-
|
|
209
|
-
inv('
|
|
210
|
-
}
|
|
211
|
-
setAllNeutralRandomPedsFleeThisFrame() {
|
|
212
|
-
inv('0x16752DAA7E6D3F72', this.handle);
|
|
384
|
+
get Stamina() {
|
|
385
|
+
return inv('0x0FF421E467373FCF', this.handle, raf());
|
|
213
386
|
}
|
|
214
387
|
/**
|
|
215
|
-
* @param
|
|
388
|
+
* @param modifier
|
|
216
389
|
*/
|
|
217
|
-
|
|
218
|
-
inv('
|
|
390
|
+
set MeleeWeaponDamageModifier(modifier) {
|
|
391
|
+
inv('0xE4CB5A3F18170381', this.handle, f(modifier));
|
|
219
392
|
}
|
|
220
393
|
/**
|
|
221
394
|
* @returns
|
|
222
395
|
*/
|
|
223
|
-
|
|
224
|
-
return inv('
|
|
225
|
-
}
|
|
226
|
-
clearHasDamagedAtLeastOnePed() {
|
|
227
|
-
inv('0x270B63A641BE32F2', this.handle);
|
|
396
|
+
hasBeenSpottedInStolenVehicle() {
|
|
397
|
+
return !!inv('0xC932F57F31EA9152', this.handle, rai());
|
|
228
398
|
}
|
|
229
399
|
/**
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
* @
|
|
400
|
+
* 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.
|
|
401
|
+
*
|
|
402
|
+
* @param canPickup
|
|
233
403
|
*/
|
|
234
|
-
|
|
235
|
-
|
|
404
|
+
set CanPickupHat(canPickup) {
|
|
405
|
+
inv('0xACA45DDCEF6071C4', this.handle, canPickup);
|
|
236
406
|
}
|
|
237
407
|
/**
|
|
238
|
-
*
|
|
408
|
+
* 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
|
|
409
|
+
* some colors
|
|
410
|
+
* 0: Default aura
|
|
411
|
+
* 1014693585
|
|
412
|
+
* 1936842089
|
|
413
|
+
* 1979474018
|
|
239
414
|
*
|
|
240
|
-
* @
|
|
415
|
+
* @param auraColorHash
|
|
241
416
|
*/
|
|
242
|
-
|
|
243
|
-
|
|
417
|
+
set DeadEyeAuraByHash(auraColorHash) {
|
|
418
|
+
inv('0x768E81AE285A4B67', this.handle, _h(auraColorHash));
|
|
244
419
|
}
|
|
245
420
|
/**
|
|
246
|
-
* @param
|
|
421
|
+
* @param horse
|
|
422
|
+
* @returns
|
|
247
423
|
*/
|
|
248
|
-
|
|
249
|
-
inv('
|
|
424
|
+
setPedAsTempHorse(horse) {
|
|
425
|
+
return inv('0x227B06324234FB09', this.handle, horse.handle);
|
|
250
426
|
}
|
|
251
427
|
/**
|
|
252
|
-
*
|
|
428
|
+
* Restores Deadeye by given amount.
|
|
429
|
+
* Params: p2, p3, p4 = 0, 0, 1 in R* Scripts
|
|
253
430
|
*
|
|
254
|
-
* @param
|
|
431
|
+
* @param amount
|
|
255
432
|
* @param p2
|
|
433
|
+
* @param p3
|
|
434
|
+
* @param p4
|
|
256
435
|
*/
|
|
257
|
-
|
|
258
|
-
inv('
|
|
436
|
+
specialAbilityRestoreByAmount(amount, p2, p3, p4) {
|
|
437
|
+
inv('0x51345AE20F22C261', this.handle, f(amount), p2, p3, p4);
|
|
259
438
|
}
|
|
260
439
|
/**
|
|
261
|
-
*
|
|
440
|
+
* Only used in R* SP Script short_update
|
|
441
|
+
*
|
|
442
|
+
* @param delay
|
|
262
443
|
*/
|
|
263
|
-
|
|
264
|
-
inv('
|
|
444
|
+
set DeadeyeAbilityDepletionDelay(delay) {
|
|
445
|
+
inv('0x870634493CB4372C', this.handle, f(delay));
|
|
265
446
|
}
|
|
266
447
|
/**
|
|
267
|
-
*
|
|
268
|
-
*
|
|
448
|
+
* Swim speed multiplier.
|
|
449
|
+
* Multiplier goes up to 1.49f
|
|
269
450
|
*
|
|
270
|
-
* @param
|
|
271
|
-
* @param allow
|
|
451
|
+
* @param multiplier
|
|
272
452
|
*/
|
|
273
|
-
|
|
274
|
-
inv('
|
|
453
|
+
set SwimMultiplierForPlayer(multiplier) {
|
|
454
|
+
inv('0xBFCEABDE34DA5085', this.handle, f(multiplier));
|
|
275
455
|
}
|
|
276
456
|
/**
|
|
277
|
-
* @
|
|
457
|
+
* @returns
|
|
278
458
|
*/
|
|
279
|
-
|
|
280
|
-
inv('
|
|
459
|
+
get IsDead() {
|
|
460
|
+
return !!inv('0x2E9C3FCB6798F397', this.handle, rai());
|
|
281
461
|
}
|
|
282
462
|
/**
|
|
283
|
-
*
|
|
463
|
+
* @param ped
|
|
464
|
+
* @param p2
|
|
465
|
+
*/
|
|
466
|
+
N_0x310CE349E0C0EC4B(ped, p2) {
|
|
467
|
+
inv('0x310CE349E0C0EC4B', this.handle, ped.handle, p2);
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Clears all Eagle Eye trails that were registered for entities associated with the specified player.
|
|
471
|
+
*/
|
|
472
|
+
eagleEyeClearRegisteredTrails() {
|
|
473
|
+
inv('0xE5D3EB37ABC1EB03', this.handle);
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* @param enable
|
|
477
|
+
*/
|
|
478
|
+
enableCustomDeadeyeAbility(enable) {
|
|
479
|
+
inv('0x95EE1DEE1DCD9070', this.handle, enable);
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* Returns the player's invincibility status.
|
|
483
|
+
*
|
|
484
|
+
* @returns
|
|
485
|
+
*/
|
|
486
|
+
get Invincible() {
|
|
487
|
+
return !!inv('0x0CBBCB2CCFA7DC4E', this.handle, rai());
|
|
488
|
+
}
|
|
489
|
+
resetArrestState() {
|
|
490
|
+
inv('0x12917931C31F1750', this.handle);
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* Toggle handles wether Deadeye and Eagleeye are infinite or not.
|
|
494
|
+
*
|
|
495
|
+
* @param toggle
|
|
496
|
+
*/
|
|
497
|
+
modifyInfiniteTrailVision(toggle) {
|
|
498
|
+
inv('0x28A13BF6B05C3D83', this.handle, toggle);
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Simply sets you as invincible (Health will not deplete).
|
|
502
|
+
*
|
|
503
|
+
* @param toggle
|
|
504
|
+
*/
|
|
505
|
+
set Invincible(toggle) {
|
|
506
|
+
inv('0xFEBEEBC9CBDF4B12', this.handle, toggle);
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Returns whether the player can control himself.
|
|
510
|
+
*
|
|
511
|
+
* @returns
|
|
512
|
+
*/
|
|
513
|
+
get IsControlOn() {
|
|
514
|
+
return !!inv('0x7964097FCE4C244B', this.handle, rai());
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* @param vehicle
|
|
518
|
+
*/
|
|
519
|
+
set MayOnlyEnterThisVehicle(vehicle) {
|
|
520
|
+
inv('0xDA35A134038557EC', this.handle, vehicle.handle);
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* @param disabled
|
|
524
|
+
*/
|
|
525
|
+
specialAbilitySetDisabled(disabled) {
|
|
526
|
+
inv('0xAE637BB8EF017875', this.handle, disabled);
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* @param ammoType
|
|
530
|
+
* @param amount
|
|
531
|
+
*/
|
|
532
|
+
setMaxAmmoOverrideForAmmoType(ammoType, amount) {
|
|
533
|
+
inv('0xE133C1EC5300F740', this.handle, _h(ammoType), amount);
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* @param p1
|
|
537
|
+
*/
|
|
538
|
+
eagleEyeSetTrackingUpgrade2(p1) {
|
|
539
|
+
inv('0x6FA957D1B55941C1', this.handle, f(p1));
|
|
540
|
+
}
|
|
541
|
+
setAllNeutralRandomPedsFleeThisFrame() {
|
|
542
|
+
inv('0x16752DAA7E6D3F72', this.handle);
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* @param p1
|
|
546
|
+
*/
|
|
547
|
+
restoreStamina(p1) {
|
|
548
|
+
inv('0xC41F4B6E23FE6A4A', this.handle, f(p1));
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* @returns
|
|
552
|
+
*/
|
|
553
|
+
get CachedDeadEyeAmount() {
|
|
554
|
+
return inv('0xDF66A37936D5F3D9', this.handle, raf());
|
|
555
|
+
}
|
|
556
|
+
clearHasDamagedAtLeastOnePed() {
|
|
557
|
+
inv('0x270B63A641BE32F2', this.handle);
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* @param entity
|
|
561
|
+
* @param p2
|
|
562
|
+
* @returns
|
|
563
|
+
*/
|
|
564
|
+
isTargettingEntity(entity, p2) {
|
|
565
|
+
return !!inv('0x27F89FDC16688A7A', this.handle, entity.handle, p2, rai());
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* If player has less Dead Eye than required, Dead Eye cant be triggered.
|
|
569
|
+
*
|
|
570
|
+
* @returns
|
|
571
|
+
*/
|
|
572
|
+
get RequiredDeadEyeAmount() {
|
|
573
|
+
return inv('0x811A748B1BE231BA', this.handle, raf());
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* @param p1
|
|
577
|
+
*/
|
|
578
|
+
N_0x263D69767F76059C(p1) {
|
|
579
|
+
inv('0x263D69767F76059C', this.handle, p1);
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* Make sure to request the model first and wait until it has loaded.
|
|
583
|
+
*
|
|
584
|
+
* @param modelHash
|
|
585
|
+
* @param p2
|
|
586
|
+
*/
|
|
587
|
+
setModel(modelHash, p2) {
|
|
588
|
+
inv('0xED40380076A31506', this.handle, _h(modelHash), p2);
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* @param toggle
|
|
592
|
+
*/
|
|
593
|
+
set Lockon(toggle) {
|
|
594
|
+
inv('0x462AA1973CBBA75E', this.handle, toggle);
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* Sets the player's ability to wear hats based on the specified flag. The flag value determines whether the player can wear all hats or only the ones they own.
|
|
598
|
+
* If the flag is set to 15 and `allow` is true, the player can wear all available hats. However, if you want to restrict the player to wearing only their owned hats (flag 1), you **must first** disable flag 15 by setting it to false, and then set flag 1 to true.
|
|
599
|
+
*
|
|
600
|
+
* @param flag
|
|
601
|
+
* @param allow
|
|
602
|
+
*/
|
|
603
|
+
setHatAccess(flag, allow) {
|
|
604
|
+
inv('0xA0C683284DF027C7', this.handle, flag, allow);
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* @param closeDamageBonus
|
|
608
|
+
*/
|
|
609
|
+
set DamageCloseDistanceBonusTotal(closeDamageBonus) {
|
|
610
|
+
inv('0x5006C36652D6EC56', this.handle, f(closeDamageBonus));
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* Params: p1 = -1 in R* Scripts
|
|
284
614
|
*
|
|
285
615
|
* @param p1
|
|
286
616
|
* @param p2
|
|
@@ -291,7 +621,7 @@ export class Player {
|
|
|
291
621
|
/**
|
|
292
622
|
* @param multiplier
|
|
293
623
|
*/
|
|
294
|
-
|
|
624
|
+
set StaminaSprintDepletionMultiplier(multiplier) {
|
|
295
625
|
inv('0xBBADFB5E5E5766FB', this.handle, f(multiplier));
|
|
296
626
|
}
|
|
297
627
|
/**
|
|
@@ -305,26 +635,26 @@ export class Player {
|
|
|
305
635
|
*
|
|
306
636
|
* @returns entity
|
|
307
637
|
*/
|
|
308
|
-
|
|
638
|
+
get InteractionAimEntity() {
|
|
309
639
|
const result = inv('0xBEA3A6E5F5F79A6F', this.handle, pvi(), rai());
|
|
310
640
|
return [!!result[0], createFromHandle('Entity', result[1])];
|
|
311
641
|
}
|
|
312
642
|
/**
|
|
313
643
|
* @param modifier
|
|
314
644
|
*/
|
|
315
|
-
|
|
645
|
+
set WeaponDefenseModifier(modifier) {
|
|
316
646
|
inv('0xD15CC2D493160BE3', this.handle, f(modifier));
|
|
317
647
|
}
|
|
318
648
|
/**
|
|
319
649
|
* @returns
|
|
320
650
|
*/
|
|
321
651
|
hasDamagedAtLeastOneNonAnimalPed() {
|
|
322
|
-
return inv('0x16C8D205DD5A2E90', this.handle, rai());
|
|
652
|
+
return !!inv('0x16C8D205DD5A2E90', this.handle, rai());
|
|
323
653
|
}
|
|
324
654
|
/**
|
|
325
655
|
* @returns
|
|
326
656
|
*/
|
|
327
|
-
|
|
657
|
+
get DeadeyeAbilityLevel() {
|
|
328
658
|
return inv('0xCCE7C695C164C35F', this.handle, rai());
|
|
329
659
|
}
|
|
330
660
|
/**
|
|
@@ -332,8 +662,8 @@ export class Player {
|
|
|
332
662
|
*
|
|
333
663
|
* @returns
|
|
334
664
|
*/
|
|
335
|
-
|
|
336
|
-
return inv('0x2009F8AB7A5E9D6D', this.handle, rai());
|
|
665
|
+
get IsOnMountLockonEntity() {
|
|
666
|
+
return !!inv('0x2009F8AB7A5E9D6D', this.handle, rai());
|
|
337
667
|
}
|
|
338
668
|
suppressWitnessesCallingPoliceThisFrame() {
|
|
339
669
|
inv('0x96722257E5381E00', this.handle);
|
|
@@ -377,13 +707,13 @@ export class Player {
|
|
|
377
707
|
/**
|
|
378
708
|
* @param accuracy
|
|
379
709
|
*/
|
|
380
|
-
|
|
710
|
+
set TotalAccuracyModifier(accuracy) {
|
|
381
711
|
inv('0x967FF5BC0CFE6D26', this.handle, f(accuracy));
|
|
382
712
|
}
|
|
383
713
|
/**
|
|
384
714
|
* @returns
|
|
385
715
|
*/
|
|
386
|
-
|
|
716
|
+
get VehicleOwnedByPlayer() {
|
|
387
717
|
return createFromHandle('Vehicle', inv('0xB9050A97594C8832', this.handle, rai()));
|
|
388
718
|
}
|
|
389
719
|
/**
|
|
@@ -398,7 +728,7 @@ export class Player {
|
|
|
398
728
|
* @returns
|
|
399
729
|
*/
|
|
400
730
|
N_0x927861B2C08DBEA5() {
|
|
401
|
-
return inv('0x927861B2C08DBEA5', this.handle, rai());
|
|
731
|
+
return !!inv('0x927861B2C08DBEA5', this.handle, rai());
|
|
402
732
|
}
|
|
403
733
|
/**
|
|
404
734
|
* 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 +746,7 @@ export class Player {
|
|
|
416
746
|
/**
|
|
417
747
|
* @param multiplier
|
|
418
748
|
*/
|
|
419
|
-
|
|
749
|
+
set StaminaRechargeMultiplier(multiplier) {
|
|
420
750
|
inv('0xFECA17CF3343694B', this.handle, f(multiplier));
|
|
421
751
|
}
|
|
422
752
|
/**
|
|
@@ -431,7 +761,7 @@ export class Player {
|
|
|
431
761
|
* @returns
|
|
432
762
|
*/
|
|
433
763
|
updateTeleport() {
|
|
434
|
-
return inv('0xC39DCE4672CBFBC1', this.handle, rai());
|
|
764
|
+
return !!inv('0xC39DCE4672CBFBC1', this.handle, rai());
|
|
435
765
|
}
|
|
436
766
|
resetInputGait() {
|
|
437
767
|
inv('0x61A2EECAB274829B', this.handle);
|
|
@@ -448,7 +778,7 @@ export class Player {
|
|
|
448
778
|
/**
|
|
449
779
|
* @param modifier
|
|
450
780
|
*/
|
|
451
|
-
|
|
781
|
+
set WeaponDegradationModifier(modifier) {
|
|
452
782
|
inv('0x11A7FF918EF6BC66', this.handle, f(modifier));
|
|
453
783
|
}
|
|
454
784
|
/**
|
|
@@ -456,7 +786,7 @@ export class Player {
|
|
|
456
786
|
*
|
|
457
787
|
* @param timer
|
|
458
788
|
*/
|
|
459
|
-
|
|
789
|
+
set SpecialAbilityDisableTimer(timer) {
|
|
460
790
|
inv('0xC0B1C05B313693D1', this.handle, f(timer));
|
|
461
791
|
}
|
|
462
792
|
/**
|
|
@@ -480,13 +810,13 @@ export class Player {
|
|
|
480
810
|
*
|
|
481
811
|
* @returns
|
|
482
812
|
*/
|
|
483
|
-
|
|
484
|
-
return inv('0xB8A70C22FD48197A', this.handle, rai());
|
|
813
|
+
get IsClimbing() {
|
|
814
|
+
return !!inv('0xB8A70C22FD48197A', this.handle, rai());
|
|
485
815
|
}
|
|
486
816
|
/**
|
|
487
817
|
* @returns Refer to [enum: ePedMood]
|
|
488
818
|
*/
|
|
489
|
-
|
|
819
|
+
get Mood() {
|
|
490
820
|
return inv('0x054473164C012699', this.handle, rai());
|
|
491
821
|
}
|
|
492
822
|
clearBountyTarget() {
|
|
@@ -497,7 +827,7 @@ export class Player {
|
|
|
497
827
|
*
|
|
498
828
|
* @param p1
|
|
499
829
|
*/
|
|
500
|
-
|
|
830
|
+
set LockonFocusFireVfx(p1) {
|
|
501
831
|
inv('0x5F8E0303C229C84B', this.handle, p1);
|
|
502
832
|
}
|
|
503
833
|
/**
|
|
@@ -555,21 +885,21 @@ export class Player {
|
|
|
555
885
|
/**
|
|
556
886
|
* @param vehicle
|
|
557
887
|
*/
|
|
558
|
-
|
|
888
|
+
set OwnsVehicle(vehicle) {
|
|
559
889
|
inv('0xD0E02AA618020D17', this.handle, vehicle.handle);
|
|
560
890
|
}
|
|
561
891
|
/**
|
|
562
892
|
* @returns
|
|
563
893
|
*/
|
|
564
894
|
hasDamagedAtLeastOnePed() {
|
|
565
|
-
return inv('0xDA4A4B9B96E20092', this.handle, rai());
|
|
895
|
+
return !!inv('0xDA4A4B9B96E20092', this.handle, rai());
|
|
566
896
|
}
|
|
567
897
|
/**
|
|
568
898
|
* Seems to enable active horse equipment prompt when being near it and enables the control that opens the inventory as well
|
|
569
899
|
*
|
|
570
900
|
* @param mount
|
|
571
901
|
*/
|
|
572
|
-
|
|
902
|
+
set OwnsMount(mount) {
|
|
573
903
|
inv('0xE6D4E435B56D5BD0', this.handle, mount.handle);
|
|
574
904
|
}
|
|
575
905
|
/**
|
|
@@ -583,7 +913,7 @@ export class Player {
|
|
|
583
913
|
*
|
|
584
914
|
* @returns
|
|
585
915
|
*/
|
|
586
|
-
|
|
916
|
+
get PedScriptIndex() {
|
|
587
917
|
return createFromHandle('Ped', inv('0x5C880F9056D784C8', this.handle, rai()));
|
|
588
918
|
}
|
|
589
919
|
/**
|
|
@@ -597,7 +927,7 @@ export class Player {
|
|
|
597
927
|
/**
|
|
598
928
|
* @returns Returns the player name, or if the player doesn't exist, it returns "**Invalid**"
|
|
599
929
|
*/
|
|
600
|
-
|
|
930
|
+
get Name() {
|
|
601
931
|
return inv('0x7124FD9AC0E01BA0', this.handle, ras());
|
|
602
932
|
}
|
|
603
933
|
/**
|
|
@@ -605,7 +935,7 @@ export class Player {
|
|
|
605
935
|
*
|
|
606
936
|
* @param horse
|
|
607
937
|
*/
|
|
608
|
-
|
|
938
|
+
set PedActiveHorse(horse) {
|
|
609
939
|
inv('0x8FBF9EDB378CCB8C', this.handle, horse.handle);
|
|
610
940
|
}
|
|
611
941
|
/**
|
|
@@ -615,7 +945,7 @@ export class Player {
|
|
|
615
945
|
*
|
|
616
946
|
* @param active
|
|
617
947
|
*/
|
|
618
|
-
|
|
948
|
+
set MountStateActive(active) {
|
|
619
949
|
inv('0xDF93973251FB2CA5', this.handle, active);
|
|
620
950
|
}
|
|
621
951
|
/**
|
|
@@ -646,7 +976,7 @@ export class Player {
|
|
|
646
976
|
*
|
|
647
977
|
* @param label
|
|
648
978
|
*/
|
|
649
|
-
|
|
979
|
+
set SitPromptText(label) {
|
|
650
980
|
inv('0x988C9045531B9FCE', this.handle, label);
|
|
651
981
|
}
|
|
652
982
|
updateWantedPositionThisFrame() {
|
|
@@ -671,7 +1001,7 @@ export class Player {
|
|
|
671
1001
|
*
|
|
672
1002
|
* @param label
|
|
673
1003
|
*/
|
|
674
|
-
|
|
1004
|
+
set MeleePromptText(label) {
|
|
675
1005
|
inv('0x0FAF95D71ED67ADE', this.handle, label);
|
|
676
1006
|
}
|
|
677
1007
|
/**
|
|
@@ -708,7 +1038,7 @@ export class Player {
|
|
|
708
1038
|
/**
|
|
709
1039
|
* @param modifier
|
|
710
1040
|
*/
|
|
711
|
-
|
|
1041
|
+
set ExplosiveWeaponDamageModifier(modifier) {
|
|
712
1042
|
inv('0x2D3ACE3DE0A2B622', this.handle, f(modifier));
|
|
713
1043
|
}
|
|
714
1044
|
/**
|
|
@@ -716,7 +1046,7 @@ export class Player {
|
|
|
716
1046
|
*
|
|
717
1047
|
* @returns
|
|
718
1048
|
*/
|
|
719
|
-
|
|
1049
|
+
get IsMountOnRoad() {
|
|
720
1050
|
return inv('0xE631EAF35828FA67', this.handle);
|
|
721
1051
|
}
|
|
722
1052
|
/**
|
|
@@ -731,7 +1061,7 @@ export class Player {
|
|
|
731
1061
|
*
|
|
732
1062
|
* @param level
|
|
733
1063
|
*/
|
|
734
|
-
|
|
1064
|
+
set DeadeyeAbilityLevel(level) {
|
|
735
1065
|
inv('0xF0FE8E790BFEB5BB', this.handle, level);
|
|
736
1066
|
}
|
|
737
1067
|
/**
|
|
@@ -739,19 +1069,19 @@ export class Player {
|
|
|
739
1069
|
*
|
|
740
1070
|
* @param enable
|
|
741
1071
|
*/
|
|
742
|
-
|
|
1072
|
+
set PickupPromptVisible(enable) {
|
|
743
1073
|
inv('0xD1A70C1E8D1031FE', this.handle, enable);
|
|
744
1074
|
}
|
|
745
1075
|
/**
|
|
746
1076
|
* @param mount
|
|
747
1077
|
*/
|
|
748
|
-
|
|
1078
|
+
set PedAsSaddleHorseForPlayer(mount) {
|
|
749
1079
|
inv('0xD2CB0FB0FDCB473D', this.handle, mount.handle);
|
|
750
1080
|
}
|
|
751
1081
|
/**
|
|
752
1082
|
* @returns
|
|
753
1083
|
*/
|
|
754
|
-
|
|
1084
|
+
get ActiveHorseForPlayer() {
|
|
755
1085
|
return createFromHandle('Ped', inv('0x46FA0AE18F4C7FA9', this.handle, rai()));
|
|
756
1086
|
}
|
|
757
1087
|
/**
|
|
@@ -790,7 +1120,7 @@ export class Player {
|
|
|
790
1120
|
* @returns
|
|
791
1121
|
*/
|
|
792
1122
|
canStartMission() {
|
|
793
|
-
return inv('0x2DF170B1185AF777', this.handle, rai());
|
|
1123
|
+
return !!inv('0x2DF170B1185AF777', this.handle, rai());
|
|
794
1124
|
}
|
|
795
1125
|
/**
|
|
796
1126
|
* Adds an interactive focus mode preset between a player and a specific set of coordinates with a target entity.
|
|
@@ -809,7 +1139,7 @@ export class Player {
|
|
|
809
1139
|
/**
|
|
810
1140
|
* @returns
|
|
811
1141
|
*/
|
|
812
|
-
|
|
1142
|
+
get StaminaRechargeMultiplier() {
|
|
813
1143
|
return inv('0x617D3494AD58200F', this.handle, raf());
|
|
814
1144
|
}
|
|
815
1145
|
/**
|
|
@@ -817,14 +1147,14 @@ export class Player {
|
|
|
817
1147
|
*
|
|
818
1148
|
* @returns
|
|
819
1149
|
*/
|
|
820
|
-
|
|
1150
|
+
get DeadeyeAbilityDepletionDelay() {
|
|
821
1151
|
return inv('0xE92261BD28C0878F', this.handle);
|
|
822
1152
|
}
|
|
823
1153
|
/**
|
|
824
1154
|
* @returns
|
|
825
1155
|
*/
|
|
826
|
-
|
|
827
|
-
return inv('0xAA67BCB0097F2FA3', this.handle, rai());
|
|
1156
|
+
get IsReadyForCutscene() {
|
|
1157
|
+
return !!inv('0xAA67BCB0097F2FA3', this.handle, rai());
|
|
828
1158
|
}
|
|
829
1159
|
/**
|
|
830
1160
|
* @param p1
|
|
@@ -863,7 +1193,7 @@ export class Player {
|
|
|
863
1193
|
/**
|
|
864
1194
|
* @returns
|
|
865
1195
|
*/
|
|
866
|
-
|
|
1196
|
+
get Ped() {
|
|
867
1197
|
return createFromHandle('Ped', inv('0x275F255ED201B937', this.handle, rai()));
|
|
868
1198
|
}
|
|
869
1199
|
/**
|
|
@@ -871,7 +1201,7 @@ export class Player {
|
|
|
871
1201
|
*
|
|
872
1202
|
* @param toggle
|
|
873
1203
|
*/
|
|
874
|
-
|
|
1204
|
+
set AllRandomPedsFlee(toggle) {
|
|
875
1205
|
inv('0xE705309B8C6445A4', this.handle, toggle);
|
|
876
1206
|
}
|
|
877
1207
|
/**
|
|
@@ -884,14 +1214,14 @@ export class Player {
|
|
|
884
1214
|
/**
|
|
885
1215
|
* @returns entity
|
|
886
1216
|
*/
|
|
887
|
-
|
|
1217
|
+
get EntityIsFreeAimingAt() {
|
|
888
1218
|
const result = inv('0xA6817C110B830EAD', this.handle, pvi(), rai());
|
|
889
1219
|
return [!!result[0], createFromHandle('Entity', result[1])];
|
|
890
1220
|
}
|
|
891
1221
|
/**
|
|
892
1222
|
* @returns
|
|
893
1223
|
*/
|
|
894
|
-
|
|
1224
|
+
get TempHorse() {
|
|
895
1225
|
return createFromHandle('Ped', inv('0xD3F7445CEA2E5035', this.handle, rai()));
|
|
896
1226
|
}
|
|
897
1227
|
/**
|
|
@@ -902,25 +1232,25 @@ export class Player {
|
|
|
902
1232
|
* @returns
|
|
903
1233
|
*/
|
|
904
1234
|
hasDamagedAnyPedRecently(duration) {
|
|
905
|
-
return inv('0x72AD59F7B7FB6E24', this.handle, duration, rai());
|
|
1235
|
+
return !!inv('0x72AD59F7B7FB6E24', this.handle, duration, rai());
|
|
906
1236
|
}
|
|
907
1237
|
/**
|
|
908
1238
|
* @returns entity
|
|
909
1239
|
*/
|
|
910
|
-
|
|
1240
|
+
get TargetEntity() {
|
|
911
1241
|
const result = inv('0xAE663DDD99C8A670', this.handle, pvi(), rai());
|
|
912
1242
|
return [!!result[0], createFromHandle('Entity', result[1])];
|
|
913
1243
|
}
|
|
914
1244
|
/**
|
|
915
1245
|
* @returns Returns true if the ped has a ped, and the ped is alive and not arrested.
|
|
916
1246
|
*/
|
|
917
|
-
|
|
918
|
-
return inv('0xBFFB35986CAAE58C', this.handle, rai());
|
|
1247
|
+
get IsPlaying() {
|
|
1248
|
+
return !!inv('0xBFFB35986CAAE58C', this.handle, rai());
|
|
919
1249
|
}
|
|
920
1250
|
/**
|
|
921
1251
|
* @returns
|
|
922
1252
|
*/
|
|
923
|
-
|
|
1253
|
+
get SaddleHorseForPlayer() {
|
|
924
1254
|
return createFromHandle('Ped', inv('0xB48050D326E9A2F3', this.handle, rai()));
|
|
925
1255
|
}
|
|
926
1256
|
/**
|
|
@@ -928,19 +1258,19 @@ export class Player {
|
|
|
928
1258
|
*
|
|
929
1259
|
* @param range
|
|
930
1260
|
*/
|
|
931
|
-
|
|
1261
|
+
set LockonRangeOverride(range) {
|
|
932
1262
|
inv('0x3A3CD06597388322', this.handle, f(range));
|
|
933
1263
|
}
|
|
934
1264
|
/**
|
|
935
1265
|
* @returns
|
|
936
1266
|
*/
|
|
937
|
-
|
|
1267
|
+
get HuntingWagon() {
|
|
938
1268
|
return createFromHandle('Vehicle', inv('0x5CA6BBD4A7D8145E', this.handle, rai()));
|
|
939
1269
|
}
|
|
940
1270
|
/**
|
|
941
1271
|
* @param modifier
|
|
942
1272
|
*/
|
|
943
|
-
|
|
1273
|
+
set TrampleDamageModifier(modifier) {
|
|
944
1274
|
inv('0xAF341032E97FB061', this.handle, f(modifier));
|
|
945
1275
|
}
|
|
946
1276
|
/**
|
|
@@ -948,7 +1278,7 @@ export class Player {
|
|
|
948
1278
|
*
|
|
949
1279
|
* @returns
|
|
950
1280
|
*/
|
|
951
|
-
|
|
1281
|
+
get IsFreeFocusing() {
|
|
952
1282
|
return inv('0x1A51BFE60708E482', this.handle);
|
|
953
1283
|
}
|
|
954
1284
|
/**
|
|
@@ -966,13 +1296,13 @@ export class Player {
|
|
|
966
1296
|
*
|
|
967
1297
|
* @returns
|
|
968
1298
|
*/
|
|
969
|
-
|
|
970
|
-
return inv('0xE022CC1B545F1D9F', this.handle, rai());
|
|
1299
|
+
get IsSecondarySpecialAbilityEnabled() {
|
|
1300
|
+
return !!inv('0xE022CC1B545F1D9F', this.handle, rai());
|
|
971
1301
|
}
|
|
972
1302
|
/**
|
|
973
1303
|
* @param multiplier
|
|
974
1304
|
*/
|
|
975
|
-
|
|
1305
|
+
set NoiseMultiplier(multiplier) {
|
|
976
1306
|
inv('0xB5EC6BDAEBCA454C', this.handle, f(multiplier));
|
|
977
1307
|
}
|
|
978
1308
|
/**
|
|
@@ -980,19 +1310,19 @@ export class Player {
|
|
|
980
1310
|
*
|
|
981
1311
|
* @returns
|
|
982
1312
|
*/
|
|
983
|
-
|
|
984
|
-
return inv('0x936F967D4BE1CE9D', this.handle, rai());
|
|
1313
|
+
get IsFreeAiming() {
|
|
1314
|
+
return !!inv('0x936F967D4BE1CE9D', this.handle, rai());
|
|
985
1315
|
}
|
|
986
1316
|
/**
|
|
987
1317
|
* @param showingInfoCard
|
|
988
1318
|
*/
|
|
989
|
-
|
|
1319
|
+
set ShowInfoCard(showingInfoCard) {
|
|
990
1320
|
inv('0xDC68829BB3F37023', this.handle, showingInfoCard);
|
|
991
1321
|
}
|
|
992
1322
|
/**
|
|
993
1323
|
* @param regenRate
|
|
994
1324
|
*/
|
|
995
|
-
|
|
1325
|
+
set HealthRechargeMultiplier(regenRate) {
|
|
996
1326
|
inv('0x8899C244EBCF70DE', this.handle, f(regenRate));
|
|
997
1327
|
}
|
|
998
1328
|
/**
|
|
@@ -1000,7 +1330,7 @@ export class Player {
|
|
|
1000
1330
|
*
|
|
1001
1331
|
* @param damageInfo
|
|
1002
1332
|
*/
|
|
1003
|
-
|
|
1333
|
+
set DamageInfoOverride(damageInfo) {
|
|
1004
1334
|
inv('0x78B3D19AF6391A55', this.handle, damageInfo);
|
|
1005
1335
|
}
|
|
1006
1336
|
/**
|
|
@@ -1008,7 +1338,7 @@ export class Player {
|
|
|
1008
1338
|
*
|
|
1009
1339
|
* @param toggle
|
|
1010
1340
|
*/
|
|
1011
|
-
|
|
1341
|
+
set CanBeHassledByGangs(toggle) {
|
|
1012
1342
|
inv('0xC7FE774412046825', this.handle, toggle);
|
|
1013
1343
|
}
|
|
1014
1344
|
/**
|
|
@@ -1024,7 +1354,7 @@ export class Player {
|
|
|
1024
1354
|
*
|
|
1025
1355
|
* @param staminaDrain
|
|
1026
1356
|
*/
|
|
1027
|
-
|
|
1357
|
+
set BowStaminaDrainSpeed(staminaDrain) {
|
|
1028
1358
|
inv('0xFE7C9CF376D23342', this.handle, f(staminaDrain));
|
|
1029
1359
|
}
|
|
1030
1360
|
setAllRandomPedsFleeThisFrame() {
|
|
@@ -1043,7 +1373,7 @@ export class Player {
|
|
|
1043
1373
|
*
|
|
1044
1374
|
* @param damage
|
|
1045
1375
|
*/
|
|
1046
|
-
|
|
1376
|
+
set LassoDamagePerSecond(damage) {
|
|
1047
1377
|
inv('0x43F50A7CD2482156', this.handle, f(damage));
|
|
1048
1378
|
}
|
|
1049
1379
|
/**
|
|
@@ -1053,7 +1383,7 @@ export class Player {
|
|
|
1053
1383
|
* @returns
|
|
1054
1384
|
*/
|
|
1055
1385
|
isBeingArrested(atArresting) {
|
|
1056
|
-
return inv('0xC8183AE963C58374', this.handle, atArresting, rai());
|
|
1386
|
+
return !!inv('0xC8183AE963C58374', this.handle, atArresting, rai());
|
|
1057
1387
|
}
|
|
1058
1388
|
/**
|
|
1059
1389
|
* Gets a value indicating whether the specified player is currently aiming freely at the specified entity.
|
|
@@ -1062,12 +1392,12 @@ export class Player {
|
|
|
1062
1392
|
* @returns
|
|
1063
1393
|
*/
|
|
1064
1394
|
isFreeAimingAtEntity(entity) {
|
|
1065
|
-
return inv('0x8C67C11C68713D25', this.handle, entity.handle, rai());
|
|
1395
|
+
return !!inv('0x8C67C11C68713D25', this.handle, entity.handle, rai());
|
|
1066
1396
|
}
|
|
1067
1397
|
/**
|
|
1068
1398
|
* @param farDamageBonus
|
|
1069
1399
|
*/
|
|
1070
|
-
|
|
1400
|
+
set DamageFarDistanceBonusTotal(farDamageBonus) {
|
|
1071
1401
|
inv('0x1F0E3A4434565F8F', this.handle, f(farDamageBonus));
|
|
1072
1402
|
}
|
|
1073
1403
|
setMayNotEnterAnyVehicle() {
|
|
@@ -1076,7 +1406,7 @@ export class Player {
|
|
|
1076
1406
|
/**
|
|
1077
1407
|
* @returns
|
|
1078
1408
|
*/
|
|
1079
|
-
|
|
1409
|
+
get Health() {
|
|
1080
1410
|
return inv('0x0317C947D062854E', this.handle, raf());
|
|
1081
1411
|
}
|
|
1082
1412
|
resetWantedLevelDifficulty() {
|
|
@@ -1091,7 +1421,7 @@ export class Player {
|
|
|
1091
1421
|
/**
|
|
1092
1422
|
* @returns
|
|
1093
1423
|
*/
|
|
1094
|
-
|
|
1424
|
+
get NumMarkedDeadeyeTargets() {
|
|
1095
1425
|
return inv('0xCCD9B77F70D31C9D', this.handle, rai());
|
|
1096
1426
|
}
|
|
1097
1427
|
/**
|
|
@@ -1113,7 +1443,7 @@ export class Player {
|
|
|
1113
1443
|
/**
|
|
1114
1444
|
* @param speech
|
|
1115
1445
|
*/
|
|
1116
|
-
|
|
1446
|
+
set InteractionNegativeResponse(speech) {
|
|
1117
1447
|
inv('0x98CD760DE43B612E', this.handle, speech);
|
|
1118
1448
|
}
|
|
1119
1449
|
/**
|
|
@@ -1131,13 +1461,13 @@ export class Player {
|
|
|
1131
1461
|
/**
|
|
1132
1462
|
* @param toggle
|
|
1133
1463
|
*/
|
|
1134
|
-
|
|
1464
|
+
set SimulateAiming(toggle) {
|
|
1135
1465
|
inv('0xE0447DEF81CCDFD2', this.handle, toggle);
|
|
1136
1466
|
}
|
|
1137
1467
|
/**
|
|
1138
1468
|
* @returns
|
|
1139
1469
|
*/
|
|
1140
|
-
|
|
1470
|
+
get AiDefenseModifierAgainstAi() {
|
|
1141
1471
|
return inv('0x2E78D822208E740A', this.handle, raf());
|
|
1142
1472
|
}
|
|
1143
1473
|
/**
|
|
@@ -1145,7 +1475,7 @@ export class Player {
|
|
|
1145
1475
|
*
|
|
1146
1476
|
* @param modifier
|
|
1147
1477
|
*/
|
|
1148
|
-
|
|
1478
|
+
set HealthRechargeTimeModifier(modifier) {
|
|
1149
1479
|
inv('0x535ED4605F89AB6E', this.handle, f(modifier));
|
|
1150
1480
|
}
|
|
1151
1481
|
/**
|
|
@@ -1159,7 +1489,7 @@ export class Player {
|
|
|
1159
1489
|
/**
|
|
1160
1490
|
* @param accuracy
|
|
1161
1491
|
*/
|
|
1162
|
-
|
|
1492
|
+
set RemoteAccuracyFloorModifier(accuracy) {
|
|
1163
1493
|
inv('0xDEE80FEDFDD43C9B', this.handle, f(accuracy));
|
|
1164
1494
|
}
|
|
1165
1495
|
/**
|
|
@@ -1172,13 +1502,13 @@ export class Player {
|
|
|
1172
1502
|
/**
|
|
1173
1503
|
* @returns
|
|
1174
1504
|
*/
|
|
1175
|
-
|
|
1505
|
+
get StaminaDepletionMultiplier() {
|
|
1176
1506
|
return inv('0x68A0389E0718AC8F', this.handle, raf());
|
|
1177
1507
|
}
|
|
1178
1508
|
/**
|
|
1179
1509
|
* @returns
|
|
1180
1510
|
*/
|
|
1181
|
-
|
|
1511
|
+
get CurrentStealthNoise() {
|
|
1182
1512
|
return inv('0xD7ECC25E176ECBA5', this.handle, raf());
|
|
1183
1513
|
}
|
|
1184
1514
|
/**
|
|
@@ -1193,7 +1523,7 @@ export class Player {
|
|
|
1193
1523
|
*
|
|
1194
1524
|
* @param mood Refer to [enum: ePedMood]
|
|
1195
1525
|
*/
|
|
1196
|
-
|
|
1526
|
+
set Mood(mood) {
|
|
1197
1527
|
inv('0x39BED552DB46FFA9', this.handle, mood);
|
|
1198
1528
|
}
|
|
1199
1529
|
/**
|
|
@@ -1220,7 +1550,7 @@ export class Player {
|
|
|
1220
1550
|
*
|
|
1221
1551
|
* @param disable
|
|
1222
1552
|
*/
|
|
1223
|
-
|
|
1553
|
+
set DisableWantedLevel(disable) {
|
|
1224
1554
|
inv('0x8674D138391FFB1B', this.handle, disable);
|
|
1225
1555
|
}
|
|
1226
1556
|
/**
|
|
@@ -1234,19 +1564,19 @@ export class Player {
|
|
|
1234
1564
|
/**
|
|
1235
1565
|
* @param p1
|
|
1236
1566
|
*/
|
|
1237
|
-
|
|
1567
|
+
set ManageBuffSuperJump(p1) {
|
|
1238
1568
|
inv('0x292F0B6EDC82E3A4', this.handle, f(p1));
|
|
1239
1569
|
}
|
|
1240
1570
|
/**
|
|
1241
1571
|
* @param multiplier
|
|
1242
1572
|
*/
|
|
1243
|
-
|
|
1573
|
+
set SpecialAbilityMultiplier(multiplier) {
|
|
1244
1574
|
inv('0x5A498FCA232F71E1', this.handle, f(multiplier));
|
|
1245
1575
|
}
|
|
1246
1576
|
/**
|
|
1247
1577
|
* @param accuracy
|
|
1248
1578
|
*/
|
|
1249
|
-
|
|
1579
|
+
set LocalAccuracyFloorModifier(accuracy) {
|
|
1250
1580
|
inv('0x4EA69188FBCE6A7D', this.handle, f(accuracy));
|
|
1251
1581
|
}
|
|
1252
1582
|
/**
|
|
@@ -1254,7 +1584,7 @@ export class Player {
|
|
|
1254
1584
|
* @returns
|
|
1255
1585
|
*/
|
|
1256
1586
|
isWantedLevelGreater(wantedLevel) {
|
|
1257
|
-
return inv('0xE1C0AD4C24324C36', this.handle, wantedLevel, rai());
|
|
1587
|
+
return !!inv('0xE1C0AD4C24324C36', this.handle, wantedLevel, rai());
|
|
1258
1588
|
}
|
|
1259
1589
|
/**
|
|
1260
1590
|
* SPECIAL_ABILITY_NONE = -1,
|
|
@@ -1268,13 +1598,13 @@ export class Player {
|
|
|
1268
1598
|
*
|
|
1269
1599
|
* @param type
|
|
1270
1600
|
*/
|
|
1271
|
-
|
|
1601
|
+
set SpecialAbilityType(type) {
|
|
1272
1602
|
inv('0x00BA333DA05ADC23', this.handle, type);
|
|
1273
1603
|
}
|
|
1274
1604
|
/**
|
|
1275
1605
|
* @param toggle
|
|
1276
1606
|
*/
|
|
1277
|
-
|
|
1607
|
+
set EveryoneIgnorePlayer(toggle) {
|
|
1278
1608
|
inv('0x34630A768925B852', this.handle, toggle);
|
|
1279
1609
|
}
|
|
1280
1610
|
/**
|
|
@@ -1282,7 +1612,7 @@ export class Player {
|
|
|
1282
1612
|
*
|
|
1283
1613
|
* @param toggle
|
|
1284
1614
|
*/
|
|
1285
|
-
|
|
1615
|
+
set CanUseCover(toggle) {
|
|
1286
1616
|
inv('0x5EDA520F7A3BAF4E', this.handle, toggle);
|
|
1287
1617
|
}
|
|
1288
1618
|
/**
|
|
@@ -1315,7 +1645,7 @@ export class Player {
|
|
|
1315
1645
|
/**
|
|
1316
1646
|
* @param filter
|
|
1317
1647
|
*/
|
|
1318
|
-
|
|
1648
|
+
set DeadeyeTaggingConfig(filter) {
|
|
1319
1649
|
inv('0x83FCD6921FC8FD05', this.handle, filter);
|
|
1320
1650
|
}
|
|
1321
1651
|
/**
|
|
@@ -1338,7 +1668,7 @@ export class Player {
|
|
|
1338
1668
|
/**
|
|
1339
1669
|
* @returns
|
|
1340
1670
|
*/
|
|
1341
|
-
|
|
1671
|
+
get IsSpecialAbilityActive() {
|
|
1342
1672
|
return inv('0xB16223CB7DA965F0', this.handle);
|
|
1343
1673
|
}
|
|
1344
1674
|
reportPoliceSpottedPlayer() {
|
|
@@ -1350,12 +1680,12 @@ export class Player {
|
|
|
1350
1680
|
* @returns
|
|
1351
1681
|
*/
|
|
1352
1682
|
getReceivedBattleEventRecently(p1, p2) {
|
|
1353
|
-
return inv('0xFB6EB8785F808551', this.handle, p1, p2, rai());
|
|
1683
|
+
return !!inv('0xFB6EB8785F808551', this.handle, p1, p2, rai());
|
|
1354
1684
|
}
|
|
1355
1685
|
/**
|
|
1356
1686
|
* @returns
|
|
1357
1687
|
*/
|
|
1358
|
-
|
|
1688
|
+
get SpecialAbilityMultiplier() {
|
|
1359
1689
|
return inv('0xAB3773E7AA1E9DCC', this.handle, raf());
|
|
1360
1690
|
}
|
|
1361
1691
|
/**
|
|
@@ -1385,18 +1715,18 @@ export class Player {
|
|
|
1385
1715
|
* @returns
|
|
1386
1716
|
*/
|
|
1387
1717
|
N_0xE7F8707269544B29(ped) {
|
|
1388
|
-
return inv('0xE7F8707269544B29', this.handle, ped.handle, rai());
|
|
1718
|
+
return !!inv('0xE7F8707269544B29', this.handle, ped.handle, rai());
|
|
1389
1719
|
}
|
|
1390
1720
|
/**
|
|
1391
1721
|
* @returns
|
|
1392
1722
|
*/
|
|
1393
|
-
|
|
1394
|
-
return inv('0xB78350754157C00F', this.handle, rai());
|
|
1723
|
+
get IsScriptControlOn() {
|
|
1724
|
+
return !!inv('0xB78350754157C00F', this.handle, rai());
|
|
1395
1725
|
}
|
|
1396
1726
|
/**
|
|
1397
1727
|
* @returns
|
|
1398
1728
|
*/
|
|
1399
|
-
|
|
1729
|
+
get IsSecondarySpecialAbilityActive() {
|
|
1400
1730
|
return inv('0x45AB66D02B601FA7', this.handle);
|
|
1401
1731
|
}
|
|
1402
1732
|
N_0xC900A465364A85D6() {
|
|
@@ -1407,7 +1737,7 @@ export class Player {
|
|
|
1407
1737
|
*
|
|
1408
1738
|
* @returns
|
|
1409
1739
|
*/
|
|
1410
|
-
|
|
1740
|
+
get Group() {
|
|
1411
1741
|
return inv('0x9BAB31815159ABCF', this.handle, rai());
|
|
1412
1742
|
}
|
|
1413
1743
|
/**
|
|
@@ -1424,7 +1754,7 @@ export class Player {
|
|
|
1424
1754
|
*
|
|
1425
1755
|
* @param modifier
|
|
1426
1756
|
*/
|
|
1427
|
-
|
|
1757
|
+
set WeaponDamageModifier(modifier) {
|
|
1428
1758
|
inv('0x94D529F7B73D7A85', this.handle, f(modifier));
|
|
1429
1759
|
}
|
|
1430
1760
|
/**
|
|
@@ -1432,14 +1762,14 @@ export class Player {
|
|
|
1432
1762
|
*
|
|
1433
1763
|
* @param durationCost
|
|
1434
1764
|
*/
|
|
1435
|
-
|
|
1765
|
+
set SpecialAbilityDurationCost(durationCost) {
|
|
1436
1766
|
inv('0xB783F75940B23014', this.handle, f(durationCost));
|
|
1437
1767
|
}
|
|
1438
1768
|
/**
|
|
1439
1769
|
* @returns
|
|
1440
1770
|
*/
|
|
1441
|
-
|
|
1442
|
-
return inv('0x4605C66E0F935F83', this.handle, rai());
|
|
1771
|
+
get IsTargettingAnything() {
|
|
1772
|
+
return !!inv('0x4605C66E0F935F83', this.handle, rai());
|
|
1443
1773
|
}
|
|
1444
1774
|
/**
|
|
1445
1775
|
* @param modifier
|
|
@@ -1450,13 +1780,13 @@ export class Player {
|
|
|
1450
1780
|
/**
|
|
1451
1781
|
* @returns
|
|
1452
1782
|
*/
|
|
1453
|
-
|
|
1783
|
+
get DeadEye() {
|
|
1454
1784
|
return inv('0xA81D24AE0AF99A5E', this.handle, raf());
|
|
1455
1785
|
}
|
|
1456
1786
|
/**
|
|
1457
1787
|
* @returns
|
|
1458
1788
|
*/
|
|
1459
|
-
|
|
1789
|
+
get IsInScope() {
|
|
1460
1790
|
return inv('0x04D7F33640662FA2', this.handle);
|
|
1461
1791
|
}
|
|
1462
1792
|
/**
|
|
@@ -1475,334 +1805,10 @@ export class Player {
|
|
|
1475
1805
|
inv('0x09C28F828EE674FA', this.handle, f(speedBoost), duration);
|
|
1476
1806
|
}
|
|
1477
1807
|
/**
|
|
1478
|
-
*
|
|
1479
|
-
* @param p3
|
|
1480
|
-
* @returns outEntity
|
|
1481
|
-
*/
|
|
1482
|
-
getInteractionTargetEntity(p2, p3) {
|
|
1483
|
-
const result = inv('0x3EE1F7A8C32F24E1', this.handle, pvi(), p2, p3);
|
|
1484
|
-
return [result[0], createFromHandle('Entity', result[1])];
|
|
1485
|
-
}
|
|
1486
|
-
/**
|
|
1487
|
-
* @param toggle
|
|
1488
|
-
*/
|
|
1489
|
-
setDeadeyeTaggingEnabled(toggle) {
|
|
1490
|
-
inv('0x6B5DDFB967E5073D', this.handle, toggle);
|
|
1491
|
-
}
|
|
1492
|
-
/**
|
|
1493
|
-
* @returns
|
|
1494
|
-
*/
|
|
1495
|
-
getStamina() {
|
|
1496
|
-
return inv('0x0FF421E467373FCF', this.handle, raf());
|
|
1497
|
-
}
|
|
1498
|
-
/**
|
|
1499
|
-
* @param modifier
|
|
1500
|
-
*/
|
|
1501
|
-
setMeleeWeaponDamageModifier(modifier) {
|
|
1502
|
-
inv('0xE4CB5A3F18170381', this.handle, f(modifier));
|
|
1503
|
-
}
|
|
1504
|
-
/**
|
|
1505
|
-
* @returns
|
|
1808
|
+
* Gets the player's server ID. In multiplayer, this is the player's unique server-side identifier.
|
|
1506
1809
|
*/
|
|
1507
|
-
|
|
1508
|
-
return inv('
|
|
1509
|
-
}
|
|
1510
|
-
/**
|
|
1511
|
-
* 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.
|
|
1512
|
-
*
|
|
1513
|
-
* @param canPickup
|
|
1514
|
-
*/
|
|
1515
|
-
setCanPickupHat(canPickup) {
|
|
1516
|
-
inv('0xACA45DDCEF6071C4', this.handle, canPickup);
|
|
1517
|
-
}
|
|
1518
|
-
/**
|
|
1519
|
-
* 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
|
|
1520
|
-
* some colors
|
|
1521
|
-
* 0: Default aura
|
|
1522
|
-
* 1014693585
|
|
1523
|
-
* 1936842089
|
|
1524
|
-
* 1979474018
|
|
1525
|
-
*
|
|
1526
|
-
* @param auraColorHash
|
|
1527
|
-
*/
|
|
1528
|
-
setDeadEyeAuraByHash(auraColorHash) {
|
|
1529
|
-
inv('0x768E81AE285A4B67', this.handle, _h(auraColorHash));
|
|
1530
|
-
}
|
|
1531
|
-
/**
|
|
1532
|
-
* Returns true if PromptType is enabled for ped (mount)
|
|
1533
|
-
* Params: See 0x0751D461F06E41CE
|
|
1534
|
-
*
|
|
1535
|
-
* @param ped
|
|
1536
|
-
* @param promptType
|
|
1537
|
-
* @param promptMode
|
|
1538
|
-
* @returns
|
|
1539
|
-
*/
|
|
1540
|
-
getUiPromptForPedIsEnabled(ped, promptType, promptMode) {
|
|
1541
|
-
return inv('0xEA8F168A76A0B9BC', this.handle, ped.handle, promptType, promptMode);
|
|
1542
|
-
}
|
|
1543
|
-
/**
|
|
1544
|
-
* Applies a aura effect to nearby entities when Deadeye is active, based on a flag parameter. This includes humans, animals, vehicles, and horses pulling those vehicles. Additionally, depending on the flag value, the player's appearance may change (e.g., turning gray).
|
|
1545
|
-
*
|
|
1546
|
-
* @param flag
|
|
1547
|
-
*/
|
|
1548
|
-
setDeadeyeEntityAuraWithFlag(flag) {
|
|
1549
|
-
inv('0x2B12B6FC8B8772AB', this.handle, flag);
|
|
1550
|
-
}
|
|
1551
|
-
/**
|
|
1552
|
-
* @returns
|
|
1553
|
-
*/
|
|
1554
|
-
getMountOwnedByPlayer() {
|
|
1555
|
-
return createFromHandle('Ped', inv('0xF49F14462F0AE27C', this.handle, rai()));
|
|
1556
|
-
}
|
|
1557
|
-
/**
|
|
1558
|
-
* @param weaponHash Refer to [enum: eWeaponHash]
|
|
1559
|
-
* @param damageModifier
|
|
1560
|
-
*/
|
|
1561
|
-
setWeaponTypeDamageModifier(weaponHash, damageModifier) {
|
|
1562
|
-
inv('0xD04AD186CE8BB129', this.handle, weaponHash, f(damageModifier));
|
|
1563
|
-
}
|
|
1564
|
-
/**
|
|
1565
|
-
* Only used in script function PROCESS_PED_INTERRUPT_DIALOGUE
|
|
1566
|
-
* *GET_PLAYER**
|
|
1567
|
-
*
|
|
1568
|
-
* @returns ped
|
|
1569
|
-
*/
|
|
1570
|
-
N_0x7AE93C45EC14A166() {
|
|
1571
|
-
const result = inv('0x7AE93C45EC14A166', this.handle, pvi(), rai());
|
|
1572
|
-
return [!!result[0], createFromHandle('Ped', result[1])];
|
|
1573
|
-
}
|
|
1574
|
-
/**
|
|
1575
|
-
* @param speed
|
|
1576
|
-
* @param duration
|
|
1577
|
-
* @param heading
|
|
1578
|
-
* @param p4
|
|
1579
|
-
* @param p5
|
|
1580
|
-
*/
|
|
1581
|
-
simulateInputGait(speed, duration, heading, p4, p5) {
|
|
1582
|
-
inv('0xFA0C063C422C4355', this.handle, f(speed), duration, f(heading), p4, p5);
|
|
1583
|
-
}
|
|
1584
|
-
/**
|
|
1585
|
-
* @param p1
|
|
1586
|
-
* @returns
|
|
1587
|
-
*/
|
|
1588
|
-
getDeadEyeMeterLevel(p1) {
|
|
1589
|
-
return inv('0x3A6AE4EEE30370FE', this.handle, p1, raf());
|
|
1590
|
-
}
|
|
1591
|
-
/**
|
|
1592
|
-
* @param drawReductionTime
|
|
1593
|
-
*/
|
|
1594
|
-
setBowDrawReductionTimeInDeadeye(drawReductionTime) {
|
|
1595
|
-
inv('0xBE0C524970892D41', this.handle, f(drawReductionTime));
|
|
1596
|
-
}
|
|
1597
|
-
/**
|
|
1598
|
-
* Checks if the player can focus on tracks while in Eagle Eye mode. Returns true if the player is able to focus on a track, otherwise false.
|
|
1599
|
-
*
|
|
1600
|
-
* @returns
|
|
1601
|
-
*/
|
|
1602
|
-
eagleEyeCanFocusOnTrack() {
|
|
1603
|
-
return inv('0x1DA5C5B0923E1B85', this.handle);
|
|
1604
|
-
}
|
|
1605
|
-
/**
|
|
1606
|
-
* @param range
|
|
1607
|
-
*/
|
|
1608
|
-
eagleEyeSetRange(range) {
|
|
1609
|
-
inv('0x22C8B10802301381', this.handle, f(range));
|
|
1610
|
-
}
|
|
1611
|
-
/**
|
|
1612
|
-
* *SET_SPECIAL_ABILITY**
|
|
1613
|
-
*
|
|
1614
|
-
* @param p1
|
|
1615
|
-
*/
|
|
1616
|
-
N_0x4D1699543B1C023C(p1) {
|
|
1617
|
-
inv('0x4D1699543B1C023C', this.handle, f(p1));
|
|
1618
|
-
}
|
|
1619
|
-
/**
|
|
1620
|
-
* Drains Deadeye by given amount.
|
|
1621
|
-
*
|
|
1622
|
-
* @param amount
|
|
1623
|
-
* @param p2
|
|
1624
|
-
*/
|
|
1625
|
-
specialAbilityDrainByAmount(amount, p2) {
|
|
1626
|
-
inv('0x200114E99552462B', this.handle, f(amount), p2);
|
|
1627
|
-
}
|
|
1628
|
-
/**
|
|
1629
|
-
* Sets Player's Defense against AI modifier
|
|
1630
|
-
*
|
|
1631
|
-
* @param modifier
|
|
1632
|
-
*/
|
|
1633
|
-
setAiDefenseModifierAgainstAi(modifier) {
|
|
1634
|
-
inv('0x914071FF93AF2692', this.handle, f(modifier));
|
|
1635
|
-
}
|
|
1636
|
-
/**
|
|
1637
|
-
* Gets the player's team.
|
|
1638
|
-
* Returns -1 in singleplayer.
|
|
1639
|
-
*
|
|
1640
|
-
* @returns
|
|
1641
|
-
*/
|
|
1642
|
-
getTeam() {
|
|
1643
|
-
return inv('0xB464EB6A40C7975B', this.handle, rai());
|
|
1644
|
-
}
|
|
1645
|
-
/**
|
|
1646
|
-
* @returns
|
|
1647
|
-
*/
|
|
1648
|
-
getHealthRechargeMultiplier() {
|
|
1649
|
-
return inv('0x22CD23BB0C45E0CD', this.handle, raf());
|
|
1650
|
-
}
|
|
1651
|
-
/**
|
|
1652
|
-
* Used in script function: NET_AUTO_FOLLOW_UPDATE_LEADER_VALUES
|
|
1653
|
-
* followMode:
|
|
1654
|
-
* HORSEFOLLOWMODE_AUTO = 0,
|
|
1655
|
-
* HORSEFOLLOWMODE_SIDE_ONLY,
|
|
1656
|
-
* HORSEFOLLOWMODE_BEHIND_ONLY,
|
|
1657
|
-
* HORSEFOLLOWMODE_BEHIND_AND_SIDE,
|
|
1658
|
-
* HORSEFOLLOWMODE_BEHIND_CLOSE
|
|
1659
|
-
* followPriority:
|
|
1660
|
-
* HORSEFOLLOWPRIORITY_STEER_ASSIST = 0,
|
|
1661
|
-
* HORSEFOLLOWPRIORITY_AMBIENT,
|
|
1662
|
-
* HORSEFOLLOWPRIORITY_NORMAL,
|
|
1663
|
-
* HORSEFOLLOWPRIORITY_HIGH
|
|
1664
|
-
*
|
|
1665
|
-
* @param ped
|
|
1666
|
-
* @param p2
|
|
1667
|
-
* @param p3
|
|
1668
|
-
* @param followMode
|
|
1669
|
-
* @param followPriority
|
|
1670
|
-
* @param p6
|
|
1671
|
-
*/
|
|
1672
|
-
addAsFollowTarget(ped, p2, p3, followMode, followPriority, p6) {
|
|
1673
|
-
inv('0xAC22AA6DF4D1C1DE', this.handle, ped.handle, f(p2), f(p3), followMode, followPriority, p6);
|
|
1674
|
-
}
|
|
1675
|
-
/**
|
|
1676
|
-
* Sets the stand prompt for a specific player using a predefined text entry. use AddTextEntry for promptTextKey for custom names
|
|
1677
|
-
*
|
|
1678
|
-
* @param promptTextKey
|
|
1679
|
-
*/
|
|
1680
|
-
setPromptLeaveText(promptTextKey) {
|
|
1681
|
-
inv('0x06C3DB00B69D5435', this.handle, promptTextKey);
|
|
1682
|
-
}
|
|
1683
|
-
/**
|
|
1684
|
-
* Retrieves the number of marks placed on a PED when Deadeye mode is active for the specified player.
|
|
1685
|
-
*
|
|
1686
|
-
* @param ped
|
|
1687
|
-
* @returns
|
|
1688
|
-
*/
|
|
1689
|
-
getNumDeadeyeMarksOnPed(ped) {
|
|
1690
|
-
return inv('0x27AD7162D3FED01E', this.handle, ped.handle);
|
|
1691
|
-
}
|
|
1692
|
-
/**
|
|
1693
|
-
* @returns
|
|
1694
|
-
*/
|
|
1695
|
-
getPed2() {
|
|
1696
|
-
return createFromHandle('Ped', inv('0x5EBE38A20BC51C27', this.handle, rai()));
|
|
1697
|
-
}
|
|
1698
|
-
/**
|
|
1699
|
-
* @param p1
|
|
1700
|
-
* @returns
|
|
1701
|
-
*/
|
|
1702
|
-
getIsUiPromptActive(p1) {
|
|
1703
|
-
return inv('0x51BEA356B1C60225', this.handle, p1);
|
|
1704
|
-
}
|
|
1705
|
-
/**
|
|
1706
|
-
* @param horse
|
|
1707
|
-
* @returns
|
|
1708
|
-
*/
|
|
1709
|
-
setPedAsTempHorse(horse) {
|
|
1710
|
-
return inv('0x227B06324234FB09', this.handle, horse.handle);
|
|
1711
|
-
}
|
|
1712
|
-
/**
|
|
1713
|
-
* Restores Deadeye by given amount.
|
|
1714
|
-
* Params: p2, p3, p4 = 0, 0, 1 in R* Scripts
|
|
1715
|
-
*
|
|
1716
|
-
* @param amount
|
|
1717
|
-
* @param p2
|
|
1718
|
-
* @param p3
|
|
1719
|
-
* @param p4
|
|
1720
|
-
*/
|
|
1721
|
-
specialAbilityRestoreByAmount(amount, p2, p3, p4) {
|
|
1722
|
-
inv('0x51345AE20F22C261', this.handle, f(amount), p2, p3, p4);
|
|
1723
|
-
}
|
|
1724
|
-
/**
|
|
1725
|
-
* Only used in R* SP Script short_update
|
|
1726
|
-
*
|
|
1727
|
-
* @param delay
|
|
1728
|
-
*/
|
|
1729
|
-
setDeadeyeAbilityDepletionDelay(delay) {
|
|
1730
|
-
inv('0x870634493CB4372C', this.handle, f(delay));
|
|
1731
|
-
}
|
|
1732
|
-
/**
|
|
1733
|
-
* Swim speed multiplier.
|
|
1734
|
-
* Multiplier goes up to 1.49f
|
|
1735
|
-
*
|
|
1736
|
-
* @param multiplier
|
|
1737
|
-
*/
|
|
1738
|
-
setSwimMultiplierForPlayer(multiplier) {
|
|
1739
|
-
inv('0xBFCEABDE34DA5085', this.handle, f(multiplier));
|
|
1740
|
-
}
|
|
1741
|
-
/**
|
|
1742
|
-
* @returns
|
|
1743
|
-
*/
|
|
1744
|
-
isDead() {
|
|
1745
|
-
return inv('0x2E9C3FCB6798F397', this.handle, rai());
|
|
1746
|
-
}
|
|
1747
|
-
/**
|
|
1748
|
-
* @param ped
|
|
1749
|
-
* @param p2
|
|
1750
|
-
*/
|
|
1751
|
-
N_0x310CE349E0C0EC4B(ped, p2) {
|
|
1752
|
-
inv('0x310CE349E0C0EC4B', this.handle, ped.handle, p2);
|
|
1753
|
-
}
|
|
1754
|
-
/**
|
|
1755
|
-
* Clears all Eagle Eye trails that were registered for entities associated with the specified player.
|
|
1756
|
-
*/
|
|
1757
|
-
eagleEyeClearRegisteredTrails() {
|
|
1758
|
-
inv('0xE5D3EB37ABC1EB03', this.handle);
|
|
1759
|
-
}
|
|
1760
|
-
/**
|
|
1761
|
-
* @param enable
|
|
1762
|
-
*/
|
|
1763
|
-
enableCustomDeadeyeAbility(enable) {
|
|
1764
|
-
inv('0x95EE1DEE1DCD9070', this.handle, enable);
|
|
1765
|
-
}
|
|
1766
|
-
/**
|
|
1767
|
-
* Returns the player's invincibility status.
|
|
1768
|
-
*
|
|
1769
|
-
* @returns
|
|
1770
|
-
*/
|
|
1771
|
-
getInvincible() {
|
|
1772
|
-
return inv('0x0CBBCB2CCFA7DC4E', this.handle, rai());
|
|
1773
|
-
}
|
|
1774
|
-
resetArrestState() {
|
|
1775
|
-
inv('0x12917931C31F1750', this.handle);
|
|
1776
|
-
}
|
|
1777
|
-
/**
|
|
1778
|
-
* Toggle handles wether Deadeye and Eagleeye are infinite or not.
|
|
1779
|
-
*
|
|
1780
|
-
* @param toggle
|
|
1781
|
-
*/
|
|
1782
|
-
modifyInfiniteTrailVision(toggle) {
|
|
1783
|
-
inv('0x28A13BF6B05C3D83', this.handle, toggle);
|
|
1784
|
-
}
|
|
1785
|
-
/**
|
|
1786
|
-
* Simply sets you as invincible (Health will not deplete).
|
|
1787
|
-
*
|
|
1788
|
-
* @param toggle
|
|
1789
|
-
*/
|
|
1790
|
-
setInvincible(toggle) {
|
|
1791
|
-
inv('0xFEBEEBC9CBDF4B12', this.handle, toggle);
|
|
1792
|
-
}
|
|
1793
|
-
/**
|
|
1794
|
-
* Returns whether the player can control himself.
|
|
1795
|
-
*
|
|
1796
|
-
* @returns
|
|
1797
|
-
*/
|
|
1798
|
-
isControlOn() {
|
|
1799
|
-
return inv('0x7964097FCE4C244B', this.handle, rai());
|
|
1800
|
-
}
|
|
1801
|
-
/**
|
|
1802
|
-
* @param vehicle
|
|
1803
|
-
*/
|
|
1804
|
-
setMayOnlyEnterThisVehicle(vehicle) {
|
|
1805
|
-
inv('0xDA35A134038557EC', this.handle, vehicle.handle);
|
|
1810
|
+
get ServerId() {
|
|
1811
|
+
return inv('0x4D97BCC7', this.handle, rai());
|
|
1806
1812
|
}
|
|
1807
1813
|
}
|
|
1808
1814
|
registerHandle('Player', Player);
|