@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.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class Player implements IHandle {
|
|
|
13
13
|
*
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
get IsRidingTrain(): boolean;
|
|
17
17
|
/**
|
|
18
18
|
* Sets whether all trails are hidden during Eagle Eye mode.
|
|
19
19
|
*
|
|
@@ -32,11 +32,11 @@ export declare class Player implements IHandle {
|
|
|
32
32
|
*
|
|
33
33
|
* @param damageDecrease
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
set ReceivedDamageTakenOnHorsebackModifier(damageDecrease: number);
|
|
36
36
|
/**
|
|
37
37
|
* @param toggle
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
set CanMercyKill(toggle: boolean);
|
|
40
40
|
/**
|
|
41
41
|
* @param p1
|
|
42
42
|
* @param discoveryHash
|
|
@@ -46,19 +46,19 @@ export declare class Player implements IHandle {
|
|
|
46
46
|
/**
|
|
47
47
|
* @param speech
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
set InteractionPositiveResponse(speech: string | null);
|
|
50
50
|
/**
|
|
51
51
|
* This can be between 1.0f - 50.0f
|
|
52
52
|
*
|
|
53
53
|
* @param multiplier
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
set AirDragMultiplierForPlayersVehicle(multiplier: number);
|
|
56
56
|
/**
|
|
57
57
|
* Only applies to HUNTERCART01
|
|
58
58
|
*
|
|
59
59
|
* @param wagon
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
set HuntingWagon(wagon: Vehicle);
|
|
62
62
|
/**
|
|
63
63
|
* 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.
|
|
64
64
|
*
|
|
@@ -72,7 +72,7 @@ export declare class Player implements IHandle {
|
|
|
72
72
|
/**
|
|
73
73
|
* @param target
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
set BountyTarget(target: Player);
|
|
76
76
|
/**
|
|
77
77
|
* Retrieves whether all trails are currently hidden during Eagle Eye mode for the specified player.
|
|
78
78
|
*
|
|
@@ -82,7 +82,140 @@ export declare class Player implements IHandle {
|
|
|
82
82
|
/**
|
|
83
83
|
* @returns
|
|
84
84
|
*/
|
|
85
|
-
|
|
85
|
+
get IsDeadeyeTaggingEnabled(): any;
|
|
86
|
+
/**
|
|
87
|
+
* Sets Player's Defense against AI modifier
|
|
88
|
+
*
|
|
89
|
+
* @param modifier
|
|
90
|
+
*/
|
|
91
|
+
set AiDefenseModifierAgainstAi(modifier: number);
|
|
92
|
+
/**
|
|
93
|
+
* Gets the player's team.
|
|
94
|
+
* Returns -1 in singleplayer.
|
|
95
|
+
*
|
|
96
|
+
* @returns
|
|
97
|
+
*/
|
|
98
|
+
get Team(): number;
|
|
99
|
+
/**
|
|
100
|
+
* @returns
|
|
101
|
+
*/
|
|
102
|
+
get HealthRechargeMultiplier(): number;
|
|
103
|
+
/**
|
|
104
|
+
* Used in script function: NET_AUTO_FOLLOW_UPDATE_LEADER_VALUES
|
|
105
|
+
* followMode:
|
|
106
|
+
* HORSEFOLLOWMODE_AUTO = 0,
|
|
107
|
+
* HORSEFOLLOWMODE_SIDE_ONLY,
|
|
108
|
+
* HORSEFOLLOWMODE_BEHIND_ONLY,
|
|
109
|
+
* HORSEFOLLOWMODE_BEHIND_AND_SIDE,
|
|
110
|
+
* HORSEFOLLOWMODE_BEHIND_CLOSE
|
|
111
|
+
* followPriority:
|
|
112
|
+
* HORSEFOLLOWPRIORITY_STEER_ASSIST = 0,
|
|
113
|
+
* HORSEFOLLOWPRIORITY_AMBIENT,
|
|
114
|
+
* HORSEFOLLOWPRIORITY_NORMAL,
|
|
115
|
+
* HORSEFOLLOWPRIORITY_HIGH
|
|
116
|
+
*
|
|
117
|
+
* @param ped
|
|
118
|
+
* @param p2
|
|
119
|
+
* @param p3
|
|
120
|
+
* @param followMode
|
|
121
|
+
* @param followPriority
|
|
122
|
+
* @param p6
|
|
123
|
+
*/
|
|
124
|
+
addAsFollowTarget(ped: Ped, p2: number, p3: number, followMode: number, followPriority: number, p6: boolean): void;
|
|
125
|
+
/**
|
|
126
|
+
* Sets the stand prompt for a specific player using a predefined text entry. use AddTextEntry for promptTextKey for custom names
|
|
127
|
+
*
|
|
128
|
+
* @param promptTextKey
|
|
129
|
+
*/
|
|
130
|
+
set PromptLeaveText(promptTextKey: string | null);
|
|
131
|
+
/**
|
|
132
|
+
* Retrieves the number of marks placed on a PED when Deadeye mode is active for the specified player.
|
|
133
|
+
*
|
|
134
|
+
* @param ped
|
|
135
|
+
* @returns
|
|
136
|
+
*/
|
|
137
|
+
getNumDeadeyeMarksOnPed(ped: Ped): any;
|
|
138
|
+
/**
|
|
139
|
+
* @returns
|
|
140
|
+
*/
|
|
141
|
+
get Ped2(): Ped | null;
|
|
142
|
+
/**
|
|
143
|
+
* @param p1
|
|
144
|
+
* @returns
|
|
145
|
+
*/
|
|
146
|
+
getIsUiPromptActive(p1: number): any;
|
|
147
|
+
/**
|
|
148
|
+
* Returns true if PromptType is enabled for ped (mount)
|
|
149
|
+
* Params: See 0x0751D461F06E41CE
|
|
150
|
+
*
|
|
151
|
+
* @param ped
|
|
152
|
+
* @param promptType
|
|
153
|
+
* @param promptMode
|
|
154
|
+
* @returns
|
|
155
|
+
*/
|
|
156
|
+
getUiPromptForPedIsEnabled(ped: Ped, promptType: number, promptMode: number): any;
|
|
157
|
+
/**
|
|
158
|
+
* 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).
|
|
159
|
+
*
|
|
160
|
+
* @param flag
|
|
161
|
+
*/
|
|
162
|
+
set DeadeyeEntityAuraWithFlag(flag: number);
|
|
163
|
+
/**
|
|
164
|
+
* @returns
|
|
165
|
+
*/
|
|
166
|
+
get MountOwnedByPlayer(): Ped | null;
|
|
167
|
+
/**
|
|
168
|
+
* @param weaponHash Refer to [enum: eWeaponHash]
|
|
169
|
+
* @param damageModifier
|
|
170
|
+
*/
|
|
171
|
+
setWeaponTypeDamageModifier(weaponHash: eWeaponHash, damageModifier: number): void;
|
|
172
|
+
/**
|
|
173
|
+
* Only used in script function PROCESS_PED_INTERRUPT_DIALOGUE
|
|
174
|
+
* *GET_PLAYER**
|
|
175
|
+
*
|
|
176
|
+
* @returns ped
|
|
177
|
+
*/
|
|
178
|
+
N_0x7AE93C45EC14A166(): [boolean, Ped | null];
|
|
179
|
+
/**
|
|
180
|
+
* @param speed
|
|
181
|
+
* @param duration
|
|
182
|
+
* @param heading
|
|
183
|
+
* @param p4
|
|
184
|
+
* @param p5
|
|
185
|
+
*/
|
|
186
|
+
simulateInputGait(speed: number, duration: number, heading: number, p4: boolean, p5: boolean): void;
|
|
187
|
+
/**
|
|
188
|
+
* @param p1
|
|
189
|
+
* @returns
|
|
190
|
+
*/
|
|
191
|
+
getDeadEyeMeterLevel(p1: boolean): number;
|
|
192
|
+
/**
|
|
193
|
+
* @param drawReductionTime
|
|
194
|
+
*/
|
|
195
|
+
set BowDrawReductionTimeInDeadeye(drawReductionTime: number);
|
|
196
|
+
/**
|
|
197
|
+
* 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.
|
|
198
|
+
*
|
|
199
|
+
* @returns
|
|
200
|
+
*/
|
|
201
|
+
eagleEyeCanFocusOnTrack(): any;
|
|
202
|
+
/**
|
|
203
|
+
* @param range
|
|
204
|
+
*/
|
|
205
|
+
eagleEyeSetRange(range: number): void;
|
|
206
|
+
/**
|
|
207
|
+
* *SET_SPECIAL_ABILITY**
|
|
208
|
+
*
|
|
209
|
+
* @param p1
|
|
210
|
+
*/
|
|
211
|
+
N_0x4D1699543B1C023C(p1: number): void;
|
|
212
|
+
/**
|
|
213
|
+
* Drains Deadeye by given amount.
|
|
214
|
+
*
|
|
215
|
+
* @param amount
|
|
216
|
+
* @param p2
|
|
217
|
+
*/
|
|
218
|
+
specialAbilityDrainByAmount(amount: number, p2: any): void;
|
|
86
219
|
/**
|
|
87
220
|
* @param weaponGroup
|
|
88
221
|
* @param toggle
|
|
@@ -100,7 +233,7 @@ export declare class Player implements IHandle {
|
|
|
100
233
|
/**
|
|
101
234
|
* @param toggle
|
|
102
235
|
*/
|
|
103
|
-
|
|
236
|
+
set LockonToFriendlyPlayers(toggle: boolean);
|
|
104
237
|
/**
|
|
105
238
|
* Activates the Surrender prompt for the specified player in the current frame.
|
|
106
239
|
*
|
|
@@ -120,7 +253,7 @@ export declare class Player implements IHandle {
|
|
|
120
253
|
/**
|
|
121
254
|
* @returns
|
|
122
255
|
*/
|
|
123
|
-
|
|
256
|
+
get WantedLevel(): number;
|
|
124
257
|
/**
|
|
125
258
|
* @param closeRangeLowerBound
|
|
126
259
|
* @param closeRangeUpperBound
|
|
@@ -129,7 +262,7 @@ export declare class Player implements IHandle {
|
|
|
129
262
|
/**
|
|
130
263
|
* @param multiplier
|
|
131
264
|
*/
|
|
132
|
-
|
|
265
|
+
set SneakingNoiseMultiplier(multiplier: number);
|
|
133
266
|
/**
|
|
134
267
|
* Sets the player's team.
|
|
135
268
|
*
|
|
@@ -142,7 +275,120 @@ export declare class Player implements IHandle {
|
|
|
142
275
|
*
|
|
143
276
|
* @returns
|
|
144
277
|
*/
|
|
145
|
-
|
|
278
|
+
get IsSpecialAbilityEnabled(): any;
|
|
279
|
+
/**
|
|
280
|
+
* @param p2
|
|
281
|
+
* @param p3
|
|
282
|
+
* @returns outEntity
|
|
283
|
+
*/
|
|
284
|
+
getInteractionTargetEntity(p2: boolean, p3: boolean): [any, Entity | null];
|
|
285
|
+
/**
|
|
286
|
+
* @param toggle
|
|
287
|
+
*/
|
|
288
|
+
set DeadeyeTaggingEnabled(toggle: boolean);
|
|
289
|
+
/**
|
|
290
|
+
* @returns
|
|
291
|
+
*/
|
|
292
|
+
get Stamina(): number;
|
|
293
|
+
/**
|
|
294
|
+
* @param modifier
|
|
295
|
+
*/
|
|
296
|
+
set MeleeWeaponDamageModifier(modifier: number);
|
|
297
|
+
/**
|
|
298
|
+
* @returns
|
|
299
|
+
*/
|
|
300
|
+
hasBeenSpottedInStolenVehicle(): boolean;
|
|
301
|
+
/**
|
|
302
|
+
* 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.
|
|
303
|
+
*
|
|
304
|
+
* @param canPickup
|
|
305
|
+
*/
|
|
306
|
+
set CanPickupHat(canPickup: boolean);
|
|
307
|
+
/**
|
|
308
|
+
* 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
|
|
309
|
+
* some colors
|
|
310
|
+
* 0: Default aura
|
|
311
|
+
* 1014693585
|
|
312
|
+
* 1936842089
|
|
313
|
+
* 1979474018
|
|
314
|
+
*
|
|
315
|
+
* @param auraColorHash
|
|
316
|
+
*/
|
|
317
|
+
set DeadEyeAuraByHash(auraColorHash: string | number);
|
|
318
|
+
/**
|
|
319
|
+
* @param horse
|
|
320
|
+
* @returns
|
|
321
|
+
*/
|
|
322
|
+
setPedAsTempHorse(horse: Ped): any;
|
|
323
|
+
/**
|
|
324
|
+
* Restores Deadeye by given amount.
|
|
325
|
+
* Params: p2, p3, p4 = 0, 0, 1 in R* Scripts
|
|
326
|
+
*
|
|
327
|
+
* @param amount
|
|
328
|
+
* @param p2
|
|
329
|
+
* @param p3
|
|
330
|
+
* @param p4
|
|
331
|
+
*/
|
|
332
|
+
specialAbilityRestoreByAmount(amount: number, p2: number, p3: number, p4: number): void;
|
|
333
|
+
/**
|
|
334
|
+
* Only used in R* SP Script short_update
|
|
335
|
+
*
|
|
336
|
+
* @param delay
|
|
337
|
+
*/
|
|
338
|
+
set DeadeyeAbilityDepletionDelay(delay: number);
|
|
339
|
+
/**
|
|
340
|
+
* Swim speed multiplier.
|
|
341
|
+
* Multiplier goes up to 1.49f
|
|
342
|
+
*
|
|
343
|
+
* @param multiplier
|
|
344
|
+
*/
|
|
345
|
+
set SwimMultiplierForPlayer(multiplier: number);
|
|
346
|
+
/**
|
|
347
|
+
* @returns
|
|
348
|
+
*/
|
|
349
|
+
get IsDead(): boolean;
|
|
350
|
+
/**
|
|
351
|
+
* @param ped
|
|
352
|
+
* @param p2
|
|
353
|
+
*/
|
|
354
|
+
N_0x310CE349E0C0EC4B(ped: Ped, p2: number): void;
|
|
355
|
+
/**
|
|
356
|
+
* Clears all Eagle Eye trails that were registered for entities associated with the specified player.
|
|
357
|
+
*/
|
|
358
|
+
eagleEyeClearRegisteredTrails(): void;
|
|
359
|
+
/**
|
|
360
|
+
* @param enable
|
|
361
|
+
*/
|
|
362
|
+
enableCustomDeadeyeAbility(enable: boolean): void;
|
|
363
|
+
/**
|
|
364
|
+
* Returns the player's invincibility status.
|
|
365
|
+
*
|
|
366
|
+
* @returns
|
|
367
|
+
*/
|
|
368
|
+
get Invincible(): boolean;
|
|
369
|
+
resetArrestState(): void;
|
|
370
|
+
/**
|
|
371
|
+
* Toggle handles wether Deadeye and Eagleeye are infinite or not.
|
|
372
|
+
*
|
|
373
|
+
* @param toggle
|
|
374
|
+
*/
|
|
375
|
+
modifyInfiniteTrailVision(toggle: boolean): void;
|
|
376
|
+
/**
|
|
377
|
+
* Simply sets you as invincible (Health will not deplete).
|
|
378
|
+
*
|
|
379
|
+
* @param toggle
|
|
380
|
+
*/
|
|
381
|
+
set Invincible(toggle: boolean);
|
|
382
|
+
/**
|
|
383
|
+
* Returns whether the player can control himself.
|
|
384
|
+
*
|
|
385
|
+
* @returns
|
|
386
|
+
*/
|
|
387
|
+
get IsControlOn(): boolean;
|
|
388
|
+
/**
|
|
389
|
+
* @param vehicle
|
|
390
|
+
*/
|
|
391
|
+
set MayOnlyEnterThisVehicle(vehicle: Vehicle);
|
|
146
392
|
/**
|
|
147
393
|
* @param disabled
|
|
148
394
|
*/
|
|
@@ -164,7 +410,7 @@ export declare class Player implements IHandle {
|
|
|
164
410
|
/**
|
|
165
411
|
* @returns
|
|
166
412
|
*/
|
|
167
|
-
|
|
413
|
+
get CachedDeadEyeAmount(): number;
|
|
168
414
|
clearHasDamagedAtLeastOnePed(): void;
|
|
169
415
|
/**
|
|
170
416
|
* @param entity
|
|
@@ -177,7 +423,7 @@ export declare class Player implements IHandle {
|
|
|
177
423
|
*
|
|
178
424
|
* @returns
|
|
179
425
|
*/
|
|
180
|
-
|
|
426
|
+
get RequiredDeadEyeAmount(): number;
|
|
181
427
|
/**
|
|
182
428
|
* @param p1
|
|
183
429
|
*/
|
|
@@ -192,7 +438,7 @@ export declare class Player implements IHandle {
|
|
|
192
438
|
/**
|
|
193
439
|
* @param toggle
|
|
194
440
|
*/
|
|
195
|
-
|
|
441
|
+
set Lockon(toggle: boolean);
|
|
196
442
|
/**
|
|
197
443
|
* 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.
|
|
198
444
|
* 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.
|
|
@@ -204,7 +450,7 @@ export declare class Player implements IHandle {
|
|
|
204
450
|
/**
|
|
205
451
|
* @param closeDamageBonus
|
|
206
452
|
*/
|
|
207
|
-
|
|
453
|
+
set DamageCloseDistanceBonusTotal(closeDamageBonus: number);
|
|
208
454
|
/**
|
|
209
455
|
* Params: p1 = -1 in R* Scripts
|
|
210
456
|
*
|
|
@@ -215,7 +461,7 @@ export declare class Player implements IHandle {
|
|
|
215
461
|
/**
|
|
216
462
|
* @param multiplier
|
|
217
463
|
*/
|
|
218
|
-
|
|
464
|
+
set StaminaSprintDepletionMultiplier(multiplier: number);
|
|
219
465
|
/**
|
|
220
466
|
* @param p1
|
|
221
467
|
*/
|
|
@@ -225,11 +471,11 @@ export declare class Player implements IHandle {
|
|
|
225
471
|
*
|
|
226
472
|
* @returns entity
|
|
227
473
|
*/
|
|
228
|
-
|
|
474
|
+
get InteractionAimEntity(): [boolean, Entity | null];
|
|
229
475
|
/**
|
|
230
476
|
* @param modifier
|
|
231
477
|
*/
|
|
232
|
-
|
|
478
|
+
set WeaponDefenseModifier(modifier: number);
|
|
233
479
|
/**
|
|
234
480
|
* @returns
|
|
235
481
|
*/
|
|
@@ -237,13 +483,13 @@ export declare class Player implements IHandle {
|
|
|
237
483
|
/**
|
|
238
484
|
* @returns
|
|
239
485
|
*/
|
|
240
|
-
|
|
486
|
+
get DeadeyeAbilityLevel(): number;
|
|
241
487
|
/**
|
|
242
488
|
* This native is used to determine if the player has an active lockon an entity while riding a horse.
|
|
243
489
|
*
|
|
244
490
|
* @returns
|
|
245
491
|
*/
|
|
246
|
-
|
|
492
|
+
get IsOnMountLockonEntity(): boolean;
|
|
247
493
|
suppressWitnessesCallingPoliceThisFrame(): void;
|
|
248
494
|
/**
|
|
249
495
|
* bullet damage modifier: type = 4
|
|
@@ -276,11 +522,11 @@ export declare class Player implements IHandle {
|
|
|
276
522
|
/**
|
|
277
523
|
* @param accuracy
|
|
278
524
|
*/
|
|
279
|
-
|
|
525
|
+
set TotalAccuracyModifier(accuracy: number);
|
|
280
526
|
/**
|
|
281
527
|
* @returns
|
|
282
528
|
*/
|
|
283
|
-
|
|
529
|
+
get VehicleOwnedByPlayer(): Vehicle | null;
|
|
284
530
|
/**
|
|
285
531
|
* Activates EagleEye, called together with 0x28A13BF6B05C3D83
|
|
286
532
|
*/
|
|
@@ -304,7 +550,7 @@ export declare class Player implements IHandle {
|
|
|
304
550
|
/**
|
|
305
551
|
* @param multiplier
|
|
306
552
|
*/
|
|
307
|
-
|
|
553
|
+
set StaminaRechargeMultiplier(multiplier: number);
|
|
308
554
|
/**
|
|
309
555
|
* Deactivates EagleEye, called together with 0xC0B21F235C02139C
|
|
310
556
|
*
|
|
@@ -324,13 +570,13 @@ export declare class Player implements IHandle {
|
|
|
324
570
|
/**
|
|
325
571
|
* @param modifier
|
|
326
572
|
*/
|
|
327
|
-
|
|
573
|
+
set WeaponDegradationModifier(modifier: number);
|
|
328
574
|
/**
|
|
329
575
|
* Only used in R* SP Script short_update
|
|
330
576
|
*
|
|
331
577
|
* @param timer
|
|
332
578
|
*/
|
|
333
|
-
|
|
579
|
+
set SpecialAbilityDisableTimer(timer: number);
|
|
334
580
|
/**
|
|
335
581
|
* @param abilityType
|
|
336
582
|
* @param toggle
|
|
@@ -348,18 +594,18 @@ export declare class Player implements IHandle {
|
|
|
348
594
|
*
|
|
349
595
|
* @returns
|
|
350
596
|
*/
|
|
351
|
-
|
|
597
|
+
get IsClimbing(): boolean;
|
|
352
598
|
/**
|
|
353
599
|
* @returns Refer to [enum: ePedMood]
|
|
354
600
|
*/
|
|
355
|
-
|
|
601
|
+
get Mood(): number;
|
|
356
602
|
clearBountyTarget(): void;
|
|
357
603
|
/**
|
|
358
604
|
* Focus Fire VFX start for player: p1 = focusfire
|
|
359
605
|
*
|
|
360
606
|
* @param p1
|
|
361
607
|
*/
|
|
362
|
-
|
|
608
|
+
set LockonFocusFireVfx(p1: string | null);
|
|
363
609
|
/**
|
|
364
610
|
* Params: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePromptType
|
|
365
611
|
* promptType is mostly 34 (PP_TRACK_ANIMAL), promptMode = 0 (PP_MODE_BLOCK) in R* Scripts
|
|
@@ -401,7 +647,7 @@ export declare class Player implements IHandle {
|
|
|
401
647
|
/**
|
|
402
648
|
* @param vehicle
|
|
403
649
|
*/
|
|
404
|
-
|
|
650
|
+
set OwnsVehicle(vehicle: Vehicle);
|
|
405
651
|
/**
|
|
406
652
|
* @returns
|
|
407
653
|
*/
|
|
@@ -411,7 +657,7 @@ export declare class Player implements IHandle {
|
|
|
411
657
|
*
|
|
412
658
|
* @param mount
|
|
413
659
|
*/
|
|
414
|
-
|
|
660
|
+
set OwnsMount(mount: Ped);
|
|
415
661
|
/**
|
|
416
662
|
* nullsub, doesn't do anything
|
|
417
663
|
*/
|
|
@@ -421,7 +667,7 @@ export declare class Player implements IHandle {
|
|
|
421
667
|
*
|
|
422
668
|
* @returns
|
|
423
669
|
*/
|
|
424
|
-
|
|
670
|
+
get PedScriptIndex(): Ped | null;
|
|
425
671
|
/**
|
|
426
672
|
* Retrieves the ID of the ped that the specified player is currently tracking while in Eagle Eye mode.
|
|
427
673
|
*
|
|
@@ -431,13 +677,13 @@ export declare class Player implements IHandle {
|
|
|
431
677
|
/**
|
|
432
678
|
* @returns Returns the player name, or if the player doesn't exist, it returns "**Invalid**"
|
|
433
679
|
*/
|
|
434
|
-
|
|
680
|
+
get Name(): string | null;
|
|
435
681
|
/**
|
|
436
682
|
* Seems to work similar to 0xD2CB0FB0FDCB473D
|
|
437
683
|
*
|
|
438
684
|
* @param horse
|
|
439
685
|
*/
|
|
440
|
-
|
|
686
|
+
set PedActiveHorse(horse: Ped);
|
|
441
687
|
/**
|
|
442
688
|
* Name could potentially be inaccurate.
|
|
443
689
|
* Used in Script Function HORSE_SETUP_PLAYER_HORSE_ATTRIBUTES (p1 = true)
|
|
@@ -445,7 +691,7 @@ export declare class Player implements IHandle {
|
|
|
445
691
|
*
|
|
446
692
|
* @param active
|
|
447
693
|
*/
|
|
448
|
-
|
|
694
|
+
set MountStateActive(active: boolean);
|
|
449
695
|
/**
|
|
450
696
|
* _IS_PLAYER_I* - _IS_PLAYER_P*
|
|
451
697
|
*
|
|
@@ -467,7 +713,7 @@ export declare class Player implements IHandle {
|
|
|
467
713
|
*
|
|
468
714
|
* @param label
|
|
469
715
|
*/
|
|
470
|
-
|
|
716
|
+
set SitPromptText(label: string | null);
|
|
471
717
|
updateWantedPositionThisFrame(): void;
|
|
472
718
|
/**
|
|
473
719
|
* @param entity
|
|
@@ -484,7 +730,7 @@ export declare class Player implements IHandle {
|
|
|
484
730
|
*
|
|
485
731
|
* @param label
|
|
486
732
|
*/
|
|
487
|
-
|
|
733
|
+
set MeleePromptText(label: string | null);
|
|
488
734
|
/**
|
|
489
735
|
* Used in script function INIT_DEADEYE_SLOWDOWN
|
|
490
736
|
*
|
|
@@ -511,13 +757,13 @@ export declare class Player implements IHandle {
|
|
|
511
757
|
/**
|
|
512
758
|
* @param modifier
|
|
513
759
|
*/
|
|
514
|
-
|
|
760
|
+
set ExplosiveWeaponDamageModifier(modifier: number);
|
|
515
761
|
/**
|
|
516
762
|
* returns true if the player is on a road while riding a horse but at a certain speed, if you go off road then it returns false or if you go too slow like walking state it also returns false
|
|
517
763
|
*
|
|
518
764
|
* @returns
|
|
519
765
|
*/
|
|
520
|
-
|
|
766
|
+
get IsMountOnRoad(): any;
|
|
521
767
|
/**
|
|
522
768
|
* @param entity
|
|
523
769
|
* @returns
|
|
@@ -528,21 +774,21 @@ export declare class Player implements IHandle {
|
|
|
528
774
|
*
|
|
529
775
|
* @param level
|
|
530
776
|
*/
|
|
531
|
-
|
|
777
|
+
set DeadeyeAbilityLevel(level: number);
|
|
532
778
|
/**
|
|
533
779
|
* Shows or hides all Pick Up prompts for the specified player, including the prompt for picking up hats from the ground. When set to true, the player will see Pick Up prompts for all nearby items. If set to false, all Pick Up prompts will be hidden.
|
|
534
780
|
*
|
|
535
781
|
* @param enable
|
|
536
782
|
*/
|
|
537
|
-
|
|
783
|
+
set PickupPromptVisible(enable: boolean);
|
|
538
784
|
/**
|
|
539
785
|
* @param mount
|
|
540
786
|
*/
|
|
541
|
-
|
|
787
|
+
set PedAsSaddleHorseForPlayer(mount: Ped);
|
|
542
788
|
/**
|
|
543
789
|
* @returns
|
|
544
790
|
*/
|
|
545
|
-
|
|
791
|
+
get ActiveHorseForPlayer(): Ped | null;
|
|
546
792
|
/**
|
|
547
793
|
* @param entity
|
|
548
794
|
* @param p2
|
|
@@ -583,17 +829,17 @@ export declare class Player implements IHandle {
|
|
|
583
829
|
/**
|
|
584
830
|
* @returns
|
|
585
831
|
*/
|
|
586
|
-
|
|
832
|
+
get StaminaRechargeMultiplier(): number;
|
|
587
833
|
/**
|
|
588
834
|
* Returns the depletion delay value for the Deadeye ability that was previously set using `SetDeadeyeAbilityDepletionDelay - 0x870634493CB4372C`
|
|
589
835
|
*
|
|
590
836
|
* @returns
|
|
591
837
|
*/
|
|
592
|
-
|
|
838
|
+
get DeadeyeAbilityDepletionDelay(): any;
|
|
593
839
|
/**
|
|
594
840
|
* @returns
|
|
595
841
|
*/
|
|
596
|
-
|
|
842
|
+
get IsReadyForCutscene(): boolean;
|
|
597
843
|
/**
|
|
598
844
|
* @param p1
|
|
599
845
|
*/
|
|
@@ -622,13 +868,13 @@ export declare class Player implements IHandle {
|
|
|
622
868
|
/**
|
|
623
869
|
* @returns
|
|
624
870
|
*/
|
|
625
|
-
|
|
871
|
+
get Ped(): Ped | null;
|
|
626
872
|
/**
|
|
627
873
|
* Sets whether all random peds will run away from player if they are agitated (threatened) (bool=true), or some peds can stand up for themselves (bool=false).
|
|
628
874
|
*
|
|
629
875
|
* @param toggle
|
|
630
876
|
*/
|
|
631
|
-
|
|
877
|
+
set AllRandomPedsFlee(toggle: boolean);
|
|
632
878
|
/**
|
|
633
879
|
* @param p1
|
|
634
880
|
* @param discoveryHash
|
|
@@ -637,11 +883,11 @@ export declare class Player implements IHandle {
|
|
|
637
883
|
/**
|
|
638
884
|
* @returns entity
|
|
639
885
|
*/
|
|
640
|
-
|
|
886
|
+
get EntityIsFreeAimingAt(): [boolean, Entity | null];
|
|
641
887
|
/**
|
|
642
888
|
* @returns
|
|
643
889
|
*/
|
|
644
|
-
|
|
890
|
+
get TempHorse(): Ped | null;
|
|
645
891
|
/**
|
|
646
892
|
* this native checks if the player has damaged or killed any ped human/animal recently within the duration passed, either by shooting or even using melee
|
|
647
893
|
* duration is in miliseconds
|
|
@@ -653,35 +899,35 @@ export declare class Player implements IHandle {
|
|
|
653
899
|
/**
|
|
654
900
|
* @returns entity
|
|
655
901
|
*/
|
|
656
|
-
|
|
902
|
+
get TargetEntity(): [boolean, Entity | null];
|
|
657
903
|
/**
|
|
658
904
|
* @returns Returns true if the ped has a ped, and the ped is alive and not arrested.
|
|
659
905
|
*/
|
|
660
|
-
|
|
906
|
+
get IsPlaying(): boolean;
|
|
661
907
|
/**
|
|
662
908
|
* @returns
|
|
663
909
|
*/
|
|
664
|
-
|
|
910
|
+
get SaddleHorseForPlayer(): Ped | null;
|
|
665
911
|
/**
|
|
666
912
|
* Affects the range of auto aim target.
|
|
667
913
|
*
|
|
668
914
|
* @param range
|
|
669
915
|
*/
|
|
670
|
-
|
|
916
|
+
set LockonRangeOverride(range: number);
|
|
671
917
|
/**
|
|
672
918
|
* @returns
|
|
673
919
|
*/
|
|
674
|
-
|
|
920
|
+
get HuntingWagon(): Vehicle | null;
|
|
675
921
|
/**
|
|
676
922
|
* @param modifier
|
|
677
923
|
*/
|
|
678
|
-
|
|
924
|
+
set TrampleDamageModifier(modifier: number);
|
|
679
925
|
/**
|
|
680
926
|
* Checks if player is focused on any entity
|
|
681
927
|
*
|
|
682
928
|
* @returns
|
|
683
929
|
*/
|
|
684
|
-
|
|
930
|
+
get IsFreeFocusing(): any;
|
|
685
931
|
/**
|
|
686
932
|
* flags: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eSetPlayerControlFlags
|
|
687
933
|
*
|
|
@@ -695,37 +941,37 @@ export declare class Player implements IHandle {
|
|
|
695
941
|
*
|
|
696
942
|
* @returns
|
|
697
943
|
*/
|
|
698
|
-
|
|
944
|
+
get IsSecondarySpecialAbilityEnabled(): boolean;
|
|
699
945
|
/**
|
|
700
946
|
* @param multiplier
|
|
701
947
|
*/
|
|
702
|
-
|
|
948
|
+
set NoiseMultiplier(multiplier: number);
|
|
703
949
|
/**
|
|
704
950
|
* Gets a value indicating whether the specified player is currently aiming freely.
|
|
705
951
|
*
|
|
706
952
|
* @returns
|
|
707
953
|
*/
|
|
708
|
-
|
|
954
|
+
get IsFreeAiming(): boolean;
|
|
709
955
|
/**
|
|
710
956
|
* @param showingInfoCard
|
|
711
957
|
*/
|
|
712
|
-
|
|
958
|
+
set ShowInfoCard(showingInfoCard: boolean);
|
|
713
959
|
/**
|
|
714
960
|
* @param regenRate
|
|
715
961
|
*/
|
|
716
|
-
|
|
962
|
+
set HealthRechargeMultiplier(regenRate: number);
|
|
717
963
|
/**
|
|
718
964
|
* damageInfo: STANDARD_PED_DAMAGE, STANDARD_FEMALE_PED_DAMAGE, STANDARD_PLAYER_PED_DAMAGE_MP, STANDARD_FEMALE_PLAYER_PED_DAMAGE_MP
|
|
719
965
|
*
|
|
720
966
|
* @param damageInfo
|
|
721
967
|
*/
|
|
722
|
-
|
|
968
|
+
set DamageInfoOverride(damageInfo: string | null);
|
|
723
969
|
/**
|
|
724
970
|
* Sets whether this player can be hassled by gangs.
|
|
725
971
|
*
|
|
726
972
|
* @param toggle
|
|
727
973
|
*/
|
|
728
|
-
|
|
974
|
+
set CanBeHassledByGangs(toggle: boolean);
|
|
729
975
|
/**
|
|
730
976
|
* Clears the intensity of aura effects applied to entities for a specific player in Deadeye mode based on a flag parameter. This function is used to reset any intensity modifications set by `_SET_DEADEYE_ENTITY_AURA_INTENSITY_WITH_FLAG - 0x131E294EF60160DF`, restoring affected entities' aura intensity to their default state.
|
|
731
977
|
*
|
|
@@ -737,7 +983,7 @@ export declare class Player implements IHandle {
|
|
|
737
983
|
*
|
|
738
984
|
* @param staminaDrain
|
|
739
985
|
*/
|
|
740
|
-
|
|
986
|
+
set BowStaminaDrainSpeed(staminaDrain: number);
|
|
741
987
|
setAllRandomPedsFleeThisFrame(): void;
|
|
742
988
|
/**
|
|
743
989
|
* Unsure what it does, sets a Vector on the CPlayerInfo but it doesn't? look like its used anywhere
|
|
@@ -750,7 +996,7 @@ export declare class Player implements IHandle {
|
|
|
750
996
|
*
|
|
751
997
|
* @param damage
|
|
752
998
|
*/
|
|
753
|
-
|
|
999
|
+
set LassoDamagePerSecond(damage: number);
|
|
754
1000
|
/**
|
|
755
1001
|
* Return true while player is being arrested / busted. If atArresting is set to 1, this function will return 1 when player is being arrested (while player is putting his hand up, but still have control) If atArresting is set to 0, this function will return 1 only when the busted screen is shown.
|
|
756
1002
|
*
|
|
@@ -768,12 +1014,12 @@ export declare class Player implements IHandle {
|
|
|
768
1014
|
/**
|
|
769
1015
|
* @param farDamageBonus
|
|
770
1016
|
*/
|
|
771
|
-
|
|
1017
|
+
set DamageFarDistanceBonusTotal(farDamageBonus: number);
|
|
772
1018
|
setMayNotEnterAnyVehicle(): void;
|
|
773
1019
|
/**
|
|
774
1020
|
* @returns
|
|
775
1021
|
*/
|
|
776
|
-
|
|
1022
|
+
get Health(): number;
|
|
777
1023
|
resetWantedLevelDifficulty(): void;
|
|
778
1024
|
/**
|
|
779
1025
|
* @param linkedWaypointPed
|
|
@@ -782,7 +1028,7 @@ export declare class Player implements IHandle {
|
|
|
782
1028
|
/**
|
|
783
1029
|
* @returns
|
|
784
1030
|
*/
|
|
785
|
-
|
|
1031
|
+
get NumMarkedDeadeyeTargets(): number;
|
|
786
1032
|
/**
|
|
787
1033
|
* @param weaponHash Refer to [enum: eWeaponHash]
|
|
788
1034
|
* @returns
|
|
@@ -798,7 +1044,7 @@ export declare class Player implements IHandle {
|
|
|
798
1044
|
/**
|
|
799
1045
|
* @param speech
|
|
800
1046
|
*/
|
|
801
|
-
|
|
1047
|
+
set InteractionNegativeResponse(speech: string | null);
|
|
802
1048
|
/**
|
|
803
1049
|
* Params: p1, p2, p3, p4 = 1.f, 0, 0, 0 in R* Scripts
|
|
804
1050
|
* _SPECIAL_ABILITY*
|
|
@@ -812,17 +1058,17 @@ export declare class Player implements IHandle {
|
|
|
812
1058
|
/**
|
|
813
1059
|
* @param toggle
|
|
814
1060
|
*/
|
|
815
|
-
|
|
1061
|
+
set SimulateAiming(toggle: boolean);
|
|
816
1062
|
/**
|
|
817
1063
|
* @returns
|
|
818
1064
|
*/
|
|
819
|
-
|
|
1065
|
+
get AiDefenseModifierAgainstAi(): number;
|
|
820
1066
|
/**
|
|
821
1067
|
* Setting player's Health recharge time to zero forces immediate health regen
|
|
822
1068
|
*
|
|
823
1069
|
* @param modifier
|
|
824
1070
|
*/
|
|
825
|
-
|
|
1071
|
+
set HealthRechargeTimeModifier(modifier: number);
|
|
826
1072
|
/**
|
|
827
1073
|
* Returns true if the given player has a valid ped.
|
|
828
1074
|
*
|
|
@@ -832,7 +1078,7 @@ export declare class Player implements IHandle {
|
|
|
832
1078
|
/**
|
|
833
1079
|
* @param accuracy
|
|
834
1080
|
*/
|
|
835
|
-
|
|
1081
|
+
set RemoteAccuracyFloorModifier(accuracy: number);
|
|
836
1082
|
/**
|
|
837
1083
|
* @param weapon
|
|
838
1084
|
* @param speed
|
|
@@ -841,11 +1087,11 @@ export declare class Player implements IHandle {
|
|
|
841
1087
|
/**
|
|
842
1088
|
* @returns
|
|
843
1089
|
*/
|
|
844
|
-
|
|
1090
|
+
get StaminaDepletionMultiplier(): number;
|
|
845
1091
|
/**
|
|
846
1092
|
* @returns
|
|
847
1093
|
*/
|
|
848
|
-
|
|
1094
|
+
get CurrentStealthNoise(): number;
|
|
849
1095
|
/**
|
|
850
1096
|
* @param ped
|
|
851
1097
|
* @returns
|
|
@@ -856,7 +1102,7 @@ export declare class Player implements IHandle {
|
|
|
856
1102
|
*
|
|
857
1103
|
* @param mood Refer to [enum: ePedMood]
|
|
858
1104
|
*/
|
|
859
|
-
|
|
1105
|
+
set Mood(mood: number);
|
|
860
1106
|
/**
|
|
861
1107
|
* Params: See 0x0751D461F06E41CE
|
|
862
1108
|
*
|
|
@@ -877,7 +1123,7 @@ export declare class Player implements IHandle {
|
|
|
877
1123
|
*
|
|
878
1124
|
* @param disable
|
|
879
1125
|
*/
|
|
880
|
-
|
|
1126
|
+
set DisableWantedLevel(disable: boolean);
|
|
881
1127
|
/**
|
|
882
1128
|
* Disables the previously set interactive focus mode preset for a given player. see `_SET_PLAYER_INTERACTIVE_FOCUS_PRESET - 0x3C1B1807C7A415D6`
|
|
883
1129
|
*
|
|
@@ -887,15 +1133,15 @@ export declare class Player implements IHandle {
|
|
|
887
1133
|
/**
|
|
888
1134
|
* @param p1
|
|
889
1135
|
*/
|
|
890
|
-
|
|
1136
|
+
set ManageBuffSuperJump(p1: number);
|
|
891
1137
|
/**
|
|
892
1138
|
* @param multiplier
|
|
893
1139
|
*/
|
|
894
|
-
|
|
1140
|
+
set SpecialAbilityMultiplier(multiplier: number);
|
|
895
1141
|
/**
|
|
896
1142
|
* @param accuracy
|
|
897
1143
|
*/
|
|
898
|
-
|
|
1144
|
+
set LocalAccuracyFloorModifier(accuracy: number);
|
|
899
1145
|
/**
|
|
900
1146
|
* @param wantedLevel
|
|
901
1147
|
* @returns
|
|
@@ -913,17 +1159,17 @@ export declare class Player implements IHandle {
|
|
|
913
1159
|
*
|
|
914
1160
|
* @param type
|
|
915
1161
|
*/
|
|
916
|
-
|
|
1162
|
+
set SpecialAbilityType(type: number);
|
|
917
1163
|
/**
|
|
918
1164
|
* @param toggle
|
|
919
1165
|
*/
|
|
920
|
-
|
|
1166
|
+
set EveryoneIgnorePlayer(toggle: boolean);
|
|
921
1167
|
/**
|
|
922
1168
|
* Sets whether this player can take cover.
|
|
923
1169
|
*
|
|
924
1170
|
* @param toggle
|
|
925
1171
|
*/
|
|
926
|
-
|
|
1172
|
+
set CanUseCover(toggle: boolean);
|
|
927
1173
|
/**
|
|
928
1174
|
* @param ped
|
|
929
1175
|
*/
|
|
@@ -946,7 +1192,7 @@ export declare class Player implements IHandle {
|
|
|
946
1192
|
/**
|
|
947
1193
|
* @param filter
|
|
948
1194
|
*/
|
|
949
|
-
|
|
1195
|
+
set DeadeyeTaggingConfig(filter: number);
|
|
950
1196
|
/**
|
|
951
1197
|
* (Un)lock Eagle Eye functionality
|
|
952
1198
|
*
|
|
@@ -963,7 +1209,7 @@ export declare class Player implements IHandle {
|
|
|
963
1209
|
/**
|
|
964
1210
|
* @returns
|
|
965
1211
|
*/
|
|
966
|
-
|
|
1212
|
+
get IsSpecialAbilityActive(): any;
|
|
967
1213
|
reportPoliceSpottedPlayer(): void;
|
|
968
1214
|
/**
|
|
969
1215
|
* @param p1
|
|
@@ -974,7 +1220,7 @@ export declare class Player implements IHandle {
|
|
|
974
1220
|
/**
|
|
975
1221
|
* @returns
|
|
976
1222
|
*/
|
|
977
|
-
|
|
1223
|
+
get SpecialAbilityMultiplier(): number;
|
|
978
1224
|
/**
|
|
979
1225
|
* Sets the weapon that the specified player will aim with. The weapon must already be assigned to the PED. This also determines the weapon order, specifying which weapon the player will automatically switch to when the current weapon runs out of ammo.
|
|
980
1226
|
*
|
|
@@ -1001,18 +1247,18 @@ export declare class Player implements IHandle {
|
|
|
1001
1247
|
/**
|
|
1002
1248
|
* @returns
|
|
1003
1249
|
*/
|
|
1004
|
-
|
|
1250
|
+
get IsScriptControlOn(): boolean;
|
|
1005
1251
|
/**
|
|
1006
1252
|
* @returns
|
|
1007
1253
|
*/
|
|
1008
|
-
|
|
1254
|
+
get IsSecondarySpecialAbilityActive(): any;
|
|
1009
1255
|
N_0xC900A465364A85D6(): void;
|
|
1010
1256
|
/**
|
|
1011
1257
|
* Returns the group ID the player is member of.
|
|
1012
1258
|
*
|
|
1013
1259
|
* @returns
|
|
1014
1260
|
*/
|
|
1015
|
-
|
|
1261
|
+
get Group(): number;
|
|
1016
1262
|
/**
|
|
1017
1263
|
* Sets stamina core drains peed using ranged damage scale and melee damage scale
|
|
1018
1264
|
*
|
|
@@ -1025,17 +1271,17 @@ export declare class Player implements IHandle {
|
|
|
1025
1271
|
*
|
|
1026
1272
|
* @param modifier
|
|
1027
1273
|
*/
|
|
1028
|
-
|
|
1274
|
+
set WeaponDamageModifier(modifier: number);
|
|
1029
1275
|
/**
|
|
1030
1276
|
* durationCost: per second
|
|
1031
1277
|
*
|
|
1032
1278
|
* @param durationCost
|
|
1033
1279
|
*/
|
|
1034
|
-
|
|
1280
|
+
set SpecialAbilityDurationCost(durationCost: number);
|
|
1035
1281
|
/**
|
|
1036
1282
|
* @returns
|
|
1037
1283
|
*/
|
|
1038
|
-
|
|
1284
|
+
get IsTargettingAnything(): boolean;
|
|
1039
1285
|
/**
|
|
1040
1286
|
* @param modifier
|
|
1041
1287
|
*/
|
|
@@ -1043,11 +1289,11 @@ export declare class Player implements IHandle {
|
|
|
1043
1289
|
/**
|
|
1044
1290
|
* @returns
|
|
1045
1291
|
*/
|
|
1046
|
-
|
|
1292
|
+
get DeadEye(): number;
|
|
1047
1293
|
/**
|
|
1048
1294
|
* @returns
|
|
1049
1295
|
*/
|
|
1050
|
-
|
|
1296
|
+
get IsInScope(): any;
|
|
1051
1297
|
/**
|
|
1052
1298
|
* SET_PLAYER_S/T*
|
|
1053
1299
|
*
|
|
@@ -1060,250 +1306,8 @@ export declare class Player implements IHandle {
|
|
|
1060
1306
|
*/
|
|
1061
1307
|
boostHorseSpeedForTime(speedBoost: number, duration: number): void;
|
|
1062
1308
|
/**
|
|
1063
|
-
*
|
|
1064
|
-
* @param p3
|
|
1065
|
-
* @returns outEntity
|
|
1066
|
-
*/
|
|
1067
|
-
getInteractionTargetEntity(p2: boolean, p3: boolean): [any, Entity | null];
|
|
1068
|
-
/**
|
|
1069
|
-
* @param toggle
|
|
1070
|
-
*/
|
|
1071
|
-
setDeadeyeTaggingEnabled(toggle: boolean): void;
|
|
1072
|
-
/**
|
|
1073
|
-
* @returns
|
|
1074
|
-
*/
|
|
1075
|
-
getStamina(): number;
|
|
1076
|
-
/**
|
|
1077
|
-
* @param modifier
|
|
1078
|
-
*/
|
|
1079
|
-
setMeleeWeaponDamageModifier(modifier: number): void;
|
|
1080
|
-
/**
|
|
1081
|
-
* @returns
|
|
1082
|
-
*/
|
|
1083
|
-
hasBeenSpottedInStolenVehicle(): boolean;
|
|
1084
|
-
/**
|
|
1085
|
-
* 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.
|
|
1086
|
-
*
|
|
1087
|
-
* @param canPickup
|
|
1088
|
-
*/
|
|
1089
|
-
setCanPickupHat(canPickup: boolean): void;
|
|
1090
|
-
/**
|
|
1091
|
-
* 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
|
|
1092
|
-
* some colors
|
|
1093
|
-
* 0: Default aura
|
|
1094
|
-
* 1014693585
|
|
1095
|
-
* 1936842089
|
|
1096
|
-
* 1979474018
|
|
1097
|
-
*
|
|
1098
|
-
* @param auraColorHash
|
|
1099
|
-
*/
|
|
1100
|
-
setDeadEyeAuraByHash(auraColorHash: string | number): void;
|
|
1101
|
-
/**
|
|
1102
|
-
* Returns true if PromptType is enabled for ped (mount)
|
|
1103
|
-
* Params: See 0x0751D461F06E41CE
|
|
1104
|
-
*
|
|
1105
|
-
* @param ped
|
|
1106
|
-
* @param promptType
|
|
1107
|
-
* @param promptMode
|
|
1108
|
-
* @returns
|
|
1109
|
-
*/
|
|
1110
|
-
getUiPromptForPedIsEnabled(ped: Ped, promptType: number, promptMode: number): any;
|
|
1111
|
-
/**
|
|
1112
|
-
* 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).
|
|
1113
|
-
*
|
|
1114
|
-
* @param flag
|
|
1115
|
-
*/
|
|
1116
|
-
setDeadeyeEntityAuraWithFlag(flag: number): void;
|
|
1117
|
-
/**
|
|
1118
|
-
* @returns
|
|
1119
|
-
*/
|
|
1120
|
-
getMountOwnedByPlayer(): Ped | null;
|
|
1121
|
-
/**
|
|
1122
|
-
* @param weaponHash Refer to [enum: eWeaponHash]
|
|
1123
|
-
* @param damageModifier
|
|
1124
|
-
*/
|
|
1125
|
-
setWeaponTypeDamageModifier(weaponHash: eWeaponHash, damageModifier: number): void;
|
|
1126
|
-
/**
|
|
1127
|
-
* Only used in script function PROCESS_PED_INTERRUPT_DIALOGUE
|
|
1128
|
-
* *GET_PLAYER**
|
|
1129
|
-
*
|
|
1130
|
-
* @returns ped
|
|
1131
|
-
*/
|
|
1132
|
-
N_0x7AE93C45EC14A166(): [boolean, Ped | null];
|
|
1133
|
-
/**
|
|
1134
|
-
* @param speed
|
|
1135
|
-
* @param duration
|
|
1136
|
-
* @param heading
|
|
1137
|
-
* @param p4
|
|
1138
|
-
* @param p5
|
|
1139
|
-
*/
|
|
1140
|
-
simulateInputGait(speed: number, duration: number, heading: number, p4: boolean, p5: boolean): void;
|
|
1141
|
-
/**
|
|
1142
|
-
* @param p1
|
|
1143
|
-
* @returns
|
|
1144
|
-
*/
|
|
1145
|
-
getDeadEyeMeterLevel(p1: boolean): number;
|
|
1146
|
-
/**
|
|
1147
|
-
* @param drawReductionTime
|
|
1148
|
-
*/
|
|
1149
|
-
setBowDrawReductionTimeInDeadeye(drawReductionTime: number): void;
|
|
1150
|
-
/**
|
|
1151
|
-
* 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.
|
|
1152
|
-
*
|
|
1153
|
-
* @returns
|
|
1154
|
-
*/
|
|
1155
|
-
eagleEyeCanFocusOnTrack(): any;
|
|
1156
|
-
/**
|
|
1157
|
-
* @param range
|
|
1158
|
-
*/
|
|
1159
|
-
eagleEyeSetRange(range: number): void;
|
|
1160
|
-
/**
|
|
1161
|
-
* *SET_SPECIAL_ABILITY**
|
|
1162
|
-
*
|
|
1163
|
-
* @param p1
|
|
1164
|
-
*/
|
|
1165
|
-
N_0x4D1699543B1C023C(p1: number): void;
|
|
1166
|
-
/**
|
|
1167
|
-
* Drains Deadeye by given amount.
|
|
1168
|
-
*
|
|
1169
|
-
* @param amount
|
|
1170
|
-
* @param p2
|
|
1171
|
-
*/
|
|
1172
|
-
specialAbilityDrainByAmount(amount: number, p2: any): void;
|
|
1173
|
-
/**
|
|
1174
|
-
* Sets Player's Defense against AI modifier
|
|
1175
|
-
*
|
|
1176
|
-
* @param modifier
|
|
1177
|
-
*/
|
|
1178
|
-
setAiDefenseModifierAgainstAi(modifier: number): void;
|
|
1179
|
-
/**
|
|
1180
|
-
* Gets the player's team.
|
|
1181
|
-
* Returns -1 in singleplayer.
|
|
1182
|
-
*
|
|
1183
|
-
* @returns
|
|
1184
|
-
*/
|
|
1185
|
-
getTeam(): number;
|
|
1186
|
-
/**
|
|
1187
|
-
* @returns
|
|
1188
|
-
*/
|
|
1189
|
-
getHealthRechargeMultiplier(): number;
|
|
1190
|
-
/**
|
|
1191
|
-
* Used in script function: NET_AUTO_FOLLOW_UPDATE_LEADER_VALUES
|
|
1192
|
-
* followMode:
|
|
1193
|
-
* HORSEFOLLOWMODE_AUTO = 0,
|
|
1194
|
-
* HORSEFOLLOWMODE_SIDE_ONLY,
|
|
1195
|
-
* HORSEFOLLOWMODE_BEHIND_ONLY,
|
|
1196
|
-
* HORSEFOLLOWMODE_BEHIND_AND_SIDE,
|
|
1197
|
-
* HORSEFOLLOWMODE_BEHIND_CLOSE
|
|
1198
|
-
* followPriority:
|
|
1199
|
-
* HORSEFOLLOWPRIORITY_STEER_ASSIST = 0,
|
|
1200
|
-
* HORSEFOLLOWPRIORITY_AMBIENT,
|
|
1201
|
-
* HORSEFOLLOWPRIORITY_NORMAL,
|
|
1202
|
-
* HORSEFOLLOWPRIORITY_HIGH
|
|
1203
|
-
*
|
|
1204
|
-
* @param ped
|
|
1205
|
-
* @param p2
|
|
1206
|
-
* @param p3
|
|
1207
|
-
* @param followMode
|
|
1208
|
-
* @param followPriority
|
|
1209
|
-
* @param p6
|
|
1210
|
-
*/
|
|
1211
|
-
addAsFollowTarget(ped: Ped, p2: number, p3: number, followMode: number, followPriority: number, p6: boolean): void;
|
|
1212
|
-
/**
|
|
1213
|
-
* Sets the stand prompt for a specific player using a predefined text entry. use AddTextEntry for promptTextKey for custom names
|
|
1214
|
-
*
|
|
1215
|
-
* @param promptTextKey
|
|
1216
|
-
*/
|
|
1217
|
-
setPromptLeaveText(promptTextKey: string | null): void;
|
|
1218
|
-
/**
|
|
1219
|
-
* Retrieves the number of marks placed on a PED when Deadeye mode is active for the specified player.
|
|
1220
|
-
*
|
|
1221
|
-
* @param ped
|
|
1222
|
-
* @returns
|
|
1223
|
-
*/
|
|
1224
|
-
getNumDeadeyeMarksOnPed(ped: Ped): any;
|
|
1225
|
-
/**
|
|
1226
|
-
* @returns
|
|
1227
|
-
*/
|
|
1228
|
-
getPed2(): Ped | null;
|
|
1229
|
-
/**
|
|
1230
|
-
* @param p1
|
|
1231
|
-
* @returns
|
|
1232
|
-
*/
|
|
1233
|
-
getIsUiPromptActive(p1: number): any;
|
|
1234
|
-
/**
|
|
1235
|
-
* @param horse
|
|
1236
|
-
* @returns
|
|
1237
|
-
*/
|
|
1238
|
-
setPedAsTempHorse(horse: Ped): any;
|
|
1239
|
-
/**
|
|
1240
|
-
* Restores Deadeye by given amount.
|
|
1241
|
-
* Params: p2, p3, p4 = 0, 0, 1 in R* Scripts
|
|
1242
|
-
*
|
|
1243
|
-
* @param amount
|
|
1244
|
-
* @param p2
|
|
1245
|
-
* @param p3
|
|
1246
|
-
* @param p4
|
|
1247
|
-
*/
|
|
1248
|
-
specialAbilityRestoreByAmount(amount: number, p2: number, p3: number, p4: number): void;
|
|
1249
|
-
/**
|
|
1250
|
-
* Only used in R* SP Script short_update
|
|
1251
|
-
*
|
|
1252
|
-
* @param delay
|
|
1253
|
-
*/
|
|
1254
|
-
setDeadeyeAbilityDepletionDelay(delay: number): void;
|
|
1255
|
-
/**
|
|
1256
|
-
* Swim speed multiplier.
|
|
1257
|
-
* Multiplier goes up to 1.49f
|
|
1258
|
-
*
|
|
1259
|
-
* @param multiplier
|
|
1260
|
-
*/
|
|
1261
|
-
setSwimMultiplierForPlayer(multiplier: number): void;
|
|
1262
|
-
/**
|
|
1263
|
-
* @returns
|
|
1264
|
-
*/
|
|
1265
|
-
isDead(): boolean;
|
|
1266
|
-
/**
|
|
1267
|
-
* @param ped
|
|
1268
|
-
* @param p2
|
|
1269
|
-
*/
|
|
1270
|
-
N_0x310CE349E0C0EC4B(ped: Ped, p2: number): void;
|
|
1271
|
-
/**
|
|
1272
|
-
* Clears all Eagle Eye trails that were registered for entities associated with the specified player.
|
|
1273
|
-
*/
|
|
1274
|
-
eagleEyeClearRegisteredTrails(): void;
|
|
1275
|
-
/**
|
|
1276
|
-
* @param enable
|
|
1277
|
-
*/
|
|
1278
|
-
enableCustomDeadeyeAbility(enable: boolean): void;
|
|
1279
|
-
/**
|
|
1280
|
-
* Returns the player's invincibility status.
|
|
1281
|
-
*
|
|
1282
|
-
* @returns
|
|
1283
|
-
*/
|
|
1284
|
-
getInvincible(): boolean;
|
|
1285
|
-
resetArrestState(): void;
|
|
1286
|
-
/**
|
|
1287
|
-
* Toggle handles wether Deadeye and Eagleeye are infinite or not.
|
|
1288
|
-
*
|
|
1289
|
-
* @param toggle
|
|
1290
|
-
*/
|
|
1291
|
-
modifyInfiniteTrailVision(toggle: boolean): void;
|
|
1292
|
-
/**
|
|
1293
|
-
* Simply sets you as invincible (Health will not deplete).
|
|
1294
|
-
*
|
|
1295
|
-
* @param toggle
|
|
1296
|
-
*/
|
|
1297
|
-
setInvincible(toggle: boolean): void;
|
|
1298
|
-
/**
|
|
1299
|
-
* Returns whether the player can control himself.
|
|
1300
|
-
*
|
|
1301
|
-
* @returns
|
|
1302
|
-
*/
|
|
1303
|
-
isControlOn(): boolean;
|
|
1304
|
-
/**
|
|
1305
|
-
* @param vehicle
|
|
1309
|
+
* Gets the player's server ID. In multiplayer, this is the player's unique server-side identifier.
|
|
1306
1310
|
*/
|
|
1307
|
-
|
|
1311
|
+
get ServerId(): number;
|
|
1308
1312
|
}
|
|
1309
1313
|
//# sourceMappingURL=Player.d.ts.map
|