@nativewrappers/redm-codegen 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes/AnimScene.d.ts +126 -126
- package/dist/classes/AnimScene.d.ts.map +1 -1
- package/dist/classes/AnimScene.js +184 -184
- package/dist/classes/BaseModel.d.ts +17 -17
- package/dist/classes/BaseModel.d.ts.map +1 -1
- package/dist/classes/BaseModel.js +25 -25
- package/dist/classes/BaseTask.d.ts +12 -12
- package/dist/classes/BaseTask.d.ts.map +1 -1
- package/dist/classes/BaseTask.js +14 -14
- package/dist/classes/Cam.d.ts +94 -94
- package/dist/classes/Cam.d.ts.map +1 -1
- package/dist/classes/Cam.js +126 -126
- package/dist/classes/Entity.d.ts +471 -471
- package/dist/classes/Entity.d.ts.map +1 -1
- package/dist/classes/Entity.js +672 -672
- package/dist/classes/PedTask.d.ts +155 -155
- package/dist/classes/PedTask.d.ts.map +1 -1
- package/dist/classes/PedTask.js +204 -204
- package/dist/classes/PersChar.d.ts +9 -9
- package/dist/classes/PersChar.d.ts.map +1 -1
- package/dist/classes/PersChar.js +21 -21
- package/dist/classes/Pickup.d.ts +5 -5
- package/dist/classes/Pickup.d.ts.map +1 -1
- package/dist/classes/Pickup.js +9 -9
- package/dist/classes/Player.d.ts +687 -687
- package/dist/classes/Player.d.ts.map +1 -1
- package/dist/classes/Player.js +1013 -1013
- package/dist/classes/Prop.d.ts +87 -87
- package/dist/classes/Prop.d.ts.map +1 -1
- package/dist/classes/Prop.js +121 -121
- package/dist/classes/PropSet.d.ts +4 -4
- package/dist/classes/PropSet.d.ts.map +1 -1
- package/dist/classes/PropSet.js +6 -6
- package/dist/classes/VehicleTask.d.ts +17 -17
- package/dist/classes/VehicleTask.d.ts.map +1 -1
- package/dist/classes/VehicleTask.js +21 -21
- package/dist/classes/Weapon.d.ts +306 -306
- package/dist/classes/Weapon.d.ts.map +1 -1
- package/dist/classes/Weapon.js +411 -411
- package/dist/namespaces/Animscene.d.ts +59 -59
- package/dist/namespaces/Animscene.d.ts.map +1 -1
- package/dist/namespaces/Animscene.js +77 -77
- package/dist/namespaces/Audio.d.ts +569 -569
- package/dist/namespaces/Audio.d.ts.map +1 -1
- package/dist/namespaces/Audio.js +728 -728
- package/dist/namespaces/Bounty.d.ts +70 -70
- package/dist/namespaces/Bounty.d.ts.map +1 -1
- package/dist/namespaces/Bounty.js +115 -115
- package/dist/namespaces/Brain.d.ts +15 -15
- package/dist/namespaces/Brain.d.ts.map +1 -1
- package/dist/namespaces/Brain.js +20 -20
- package/dist/namespaces/CamStatics.d.ts +399 -399
- package/dist/namespaces/CamStatics.d.ts.map +1 -1
- package/dist/namespaces/CamStatics.js +574 -574
- package/dist/namespaces/Clock.d.ts +51 -51
- package/dist/namespaces/Clock.d.ts.map +1 -1
- package/dist/namespaces/Clock.js +73 -73
- package/dist/namespaces/Collection.d.ts +76 -76
- package/dist/namespaces/Collection.d.ts.map +1 -1
- package/dist/namespaces/Collection.js +108 -108
- 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/Compendium.d.ts +38 -38
- package/dist/namespaces/Compendium.d.ts.map +1 -1
- package/dist/namespaces/Compendium.js +52 -52
- package/dist/namespaces/Crashlog.d.ts +10 -10
- package/dist/namespaces/Crashlog.d.ts.map +1 -1
- package/dist/namespaces/Crashlog.js +14 -14
- package/dist/namespaces/Crew.d.ts +9 -9
- package/dist/namespaces/Crew.d.ts.map +1 -1
- package/dist/namespaces/Crew.js +14 -14
- package/dist/namespaces/Databinding.d.ts +177 -177
- package/dist/namespaces/Databinding.d.ts.map +1 -1
- package/dist/namespaces/Databinding.js +271 -271
- 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 +193 -193
- package/dist/namespaces/EntityStatics.d.ts.map +1 -1
- package/dist/namespaces/EntityStatics.js +263 -263
- package/dist/namespaces/Fire.d.ts +7 -7
- package/dist/namespaces/Fire.d.ts.map +1 -1
- package/dist/namespaces/Fire.js +9 -9
- package/dist/namespaces/Graphics.d.ts +820 -820
- package/dist/namespaces/Graphics.d.ts.map +1 -1
- package/dist/namespaces/Graphics.js +1118 -1118
- package/dist/namespaces/Hud.d.ts +494 -494
- package/dist/namespaces/Hud.d.ts.map +1 -1
- package/dist/namespaces/Hud.js +789 -789
- package/dist/namespaces/Inventory.d.ts +180 -180
- package/dist/namespaces/Inventory.d.ts.map +1 -1
- package/dist/namespaces/Inventory.js +239 -239
- package/dist/namespaces/Itemdatabase.d.ts +78 -78
- package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
- package/dist/namespaces/Itemdatabase.js +106 -106
- package/dist/namespaces/Map.d.ts +156 -156
- package/dist/namespaces/Map.d.ts.map +1 -1
- package/dist/namespaces/Map.js +207 -207
- package/dist/namespaces/Minigame.d.ts +78 -78
- package/dist/namespaces/Minigame.d.ts.map +1 -1
- package/dist/namespaces/Minigame.js +116 -116
- package/dist/namespaces/Missiondata.d.ts +15 -15
- package/dist/namespaces/Missiondata.d.ts.map +1 -1
- package/dist/namespaces/Missiondata.js +23 -23
- package/dist/namespaces/Network.d.ts +636 -636
- package/dist/namespaces/Network.d.ts.map +1 -1
- package/dist/namespaces/Network.js +915 -915
- package/dist/namespaces/Object.d.ts +121 -121
- package/dist/namespaces/Object.d.ts.map +1 -1
- package/dist/namespaces/Object.js +162 -162
- package/dist/namespaces/Pad.d.ts +94 -94
- package/dist/namespaces/Pad.d.ts.map +1 -1
- package/dist/namespaces/Pad.js +127 -127
- package/dist/namespaces/Perschar.d.ts +44 -44
- package/dist/namespaces/Perschar.d.ts.map +1 -1
- package/dist/namespaces/Perschar.js +68 -68
- package/dist/namespaces/Physics.d.ts +158 -158
- package/dist/namespaces/Physics.d.ts.map +1 -1
- package/dist/namespaces/Physics.js +207 -207
- package/dist/namespaces/PlayerStatics.d.ts +127 -127
- package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
- package/dist/namespaces/PlayerStatics.js +177 -177
- package/dist/namespaces/Population.d.ts +75 -75
- package/dist/namespaces/Population.d.ts.map +1 -1
- package/dist/namespaces/Population.js +101 -101
- package/dist/namespaces/Posse.d.ts +38 -38
- package/dist/namespaces/Posse.d.ts.map +1 -1
- package/dist/namespaces/Posse.js +62 -62
- package/dist/namespaces/Propset.d.ts +30 -30
- package/dist/namespaces/Propset.d.ts.map +1 -1
- package/dist/namespaces/Propset.js +38 -38
- package/dist/namespaces/Shapetest.d.ts +11 -11
- package/dist/namespaces/Shapetest.d.ts.map +1 -1
- package/dist/namespaces/Shapetest.js +13 -13
- package/dist/namespaces/Stats.d.ts +88 -88
- package/dist/namespaces/Stats.d.ts.map +1 -1
- package/dist/namespaces/Stats.js +123 -123
- package/dist/namespaces/Streaming.d.ts +58 -58
- package/dist/namespaces/Streaming.d.ts.map +1 -1
- package/dist/namespaces/Streaming.js +92 -92
- package/dist/namespaces/Task.d.ts +62 -62
- package/dist/namespaces/Task.d.ts.map +1 -1
- package/dist/namespaces/Task.js +90 -90
- package/dist/namespaces/Telemetry.d.ts +172 -172
- package/dist/namespaces/Telemetry.d.ts.map +1 -1
- package/dist/namespaces/Telemetry.js +240 -240
- package/dist/namespaces/Uifeed.d.ts +15 -15
- package/dist/namespaces/Uifeed.d.ts.map +1 -1
- package/dist/namespaces/Uifeed.js +24 -24
- package/dist/namespaces/Voice.d.ts +38 -38
- package/dist/namespaces/Voice.d.ts.map +1 -1
- package/dist/namespaces/Voice.js +56 -56
- package/dist/namespaces/Water.d.ts +27 -27
- package/dist/namespaces/Water.d.ts.map +1 -1
- package/dist/namespaces/Water.js +41 -41
- package/dist/namespaces/WeaponStatics.d.ts +250 -250
- package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
- package/dist/namespaces/WeaponStatics.js +346 -346
- package/package.json +1 -1
- package/src/classes/AnimScene.ts +199 -199
- package/src/classes/BaseModel.ts +29 -29
- package/src/classes/BaseTask.ts +15 -15
- package/src/classes/Cam.ts +135 -135
- package/src/classes/Entity.ts +687 -687
- package/src/classes/PedTask.ts +223 -223
- package/src/classes/PersChar.ts +24 -24
- package/src/classes/Pickup.ts +10 -10
- package/src/classes/Player.ts +1024 -1024
- package/src/classes/Prop.ts +136 -136
- package/src/classes/PropSet.ts +7 -7
- package/src/classes/VehicleTask.ts +23 -23
- package/src/classes/Weapon.ts +429 -429
- package/src/namespaces/Animscene.ts +86 -86
- package/src/namespaces/Audio.ts +804 -804
- package/src/namespaces/Bounty.ts +131 -131
- package/src/namespaces/Brain.ts +22 -22
- package/src/namespaces/CamStatics.ts +599 -599
- package/src/namespaces/Clock.ts +82 -82
- package/src/namespaces/Collection.ts +109 -109
- package/src/namespaces/Companion.ts +34 -34
- package/src/namespaces/Compendium.ts +59 -59
- package/src/namespaces/Crashlog.ts +16 -16
- package/src/namespaces/Crew.ts +16 -16
- package/src/namespaces/Databinding.ts +286 -286
- package/src/namespaces/Dlc.ts +9 -9
- package/src/namespaces/EntityStatics.ts +279 -279
- package/src/namespaces/Fire.ts +10 -10
- package/src/namespaces/Graphics.ts +1196 -1196
- package/src/namespaces/Hud.ts +799 -799
- package/src/namespaces/Inventory.ts +245 -245
- package/src/namespaces/Itemdatabase.ts +118 -118
- package/src/namespaces/Map.ts +215 -215
- package/src/namespaces/Minigame.ts +132 -132
- package/src/namespaces/Missiondata.ts +27 -27
- package/src/namespaces/Network.ts +951 -951
- package/src/namespaces/Object.ts +171 -171
- package/src/namespaces/Pad.ts +127 -127
- package/src/namespaces/Perschar.ts +72 -72
- package/src/namespaces/Physics.ts +231 -231
- package/src/namespaces/PlayerStatics.ts +202 -202
- package/src/namespaces/Population.ts +114 -114
- package/src/namespaces/Posse.ts +62 -62
- package/src/namespaces/Propset.ts +42 -42
- package/src/namespaces/Shapetest.ts +14 -14
- package/src/namespaces/Stats.ts +139 -139
- package/src/namespaces/Streaming.ts +104 -104
- package/src/namespaces/Task.ts +100 -100
- package/src/namespaces/Telemetry.ts +265 -265
- package/src/namespaces/Uifeed.ts +27 -27
- package/src/namespaces/Voice.ts +65 -65
- package/src/namespaces/Water.ts +47 -47
- package/src/namespaces/WeaponStatics.ts +365 -365
package/dist/classes/Player.d.ts
CHANGED
|
@@ -8,274 +8,6 @@ export declare class Player implements IHandle {
|
|
|
8
8
|
handle: number;
|
|
9
9
|
constructor(handle: number);
|
|
10
10
|
static fromHandle(handle: number): Player | null;
|
|
11
|
-
/**
|
|
12
|
-
* Returns true if the player is riding a train.
|
|
13
|
-
*
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
get IsRidingTrain(): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Sets whether all trails are hidden during Eagle Eye mode.
|
|
19
|
-
*
|
|
20
|
-
* @param hide
|
|
21
|
-
*/
|
|
22
|
-
eagleEyeSetHideAllTrails(hide: boolean): void;
|
|
23
|
-
/**
|
|
24
|
-
* _IS_PLAYER_S* - _IS_PLAYER_T*
|
|
25
|
-
*
|
|
26
|
-
* @returns
|
|
27
|
-
*/
|
|
28
|
-
N_0x621D1B289CAF5978(): boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Decreases the damage the player receives while on horseback
|
|
31
|
-
* Previous name: _SET_RECEIVED_HORSEBACK_DAMAGE_DECREASE
|
|
32
|
-
*
|
|
33
|
-
* @param damageDecrease
|
|
34
|
-
*/
|
|
35
|
-
set ReceivedDamageTakenOnHorsebackModifier(damageDecrease: number);
|
|
36
|
-
/**
|
|
37
|
-
* @param toggle
|
|
38
|
-
*/
|
|
39
|
-
set CanMercyKill(toggle: boolean);
|
|
40
|
-
/**
|
|
41
|
-
* @param p1
|
|
42
|
-
* @param discoveryHash
|
|
43
|
-
* @returns
|
|
44
|
-
*/
|
|
45
|
-
getHasDiscoveredCharacterNameSp(p1: number, discoveryHash: string | number): any;
|
|
46
|
-
/**
|
|
47
|
-
* @param speech
|
|
48
|
-
*/
|
|
49
|
-
set InteractionPositiveResponse(speech: string | null);
|
|
50
|
-
/**
|
|
51
|
-
* This can be between 1.0f - 50.0f
|
|
52
|
-
*
|
|
53
|
-
* @param multiplier
|
|
54
|
-
*/
|
|
55
|
-
set AirDragMultiplierForPlayersVehicle(multiplier: number);
|
|
56
|
-
/**
|
|
57
|
-
* Only applies to HUNTERCART01
|
|
58
|
-
*
|
|
59
|
-
* @param wagon
|
|
60
|
-
*/
|
|
61
|
-
set HuntingWagon(wagon: Vehicle);
|
|
62
|
-
/**
|
|
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
|
-
*
|
|
65
|
-
* @param p1
|
|
66
|
-
* @param p2
|
|
67
|
-
* @param p3
|
|
68
|
-
* @param intensity
|
|
69
|
-
* @param flag
|
|
70
|
-
*/
|
|
71
|
-
setDeadeyeEntityAuraIntensityWithFlag(p1: number, p2: number, p3: number, intensity: number, flag: number): void;
|
|
72
|
-
/**
|
|
73
|
-
* @param target
|
|
74
|
-
*/
|
|
75
|
-
set BountyTarget(target: Player);
|
|
76
|
-
/**
|
|
77
|
-
* Retrieves whether all trails are currently hidden during Eagle Eye mode for the specified player.
|
|
78
|
-
*
|
|
79
|
-
* @returns
|
|
80
|
-
*/
|
|
81
|
-
eagleEyeAreAllTrailsHidden(): any;
|
|
82
|
-
/**
|
|
83
|
-
* @returns
|
|
84
|
-
*/
|
|
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;
|
|
219
|
-
/**
|
|
220
|
-
* @param weaponGroup
|
|
221
|
-
* @param toggle
|
|
222
|
-
*/
|
|
223
|
-
setWeaponGroupAsInstantKill(weaponGroup: string | number, toggle: boolean): void;
|
|
224
|
-
/**
|
|
225
|
-
* Returns false if PromptType is enabled
|
|
226
|
-
* Params: See 0x0751D461F06E41CE
|
|
227
|
-
*
|
|
228
|
-
* @param promptType
|
|
229
|
-
* @param promptMode
|
|
230
|
-
* @returns
|
|
231
|
-
*/
|
|
232
|
-
getUiPromptIsDisabled(promptType: number, promptMode: number): any;
|
|
233
|
-
/**
|
|
234
|
-
* @param toggle
|
|
235
|
-
*/
|
|
236
|
-
set LockonToFriendlyPlayers(toggle: boolean);
|
|
237
|
-
/**
|
|
238
|
-
* Activates the Surrender prompt for the specified player in the current frame.
|
|
239
|
-
*
|
|
240
|
-
* @param targetPed
|
|
241
|
-
* @param promptOrder
|
|
242
|
-
* @param p3
|
|
243
|
-
*/
|
|
244
|
-
setCooperatePromptThisFrame(targetPed: Ped, promptOrder: number, p3: boolean): void;
|
|
245
|
-
/**
|
|
246
|
-
* https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePlayerResetFlags
|
|
247
|
-
* https://github.com/femga/rdr3_discoveries/tree/master/AI/PLAYER_RESET_FLAGS
|
|
248
|
-
*
|
|
249
|
-
* @param playerResetFlag
|
|
250
|
-
* @param p2
|
|
251
|
-
*/
|
|
252
|
-
setResetFlag(playerResetFlag: number, p2: boolean): void;
|
|
253
|
-
/**
|
|
254
|
-
* @returns
|
|
255
|
-
*/
|
|
256
|
-
get WantedLevel(): number;
|
|
257
|
-
/**
|
|
258
|
-
* @param closeRangeLowerBound
|
|
259
|
-
* @param closeRangeUpperBound
|
|
260
|
-
*/
|
|
261
|
-
setDamageCloseDistanceBonus(closeRangeLowerBound: number, closeRangeUpperBound: number): void;
|
|
262
|
-
/**
|
|
263
|
-
* @param multiplier
|
|
264
|
-
*/
|
|
265
|
-
set SneakingNoiseMultiplier(multiplier: number);
|
|
266
|
-
/**
|
|
267
|
-
* Sets the player's team.
|
|
268
|
-
*
|
|
269
|
-
* @param team
|
|
270
|
-
* @param bRestrictToThisScript
|
|
271
|
-
*/
|
|
272
|
-
setTeam(team: number, bRestrictToThisScript: boolean): void;
|
|
273
|
-
/**
|
|
274
|
-
* Checks if the player's Deadeye ability is enabled.
|
|
275
|
-
*
|
|
276
|
-
* @returns
|
|
277
|
-
*/
|
|
278
|
-
get IsSpecialAbilityEnabled(): any;
|
|
279
11
|
/**
|
|
280
12
|
* @param p2
|
|
281
13
|
* @param p3
|
|
@@ -303,92 +35,18 @@ export declare class Player implements IHandle {
|
|
|
303
35
|
*
|
|
304
36
|
* @param canPickup
|
|
305
37
|
*/
|
|
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;
|
|
38
|
+
set CanPickupHat(canPickup: boolean);
|
|
388
39
|
/**
|
|
389
|
-
*
|
|
40
|
+
* 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
|
|
41
|
+
* some colors
|
|
42
|
+
* 0: Default aura
|
|
43
|
+
* 1014693585
|
|
44
|
+
* 1936842089
|
|
45
|
+
* 1979474018
|
|
46
|
+
*
|
|
47
|
+
* @param auraColorHash
|
|
390
48
|
*/
|
|
391
|
-
set
|
|
49
|
+
set DeadEyeAuraByHash(auraColorHash: string | number);
|
|
392
50
|
/**
|
|
393
51
|
* @param disabled
|
|
394
52
|
*/
|
|
@@ -675,636 +333,978 @@ export declare class Player implements IHandle {
|
|
|
675
333
|
*/
|
|
676
334
|
eagleEyeGetTrackedPedId(): any;
|
|
677
335
|
/**
|
|
678
|
-
* @returns Returns the player name, or if the player doesn't exist, it returns "**Invalid**"
|
|
336
|
+
* @returns Returns the player name, or if the player doesn't exist, it returns "**Invalid**"
|
|
337
|
+
*/
|
|
338
|
+
get Name(): string | null;
|
|
339
|
+
/**
|
|
340
|
+
* Seems to work similar to 0xD2CB0FB0FDCB473D
|
|
341
|
+
*
|
|
342
|
+
* @param horse
|
|
343
|
+
*/
|
|
344
|
+
set PedActiveHorse(horse: Ped);
|
|
345
|
+
/**
|
|
346
|
+
* Name could potentially be inaccurate.
|
|
347
|
+
* Used in Script Function HORSE_SETUP_PLAYER_HORSE_ATTRIBUTES (p1 = true)
|
|
348
|
+
* _SET_PLAYER_L* - _SET_PLAYER_M*
|
|
349
|
+
*
|
|
350
|
+
* @param active
|
|
351
|
+
*/
|
|
352
|
+
set MountStateActive(active: boolean);
|
|
353
|
+
/**
|
|
354
|
+
* _IS_PLAYER_I* - _IS_PLAYER_P*
|
|
355
|
+
*
|
|
356
|
+
* @returns p1
|
|
357
|
+
*/
|
|
358
|
+
N_0xB331D8A73F9D2BDF(): [boolean, number];
|
|
359
|
+
/**
|
|
360
|
+
* Inhibits the player from using any method of combat including melee and firearms. NOTE: Only disables the firing for one frame
|
|
361
|
+
*
|
|
362
|
+
* @param toggle
|
|
363
|
+
*/
|
|
364
|
+
disableFiring(toggle: boolean): void;
|
|
365
|
+
specialAbilitySetEagleEyeDisabled(): void;
|
|
366
|
+
/**
|
|
367
|
+
* Sets the sit prompt for a specific player using a predefined text entry. use game strings like PLAYER_SIT or use custom with
|
|
368
|
+
* AddTextEntry("sit_custom", "Take a seat")
|
|
369
|
+
* this native must be invoked
|
|
370
|
+
* https://imgur.com/gallery/0x988c9045531b9fce-9bTHgkv
|
|
371
|
+
*
|
|
372
|
+
* @param label
|
|
373
|
+
*/
|
|
374
|
+
set SitPromptText(label: string | null);
|
|
375
|
+
updateWantedPositionThisFrame(): void;
|
|
376
|
+
/**
|
|
377
|
+
* @param entity
|
|
378
|
+
*/
|
|
379
|
+
unregisterEagleEyeForEntity(entity: Entity): void;
|
|
380
|
+
/**
|
|
381
|
+
* @param farRangeLowerBound
|
|
382
|
+
* @param farRangeUpperBound
|
|
383
|
+
*/
|
|
384
|
+
setDamageFarDistanceBonus(farRangeLowerBound: number, farRangeUpperBound: number): void;
|
|
385
|
+
/**
|
|
386
|
+
* Sets the melee combat prompt for a specific player using a predefined text entry. use game string or
|
|
387
|
+
* AddTextEntry("custom_text", "Throw a punch") and use custom_text in the native
|
|
388
|
+
*
|
|
389
|
+
* @param label
|
|
390
|
+
*/
|
|
391
|
+
set MeleePromptText(label: string | null);
|
|
392
|
+
/**
|
|
393
|
+
* Used in script function INIT_DEADEYE_SLOWDOWN
|
|
394
|
+
*
|
|
395
|
+
* @param p1
|
|
396
|
+
*/
|
|
397
|
+
N_0x570A13A4CA2799BB(p1: boolean): void;
|
|
398
|
+
/**
|
|
399
|
+
* @param activationCost
|
|
400
|
+
* @param p2
|
|
401
|
+
*/
|
|
402
|
+
setSpecialAbilityActivationCost(activationCost: number, p2: number): void;
|
|
403
|
+
/**
|
|
404
|
+
* Used for setting up eagle eye for entity
|
|
405
|
+
* Params: p2 = re-register or not?
|
|
406
|
+
*
|
|
407
|
+
* @param entity
|
|
408
|
+
* @param p2
|
|
409
|
+
*/
|
|
410
|
+
registerEagleEyeForEntity(entity: Entity, p2: boolean): void;
|
|
411
|
+
/**
|
|
412
|
+
* @param p1
|
|
413
|
+
*/
|
|
414
|
+
N_0x22B3CABEDDB538B2(p1: number): void;
|
|
415
|
+
/**
|
|
416
|
+
* @param modifier
|
|
417
|
+
*/
|
|
418
|
+
set ExplosiveWeaponDamageModifier(modifier: number);
|
|
419
|
+
/**
|
|
420
|
+
* 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
|
|
421
|
+
*
|
|
422
|
+
* @returns
|
|
423
|
+
*/
|
|
424
|
+
get IsMountOnRoad(): any;
|
|
425
|
+
/**
|
|
426
|
+
* @param entity
|
|
427
|
+
* @returns
|
|
428
|
+
*/
|
|
429
|
+
isEagleEyeRegisteredForEntity(entity: Entity): any;
|
|
430
|
+
/**
|
|
431
|
+
* Max level is 5.
|
|
432
|
+
*
|
|
433
|
+
* @param level
|
|
434
|
+
*/
|
|
435
|
+
set DeadeyeAbilityLevel(level: number);
|
|
436
|
+
/**
|
|
437
|
+
* 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.
|
|
438
|
+
*
|
|
439
|
+
* @param enable
|
|
440
|
+
*/
|
|
441
|
+
set PickupPromptVisible(enable: boolean);
|
|
442
|
+
/**
|
|
443
|
+
* @param mount
|
|
444
|
+
*/
|
|
445
|
+
set PedAsSaddleHorseForPlayer(mount: Ped);
|
|
446
|
+
/**
|
|
447
|
+
* @returns
|
|
448
|
+
*/
|
|
449
|
+
get ActiveHorseForPlayer(): Ped | null;
|
|
450
|
+
/**
|
|
451
|
+
* @param entity
|
|
452
|
+
* @param p2
|
|
453
|
+
*/
|
|
454
|
+
unregisterEagleEyeTrailsForEntity(entity: Entity, p2: any): void;
|
|
455
|
+
/**
|
|
456
|
+
* Resetter for 0x4DBC4873707E8FD6, sets x, y, z to 1.0
|
|
457
|
+
*/
|
|
458
|
+
N_0xCEDC16930526F728(): void;
|
|
459
|
+
/**
|
|
460
|
+
* @param ped
|
|
461
|
+
* @param p2
|
|
462
|
+
*/
|
|
463
|
+
N_0xDD33A82352C4652F(ped: Ped, p2: number): void;
|
|
464
|
+
/**
|
|
465
|
+
* _RESET_PLAYER_A* - _RESET_PLAYER_I*
|
|
466
|
+
*/
|
|
467
|
+
N_0x1F488807BC8E0630(): void;
|
|
468
|
+
/**
|
|
469
|
+
* @param p1
|
|
470
|
+
*/
|
|
471
|
+
N_0x4EC8BE63B8A5D4EF(p1: number): void;
|
|
472
|
+
/**
|
|
473
|
+
* @returns
|
|
474
|
+
*/
|
|
475
|
+
canStartMission(): boolean;
|
|
476
|
+
/**
|
|
477
|
+
* Adds an interactive focus mode preset between a player and a specific set of coordinates with a target entity.
|
|
478
|
+
* To access all available presets, refer to the file located at:update_1.rpf.common.data.interactive_focus_mode_presets.meta
|
|
479
|
+
*
|
|
480
|
+
* @param preset
|
|
481
|
+
* @param pos
|
|
482
|
+
* @param targetEntity
|
|
483
|
+
* @param name
|
|
484
|
+
* @returns p1
|
|
485
|
+
*/
|
|
486
|
+
addAmbientInteractiveFocusPresetAtCoords(preset: string | null, pos: Vector3, targetEntity: Entity, name: string | null): Vector3;
|
|
487
|
+
/**
|
|
488
|
+
* @returns
|
|
489
|
+
*/
|
|
490
|
+
get StaminaRechargeMultiplier(): number;
|
|
491
|
+
/**
|
|
492
|
+
* Returns the depletion delay value for the Deadeye ability that was previously set using `SetDeadeyeAbilityDepletionDelay - 0x870634493CB4372C`
|
|
493
|
+
*
|
|
494
|
+
* @returns
|
|
495
|
+
*/
|
|
496
|
+
get DeadeyeAbilityDepletionDelay(): any;
|
|
497
|
+
/**
|
|
498
|
+
* @returns
|
|
499
|
+
*/
|
|
500
|
+
get IsReadyForCutscene(): boolean;
|
|
501
|
+
/**
|
|
502
|
+
* @param p1
|
|
503
|
+
*/
|
|
504
|
+
N_0x216BC0D3D2E413D2(p1: any): void;
|
|
505
|
+
/**
|
|
506
|
+
* nullsub, doesn't do anything
|
|
507
|
+
*
|
|
508
|
+
* @param wantedLevel
|
|
509
|
+
* @param disableNoMission
|
|
510
|
+
*/
|
|
511
|
+
setWantedLevel(wantedLevel: number, disableNoMission: boolean): void;
|
|
512
|
+
/**
|
|
513
|
+
* false: default eagleeye color
|
|
514
|
+
* true: green eagleeye color
|
|
515
|
+
*
|
|
516
|
+
* @param p1
|
|
517
|
+
* @returns p2
|
|
518
|
+
*/
|
|
519
|
+
eagleEyeSetColor(p1: boolean): number;
|
|
520
|
+
/**
|
|
521
|
+
* *SET_PLAYER_DAMAGE** - *SET_PLAYER_DEFENSE**
|
|
522
|
+
*
|
|
523
|
+
* @param p1
|
|
524
|
+
*/
|
|
525
|
+
N_0x818241B3EDA84191(p1: boolean): void;
|
|
526
|
+
/**
|
|
527
|
+
* @returns
|
|
528
|
+
*/
|
|
529
|
+
get Ped(): Ped | null;
|
|
530
|
+
/**
|
|
531
|
+
* 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).
|
|
532
|
+
*
|
|
533
|
+
* @param toggle
|
|
534
|
+
*/
|
|
535
|
+
set AllRandomPedsFlee(toggle: boolean);
|
|
536
|
+
/**
|
|
537
|
+
* @param p1
|
|
538
|
+
* @param discoveryHash
|
|
539
|
+
*/
|
|
540
|
+
setHasDiscoveredCharacterNameSp(p1: number, discoveryHash: string | number): void;
|
|
541
|
+
/**
|
|
542
|
+
* @returns entity
|
|
543
|
+
*/
|
|
544
|
+
get EntityIsFreeAimingAt(): [boolean, Entity | null];
|
|
545
|
+
/**
|
|
546
|
+
* @returns
|
|
547
|
+
*/
|
|
548
|
+
get TempHorse(): Ped | null;
|
|
549
|
+
/**
|
|
550
|
+
* 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
|
|
551
|
+
* duration is in miliseconds
|
|
552
|
+
*
|
|
553
|
+
* @param duration
|
|
554
|
+
* @returns
|
|
555
|
+
*/
|
|
556
|
+
hasDamagedAnyPedRecently(duration: number): boolean;
|
|
557
|
+
/**
|
|
558
|
+
* @returns entity
|
|
559
|
+
*/
|
|
560
|
+
get TargetEntity(): [boolean, Entity | null];
|
|
561
|
+
/**
|
|
562
|
+
* @returns Returns true if the ped has a ped, and the ped is alive and not arrested.
|
|
563
|
+
*/
|
|
564
|
+
get IsPlaying(): boolean;
|
|
565
|
+
/**
|
|
566
|
+
* @returns
|
|
567
|
+
*/
|
|
568
|
+
get SaddleHorseForPlayer(): Ped | null;
|
|
569
|
+
/**
|
|
570
|
+
* Affects the range of auto aim target.
|
|
571
|
+
*
|
|
572
|
+
* @param range
|
|
573
|
+
*/
|
|
574
|
+
set LockonRangeOverride(range: number);
|
|
575
|
+
/**
|
|
576
|
+
* @returns
|
|
577
|
+
*/
|
|
578
|
+
get HuntingWagon(): Vehicle | null;
|
|
579
|
+
/**
|
|
580
|
+
* @param modifier
|
|
679
581
|
*/
|
|
680
|
-
|
|
582
|
+
set TrampleDamageModifier(modifier: number);
|
|
681
583
|
/**
|
|
682
|
-
*
|
|
584
|
+
* Checks if player is focused on any entity
|
|
683
585
|
*
|
|
684
|
-
* @
|
|
586
|
+
* @returns
|
|
685
587
|
*/
|
|
686
|
-
|
|
588
|
+
get IsFreeFocusing(): any;
|
|
687
589
|
/**
|
|
688
|
-
*
|
|
689
|
-
* Used in Script Function HORSE_SETUP_PLAYER_HORSE_ATTRIBUTES (p1 = true)
|
|
690
|
-
* _SET_PLAYER_L* - _SET_PLAYER_M*
|
|
590
|
+
* flags: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eSetPlayerControlFlags
|
|
691
591
|
*
|
|
692
|
-
* @param
|
|
592
|
+
* @param toggle
|
|
593
|
+
* @param flags
|
|
594
|
+
* @param bPreventHeadingChange
|
|
693
595
|
*/
|
|
694
|
-
|
|
596
|
+
setControl(toggle: boolean, flags: number, bPreventHeadingChange: boolean): void;
|
|
695
597
|
/**
|
|
696
|
-
*
|
|
598
|
+
* Returns true if eagle eye is enabled for the player
|
|
697
599
|
*
|
|
698
|
-
* @returns
|
|
600
|
+
* @returns
|
|
699
601
|
*/
|
|
700
|
-
|
|
602
|
+
get IsSecondarySpecialAbilityEnabled(): boolean;
|
|
701
603
|
/**
|
|
702
|
-
*
|
|
703
|
-
*
|
|
704
|
-
* @param toggle
|
|
604
|
+
* @param multiplier
|
|
705
605
|
*/
|
|
706
|
-
|
|
707
|
-
specialAbilitySetEagleEyeDisabled(): void;
|
|
606
|
+
set NoiseMultiplier(multiplier: number);
|
|
708
607
|
/**
|
|
709
|
-
*
|
|
710
|
-
* AddTextEntry("sit_custom", "Take a seat")
|
|
711
|
-
* this native must be invoked
|
|
712
|
-
* https://imgur.com/gallery/0x988c9045531b9fce-9bTHgkv
|
|
608
|
+
* Gets a value indicating whether the specified player is currently aiming freely.
|
|
713
609
|
*
|
|
714
|
-
* @
|
|
610
|
+
* @returns
|
|
715
611
|
*/
|
|
716
|
-
|
|
717
|
-
updateWantedPositionThisFrame(): void;
|
|
612
|
+
get IsFreeAiming(): boolean;
|
|
718
613
|
/**
|
|
719
|
-
* @param
|
|
614
|
+
* @param showingInfoCard
|
|
720
615
|
*/
|
|
721
|
-
|
|
616
|
+
set ShowInfoCard(showingInfoCard: boolean);
|
|
722
617
|
/**
|
|
723
|
-
* @param
|
|
724
|
-
* @param farRangeUpperBound
|
|
618
|
+
* @param regenRate
|
|
725
619
|
*/
|
|
726
|
-
|
|
620
|
+
set HealthRechargeMultiplier(regenRate: number);
|
|
727
621
|
/**
|
|
728
|
-
*
|
|
729
|
-
* AddTextEntry("custom_text", "Throw a punch") and use custom_text in the native
|
|
622
|
+
* damageInfo: STANDARD_PED_DAMAGE, STANDARD_FEMALE_PED_DAMAGE, STANDARD_PLAYER_PED_DAMAGE_MP, STANDARD_FEMALE_PLAYER_PED_DAMAGE_MP
|
|
730
623
|
*
|
|
731
|
-
* @param
|
|
624
|
+
* @param damageInfo
|
|
732
625
|
*/
|
|
733
|
-
set
|
|
626
|
+
set DamageInfoOverride(damageInfo: string | null);
|
|
734
627
|
/**
|
|
735
|
-
*
|
|
628
|
+
* Sets whether this player can be hassled by gangs.
|
|
736
629
|
*
|
|
737
|
-
* @param
|
|
630
|
+
* @param toggle
|
|
738
631
|
*/
|
|
739
|
-
|
|
632
|
+
set CanBeHassledByGangs(toggle: boolean);
|
|
740
633
|
/**
|
|
741
|
-
*
|
|
742
|
-
*
|
|
634
|
+
* 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.
|
|
635
|
+
*
|
|
636
|
+
* @param bitflag
|
|
743
637
|
*/
|
|
744
|
-
|
|
638
|
+
clearDeadeyeAuraIntensityWithFlag(bitflag: number): void;
|
|
745
639
|
/**
|
|
746
|
-
*
|
|
747
|
-
* Params: p2 = re-register or not?
|
|
640
|
+
* Decreases Stamina bar drain speed by % when drawing a bow.
|
|
748
641
|
*
|
|
749
|
-
* @param
|
|
750
|
-
* @param p2
|
|
642
|
+
* @param staminaDrain
|
|
751
643
|
*/
|
|
752
|
-
|
|
644
|
+
set BowStaminaDrainSpeed(staminaDrain: number);
|
|
645
|
+
setAllRandomPedsFleeThisFrame(): void;
|
|
753
646
|
/**
|
|
754
|
-
*
|
|
647
|
+
* Unsure what it does, sets a Vector on the CPlayerInfo but it doesn't? look like its used anywhere
|
|
648
|
+
*
|
|
649
|
+
* @param pos
|
|
755
650
|
*/
|
|
756
|
-
|
|
651
|
+
N_0x4DBC4873707E8FD6(pos: Vector3): void;
|
|
757
652
|
/**
|
|
758
|
-
*
|
|
653
|
+
* _SET_PLAYER_A* - _SET_PLAYER_C*
|
|
654
|
+
*
|
|
655
|
+
* @param damage
|
|
759
656
|
*/
|
|
760
|
-
set
|
|
657
|
+
set LassoDamagePerSecond(damage: number);
|
|
761
658
|
/**
|
|
762
|
-
*
|
|
659
|
+
* 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.
|
|
763
660
|
*
|
|
661
|
+
* @param atArresting
|
|
764
662
|
* @returns
|
|
765
663
|
*/
|
|
766
|
-
|
|
664
|
+
isBeingArrested(atArresting: boolean): boolean;
|
|
767
665
|
/**
|
|
666
|
+
* Gets a value indicating whether the specified player is currently aiming freely at the specified entity.
|
|
667
|
+
*
|
|
768
668
|
* @param entity
|
|
769
669
|
* @returns
|
|
770
670
|
*/
|
|
771
|
-
|
|
671
|
+
isFreeAimingAtEntity(entity: Entity): boolean;
|
|
772
672
|
/**
|
|
773
|
-
*
|
|
774
|
-
*
|
|
775
|
-
* @param level
|
|
673
|
+
* @param farDamageBonus
|
|
776
674
|
*/
|
|
777
|
-
set
|
|
675
|
+
set DamageFarDistanceBonusTotal(farDamageBonus: number);
|
|
676
|
+
setMayNotEnterAnyVehicle(): void;
|
|
778
677
|
/**
|
|
779
|
-
*
|
|
780
|
-
*
|
|
781
|
-
* @param enable
|
|
678
|
+
* @returns
|
|
782
679
|
*/
|
|
783
|
-
|
|
680
|
+
get Health(): number;
|
|
681
|
+
resetWantedLevelDifficulty(): void;
|
|
784
682
|
/**
|
|
785
|
-
* @param
|
|
683
|
+
* @param linkedWaypointPed
|
|
786
684
|
*/
|
|
787
|
-
|
|
685
|
+
eagleEyeSetFocusOnAssociatedClueTrail(linkedWaypointPed: Entity): void;
|
|
788
686
|
/**
|
|
789
687
|
* @returns
|
|
790
688
|
*/
|
|
791
|
-
get
|
|
689
|
+
get NumMarkedDeadeyeTargets(): number;
|
|
792
690
|
/**
|
|
793
|
-
* @param
|
|
794
|
-
* @
|
|
691
|
+
* @param weaponHash Refer to [enum: eWeaponHash]
|
|
692
|
+
* @returns
|
|
795
693
|
*/
|
|
796
|
-
|
|
694
|
+
getWeaponDamage(weaponHash: eWeaponHash): number;
|
|
797
695
|
/**
|
|
798
|
-
*
|
|
696
|
+
* Sets the behavior of sprinting while the Eagleeye feature is active, determining whether sprinting cancels the effect based on the specified parameter.
|
|
697
|
+
* old name was _EAGLE_EYE_SET_PLUS_FLAG_DISABLED this native can still be used as its declared.
|
|
698
|
+
*
|
|
699
|
+
* @param disabled
|
|
799
700
|
*/
|
|
800
|
-
|
|
701
|
+
eagleeyeSetSprintBehavior(disabled: boolean): void;
|
|
801
702
|
/**
|
|
802
|
-
* @param
|
|
803
|
-
* @param p2
|
|
703
|
+
* @param speech
|
|
804
704
|
*/
|
|
805
|
-
|
|
705
|
+
set InteractionNegativeResponse(speech: string | null);
|
|
806
706
|
/**
|
|
807
|
-
*
|
|
707
|
+
* Params: p1, p2, p3, p4 = 1.f, 0, 0, 0 in R* Scripts
|
|
708
|
+
* _SPECIAL_ABILITY*
|
|
709
|
+
*
|
|
710
|
+
* @param p1
|
|
711
|
+
* @param p2
|
|
712
|
+
* @param p3
|
|
713
|
+
* @param p4
|
|
808
714
|
*/
|
|
809
|
-
|
|
715
|
+
N_0xFA437FA0738C370C(p1: number, p2: number, p3: number, p4: number): void;
|
|
810
716
|
/**
|
|
811
|
-
* @param
|
|
717
|
+
* @param toggle
|
|
812
718
|
*/
|
|
813
|
-
|
|
719
|
+
set SimulateAiming(toggle: boolean);
|
|
814
720
|
/**
|
|
815
721
|
* @returns
|
|
816
722
|
*/
|
|
817
|
-
|
|
723
|
+
get AiDefenseModifierAgainstAi(): number;
|
|
818
724
|
/**
|
|
819
|
-
*
|
|
820
|
-
* To access all available presets, refer to the file located at:update_1.rpf.common.data.interactive_focus_mode_presets.meta
|
|
725
|
+
* Setting player's Health recharge time to zero forces immediate health regen
|
|
821
726
|
*
|
|
822
|
-
* @param
|
|
823
|
-
* @param pos
|
|
824
|
-
* @param targetEntity
|
|
825
|
-
* @param name
|
|
826
|
-
* @returns p1
|
|
727
|
+
* @param modifier
|
|
827
728
|
*/
|
|
828
|
-
|
|
729
|
+
set HealthRechargeTimeModifier(modifier: number);
|
|
829
730
|
/**
|
|
731
|
+
* Returns true if the given player has a valid ped.
|
|
732
|
+
*
|
|
830
733
|
* @returns
|
|
831
734
|
*/
|
|
832
|
-
|
|
735
|
+
networkHasValidPed(): any;
|
|
736
|
+
/**
|
|
737
|
+
* @param accuracy
|
|
738
|
+
*/
|
|
739
|
+
set RemoteAccuracyFloorModifier(accuracy: number);
|
|
740
|
+
/**
|
|
741
|
+
* @param weapon
|
|
742
|
+
* @param speed
|
|
743
|
+
*/
|
|
744
|
+
setWeaponDrawSpeed(weapon: string | number, speed: number): void;
|
|
833
745
|
/**
|
|
834
|
-
* Returns the depletion delay value for the Deadeye ability that was previously set using `SetDeadeyeAbilityDepletionDelay - 0x870634493CB4372C`
|
|
835
|
-
*
|
|
836
746
|
* @returns
|
|
837
747
|
*/
|
|
838
|
-
get
|
|
748
|
+
get StaminaDepletionMultiplier(): number;
|
|
839
749
|
/**
|
|
840
750
|
* @returns
|
|
841
751
|
*/
|
|
842
|
-
get
|
|
752
|
+
get CurrentStealthNoise(): number;
|
|
843
753
|
/**
|
|
844
|
-
* @param
|
|
754
|
+
* @param ped
|
|
755
|
+
* @returns
|
|
845
756
|
*/
|
|
846
|
-
|
|
757
|
+
isFollowingTarget(ped: Ped): any;
|
|
847
758
|
/**
|
|
848
|
-
*
|
|
759
|
+
* mood: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePedMood
|
|
849
760
|
*
|
|
850
|
-
* @param
|
|
851
|
-
* @param disableNoMission
|
|
761
|
+
* @param mood Refer to [enum: ePedMood]
|
|
852
762
|
*/
|
|
853
|
-
|
|
763
|
+
set Mood(mood: number);
|
|
854
764
|
/**
|
|
855
|
-
*
|
|
856
|
-
* true: green eagleeye color
|
|
765
|
+
* Params: See 0x0751D461F06E41CE
|
|
857
766
|
*
|
|
858
|
-
* @param
|
|
859
|
-
* @
|
|
767
|
+
* @param ped
|
|
768
|
+
* @param promptType
|
|
769
|
+
* @param promptMode
|
|
770
|
+
* @param enabled
|
|
860
771
|
*/
|
|
861
|
-
|
|
772
|
+
modifyUiPromptForPed(ped: Ped, promptType: number, promptMode: number, enabled: boolean): void;
|
|
862
773
|
/**
|
|
863
|
-
*
|
|
774
|
+
* Used in script function INIT_DEADEYE_SLOWDOWN
|
|
864
775
|
*
|
|
865
776
|
* @param p1
|
|
866
777
|
*/
|
|
867
|
-
|
|
778
|
+
N_0x3ACAC8832E77BC93(p1: boolean): void;
|
|
868
779
|
/**
|
|
869
|
-
*
|
|
780
|
+
* Disables the players ability to be wanted by lawmen
|
|
781
|
+
*
|
|
782
|
+
* @param disable
|
|
870
783
|
*/
|
|
871
|
-
|
|
784
|
+
set DisableWantedLevel(disable: boolean);
|
|
872
785
|
/**
|
|
873
|
-
*
|
|
786
|
+
* Disables the previously set interactive focus mode preset for a given player. see `_SET_PLAYER_INTERACTIVE_FOCUS_PRESET - 0x3C1B1807C7A415D6`
|
|
874
787
|
*
|
|
875
|
-
* @param
|
|
788
|
+
* @param name
|
|
876
789
|
*/
|
|
877
|
-
|
|
790
|
+
disableInteractiveFocusPreset(name: string | null): void;
|
|
878
791
|
/**
|
|
879
792
|
* @param p1
|
|
880
|
-
* @param discoveryHash
|
|
881
793
|
*/
|
|
882
|
-
|
|
794
|
+
set ManageBuffSuperJump(p1: number);
|
|
883
795
|
/**
|
|
884
|
-
* @
|
|
796
|
+
* @param multiplier
|
|
885
797
|
*/
|
|
886
|
-
|
|
798
|
+
set SpecialAbilityMultiplier(multiplier: number);
|
|
887
799
|
/**
|
|
800
|
+
* @param accuracy
|
|
801
|
+
*/
|
|
802
|
+
set LocalAccuracyFloorModifier(accuracy: number);
|
|
803
|
+
/**
|
|
804
|
+
* @param wantedLevel
|
|
888
805
|
* @returns
|
|
889
806
|
*/
|
|
890
|
-
|
|
807
|
+
isWantedLevelGreater(wantedLevel: number): boolean;
|
|
891
808
|
/**
|
|
892
|
-
*
|
|
893
|
-
*
|
|
809
|
+
* SPECIAL_ABILITY_NONE = -1,
|
|
810
|
+
* SPECIAL_ABILITY_CAR_SLOWDOWN,
|
|
811
|
+
* SPECIAL_ABILITY_RAGE,
|
|
812
|
+
* SPECIAL_ABILITY_BULLET_TIME,
|
|
813
|
+
* SPECIAL_ABILITY_SNAPSHOT,
|
|
814
|
+
* SPECIAL_ABILITY_INSULT,
|
|
815
|
+
* SPECIAL_ABILITY_DEADEYE,
|
|
816
|
+
* SPECIAL_ABILITY_REVIVE
|
|
894
817
|
*
|
|
895
|
-
* @param
|
|
896
|
-
|
|
818
|
+
* @param type
|
|
819
|
+
*/
|
|
820
|
+
set SpecialAbilityType(type: number);
|
|
821
|
+
/**
|
|
822
|
+
* @param toggle
|
|
897
823
|
*/
|
|
898
|
-
|
|
824
|
+
set EveryoneIgnorePlayer(toggle: boolean);
|
|
899
825
|
/**
|
|
900
|
-
*
|
|
826
|
+
* Sets whether this player can take cover.
|
|
827
|
+
*
|
|
828
|
+
* @param toggle
|
|
901
829
|
*/
|
|
902
|
-
|
|
830
|
+
set CanUseCover(toggle: boolean);
|
|
903
831
|
/**
|
|
904
|
-
* @
|
|
832
|
+
* @param ped
|
|
905
833
|
*/
|
|
906
|
-
|
|
834
|
+
removeAsFollowTarget(ped: Ped): void;
|
|
907
835
|
/**
|
|
908
|
-
* @
|
|
836
|
+
* @param weaponGroup
|
|
837
|
+
* @param modifier
|
|
909
838
|
*/
|
|
910
|
-
|
|
839
|
+
setWeaponGroupDamageModifier(weaponGroup: string | number, modifier: number): void;
|
|
911
840
|
/**
|
|
912
|
-
*
|
|
913
|
-
*
|
|
914
|
-
* @param range
|
|
841
|
+
* @param ped
|
|
842
|
+
* @param p2
|
|
915
843
|
*/
|
|
916
|
-
|
|
844
|
+
N_0x84481018E668E1B8(ped: Ped, p2: any): void;
|
|
917
845
|
/**
|
|
918
|
-
* @
|
|
846
|
+
* @param entity
|
|
847
|
+
* @param p2
|
|
919
848
|
*/
|
|
920
|
-
|
|
849
|
+
registerEagleEyeTrailsForEntity(entity: Entity, p2: any): void;
|
|
921
850
|
/**
|
|
922
|
-
* @param
|
|
851
|
+
* @param filter
|
|
923
852
|
*/
|
|
924
|
-
set
|
|
853
|
+
set DeadeyeTaggingConfig(filter: number);
|
|
925
854
|
/**
|
|
926
|
-
*
|
|
855
|
+
* (Un)lock Eagle Eye functionality
|
|
927
856
|
*
|
|
928
|
-
* @
|
|
857
|
+
* @param enable
|
|
929
858
|
*/
|
|
930
|
-
|
|
859
|
+
enableEagleeye(enable: boolean): void;
|
|
931
860
|
/**
|
|
932
|
-
*
|
|
861
|
+
* Only used in R* SP Script short_update
|
|
862
|
+
* Restores Deadeye Outer Ring
|
|
933
863
|
*
|
|
934
|
-
* @param
|
|
935
|
-
* @param flags
|
|
936
|
-
* @param bPreventHeadingChange
|
|
864
|
+
* @param amount
|
|
937
865
|
*/
|
|
938
|
-
|
|
866
|
+
specialAbilityRestoreOuterRing(amount: number): void;
|
|
939
867
|
/**
|
|
940
|
-
* Returns true if eagle eye is enabled for the player
|
|
941
|
-
*
|
|
942
868
|
* @returns
|
|
943
869
|
*/
|
|
944
|
-
get
|
|
870
|
+
get IsSpecialAbilityActive(): any;
|
|
871
|
+
reportPoliceSpottedPlayer(): void;
|
|
945
872
|
/**
|
|
946
|
-
* @param
|
|
873
|
+
* @param p1
|
|
874
|
+
* @param p2
|
|
875
|
+
* @returns
|
|
947
876
|
*/
|
|
948
|
-
|
|
877
|
+
getReceivedBattleEventRecently(p1: number, p2: boolean): boolean;
|
|
949
878
|
/**
|
|
950
|
-
* Gets a value indicating whether the specified player is currently aiming freely.
|
|
951
|
-
*
|
|
952
879
|
* @returns
|
|
953
880
|
*/
|
|
954
|
-
get
|
|
881
|
+
get SpecialAbilityMultiplier(): number;
|
|
955
882
|
/**
|
|
956
|
-
*
|
|
883
|
+
* 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.
|
|
884
|
+
*
|
|
885
|
+
* @param weapon
|
|
886
|
+
* @param attachSlotId
|
|
957
887
|
*/
|
|
958
|
-
|
|
888
|
+
setAimWeapon(weapon: string | number, attachSlotId: number): void;
|
|
959
889
|
/**
|
|
960
|
-
* @param
|
|
890
|
+
* @param pos
|
|
891
|
+
* @param heading
|
|
892
|
+
* @param p5
|
|
893
|
+
* @param p6
|
|
894
|
+
* @param p7
|
|
895
|
+
* @param p8
|
|
961
896
|
*/
|
|
962
|
-
|
|
897
|
+
startTeleport(pos: Vector3, heading: number, p5: boolean, p6: boolean, p7: boolean, p8: boolean): void;
|
|
963
898
|
/**
|
|
964
|
-
*
|
|
899
|
+
* _IS_PLAYER_A* - _IS_PLAYER_BE*
|
|
965
900
|
*
|
|
966
|
-
* @param
|
|
901
|
+
* @param ped
|
|
902
|
+
* @returns
|
|
967
903
|
*/
|
|
968
|
-
|
|
904
|
+
N_0xE7F8707269544B29(ped: Ped): boolean;
|
|
969
905
|
/**
|
|
970
|
-
*
|
|
971
|
-
*
|
|
972
|
-
* @param toggle
|
|
906
|
+
* @returns
|
|
973
907
|
*/
|
|
974
|
-
|
|
908
|
+
get IsScriptControlOn(): boolean;
|
|
975
909
|
/**
|
|
976
|
-
*
|
|
977
|
-
*
|
|
978
|
-
* @param bitflag
|
|
910
|
+
* @returns
|
|
979
911
|
*/
|
|
980
|
-
|
|
912
|
+
get IsSecondarySpecialAbilityActive(): any;
|
|
913
|
+
N_0xC900A465364A85D6(): void;
|
|
981
914
|
/**
|
|
982
|
-
*
|
|
915
|
+
* Returns the group ID the player is member of.
|
|
983
916
|
*
|
|
984
|
-
* @
|
|
917
|
+
* @returns
|
|
985
918
|
*/
|
|
986
|
-
|
|
987
|
-
setAllRandomPedsFleeThisFrame(): void;
|
|
919
|
+
get Group(): number;
|
|
988
920
|
/**
|
|
989
|
-
*
|
|
921
|
+
* Sets stamina core drains peed using ranged damage scale and melee damage scale
|
|
990
922
|
*
|
|
991
|
-
* @param
|
|
923
|
+
* @param weaponDefenseMod
|
|
924
|
+
* @param meleeDefenseMod
|
|
992
925
|
*/
|
|
993
|
-
|
|
926
|
+
setDefenseModifier(weaponDefenseMod: number, meleeDefenseMod: number): void;
|
|
994
927
|
/**
|
|
995
|
-
*
|
|
928
|
+
* This modifies the damage value of your weapon. Whether it is a multiplier or base damage is unknown.
|
|
996
929
|
*
|
|
997
|
-
* @param
|
|
930
|
+
* @param modifier
|
|
998
931
|
*/
|
|
999
|
-
set
|
|
932
|
+
set WeaponDamageModifier(modifier: number);
|
|
1000
933
|
/**
|
|
1001
|
-
*
|
|
934
|
+
* durationCost: per second
|
|
1002
935
|
*
|
|
1003
|
-
* @param
|
|
1004
|
-
* @returns
|
|
936
|
+
* @param durationCost
|
|
1005
937
|
*/
|
|
1006
|
-
|
|
938
|
+
set SpecialAbilityDurationCost(durationCost: number);
|
|
1007
939
|
/**
|
|
1008
|
-
* Gets a value indicating whether the specified player is currently aiming freely at the specified entity.
|
|
1009
|
-
*
|
|
1010
|
-
* @param entity
|
|
1011
940
|
* @returns
|
|
1012
941
|
*/
|
|
1013
|
-
|
|
942
|
+
get IsTargettingAnything(): boolean;
|
|
1014
943
|
/**
|
|
1015
|
-
* @param
|
|
944
|
+
* @param modifier
|
|
1016
945
|
*/
|
|
1017
|
-
|
|
1018
|
-
setMayNotEnterAnyVehicle(): void;
|
|
946
|
+
eagleEyeSetDrainRateModifier(modifier: number): void;
|
|
1019
947
|
/**
|
|
1020
948
|
* @returns
|
|
1021
949
|
*/
|
|
1022
|
-
get
|
|
1023
|
-
resetWantedLevelDifficulty(): void;
|
|
950
|
+
get DeadEye(): number;
|
|
1024
951
|
/**
|
|
1025
|
-
* @
|
|
952
|
+
* @returns
|
|
1026
953
|
*/
|
|
1027
|
-
|
|
954
|
+
get IsInScope(): any;
|
|
1028
955
|
/**
|
|
1029
|
-
*
|
|
956
|
+
* SET_PLAYER_S/T*
|
|
957
|
+
*
|
|
958
|
+
* @param toggle
|
|
1030
959
|
*/
|
|
1031
|
-
|
|
960
|
+
N_0x8591EE69CC3ED257(toggle: boolean): void;
|
|
1032
961
|
/**
|
|
1033
|
-
* @param
|
|
962
|
+
* @param speedBoost
|
|
963
|
+
* @param duration
|
|
964
|
+
*/
|
|
965
|
+
boostHorseSpeedForTime(speedBoost: number, duration: number): void;
|
|
966
|
+
/**
|
|
967
|
+
* Returns true if the player is riding a train.
|
|
968
|
+
*
|
|
1034
969
|
* @returns
|
|
1035
970
|
*/
|
|
1036
|
-
|
|
971
|
+
get IsRidingTrain(): boolean;
|
|
1037
972
|
/**
|
|
1038
|
-
* Sets
|
|
1039
|
-
* old name was _EAGLE_EYE_SET_PLUS_FLAG_DISABLED this native can still be used as its declared.
|
|
973
|
+
* Sets whether all trails are hidden during Eagle Eye mode.
|
|
1040
974
|
*
|
|
1041
|
-
* @param
|
|
975
|
+
* @param hide
|
|
1042
976
|
*/
|
|
1043
|
-
|
|
977
|
+
eagleEyeSetHideAllTrails(hide: boolean): void;
|
|
1044
978
|
/**
|
|
1045
|
-
*
|
|
979
|
+
* _IS_PLAYER_S* - _IS_PLAYER_T*
|
|
980
|
+
*
|
|
981
|
+
* @returns
|
|
1046
982
|
*/
|
|
1047
|
-
|
|
983
|
+
N_0x621D1B289CAF5978(): boolean;
|
|
1048
984
|
/**
|
|
1049
|
-
*
|
|
1050
|
-
*
|
|
985
|
+
* Decreases the damage the player receives while on horseback
|
|
986
|
+
* Previous name: _SET_RECEIVED_HORSEBACK_DAMAGE_DECREASE
|
|
1051
987
|
*
|
|
1052
|
-
* @param
|
|
1053
|
-
* @param p2
|
|
1054
|
-
* @param p3
|
|
1055
|
-
* @param p4
|
|
988
|
+
* @param damageDecrease
|
|
1056
989
|
*/
|
|
1057
|
-
|
|
990
|
+
set ReceivedDamageTakenOnHorsebackModifier(damageDecrease: number);
|
|
1058
991
|
/**
|
|
1059
992
|
* @param toggle
|
|
1060
993
|
*/
|
|
1061
|
-
set
|
|
994
|
+
set CanMercyKill(toggle: boolean);
|
|
1062
995
|
/**
|
|
996
|
+
* @param p1
|
|
997
|
+
* @param discoveryHash
|
|
1063
998
|
* @returns
|
|
1064
999
|
*/
|
|
1065
|
-
|
|
1000
|
+
getHasDiscoveredCharacterNameSp(p1: number, discoveryHash: string | number): any;
|
|
1066
1001
|
/**
|
|
1067
|
-
*
|
|
1068
|
-
*
|
|
1069
|
-
* @param modifier
|
|
1002
|
+
* @param speech
|
|
1070
1003
|
*/
|
|
1071
|
-
set
|
|
1004
|
+
set InteractionPositiveResponse(speech: string | null);
|
|
1072
1005
|
/**
|
|
1073
|
-
*
|
|
1006
|
+
* This can be between 1.0f - 50.0f
|
|
1074
1007
|
*
|
|
1075
|
-
* @
|
|
1008
|
+
* @param multiplier
|
|
1076
1009
|
*/
|
|
1077
|
-
|
|
1010
|
+
set AirDragMultiplierForPlayersVehicle(multiplier: number);
|
|
1078
1011
|
/**
|
|
1079
|
-
*
|
|
1012
|
+
* Only applies to HUNTERCART01
|
|
1013
|
+
*
|
|
1014
|
+
* @param wagon
|
|
1080
1015
|
*/
|
|
1081
|
-
set
|
|
1016
|
+
set HuntingWagon(wagon: Vehicle);
|
|
1082
1017
|
/**
|
|
1083
|
-
*
|
|
1084
|
-
*
|
|
1018
|
+
* 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.
|
|
1019
|
+
*
|
|
1020
|
+
* @param p1
|
|
1021
|
+
* @param p2
|
|
1022
|
+
* @param p3
|
|
1023
|
+
* @param intensity
|
|
1024
|
+
* @param flag
|
|
1085
1025
|
*/
|
|
1086
|
-
|
|
1026
|
+
setDeadeyeEntityAuraIntensityWithFlag(p1: number, p2: number, p3: number, intensity: number, flag: number): void;
|
|
1087
1027
|
/**
|
|
1028
|
+
* Returns true if PromptType is enabled for ped (mount)
|
|
1029
|
+
* Params: See 0x0751D461F06E41CE
|
|
1030
|
+
*
|
|
1031
|
+
* @param ped
|
|
1032
|
+
* @param promptType
|
|
1033
|
+
* @param promptMode
|
|
1088
1034
|
* @returns
|
|
1089
1035
|
*/
|
|
1090
|
-
|
|
1036
|
+
getUiPromptForPedIsEnabled(ped: Ped, promptType: number, promptMode: number): any;
|
|
1091
1037
|
/**
|
|
1092
|
-
*
|
|
1038
|
+
* 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).
|
|
1039
|
+
*
|
|
1040
|
+
* @param flag
|
|
1093
1041
|
*/
|
|
1094
|
-
|
|
1042
|
+
set DeadeyeEntityAuraWithFlag(flag: number);
|
|
1095
1043
|
/**
|
|
1096
|
-
* @param ped
|
|
1097
1044
|
* @returns
|
|
1098
1045
|
*/
|
|
1099
|
-
|
|
1046
|
+
get MountOwnedByPlayer(): Ped | null;
|
|
1100
1047
|
/**
|
|
1101
|
-
*
|
|
1102
|
-
*
|
|
1103
|
-
* @param mood Refer to [enum: ePedMood]
|
|
1048
|
+
* @param weaponHash Refer to [enum: eWeaponHash]
|
|
1049
|
+
* @param damageModifier
|
|
1104
1050
|
*/
|
|
1105
|
-
|
|
1051
|
+
setWeaponTypeDamageModifier(weaponHash: eWeaponHash, damageModifier: number): void;
|
|
1106
1052
|
/**
|
|
1107
|
-
*
|
|
1053
|
+
* Only used in script function PROCESS_PED_INTERRUPT_DIALOGUE
|
|
1054
|
+
* *GET_PLAYER**
|
|
1108
1055
|
*
|
|
1109
|
-
* @
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1056
|
+
* @returns ped
|
|
1057
|
+
*/
|
|
1058
|
+
N_0x7AE93C45EC14A166(): [boolean, Ped | null];
|
|
1059
|
+
/**
|
|
1060
|
+
* @param speed
|
|
1061
|
+
* @param duration
|
|
1062
|
+
* @param heading
|
|
1063
|
+
* @param p4
|
|
1064
|
+
* @param p5
|
|
1113
1065
|
*/
|
|
1114
|
-
|
|
1066
|
+
simulateInputGait(speed: number, duration: number, heading: number, p4: boolean, p5: boolean): void;
|
|
1115
1067
|
/**
|
|
1116
|
-
* Used in script function INIT_DEADEYE_SLOWDOWN
|
|
1117
|
-
*
|
|
1118
1068
|
* @param p1
|
|
1069
|
+
* @returns
|
|
1119
1070
|
*/
|
|
1120
|
-
|
|
1071
|
+
getDeadEyeMeterLevel(p1: boolean): number;
|
|
1121
1072
|
/**
|
|
1122
|
-
*
|
|
1123
|
-
*
|
|
1124
|
-
* @param disable
|
|
1073
|
+
* @param drawReductionTime
|
|
1125
1074
|
*/
|
|
1126
|
-
set
|
|
1075
|
+
set BowDrawReductionTimeInDeadeye(drawReductionTime: number);
|
|
1127
1076
|
/**
|
|
1128
|
-
*
|
|
1077
|
+
* 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.
|
|
1129
1078
|
*
|
|
1130
|
-
* @
|
|
1079
|
+
* @returns
|
|
1131
1080
|
*/
|
|
1132
|
-
|
|
1081
|
+
eagleEyeCanFocusOnTrack(): any;
|
|
1082
|
+
/**
|
|
1083
|
+
* @param range
|
|
1084
|
+
*/
|
|
1085
|
+
eagleEyeSetRange(range: number): void;
|
|
1133
1086
|
/**
|
|
1087
|
+
* *SET_SPECIAL_ABILITY**
|
|
1088
|
+
*
|
|
1134
1089
|
* @param p1
|
|
1135
1090
|
*/
|
|
1136
|
-
|
|
1091
|
+
N_0x4D1699543B1C023C(p1: number): void;
|
|
1137
1092
|
/**
|
|
1138
|
-
*
|
|
1093
|
+
* Drains Deadeye by given amount.
|
|
1094
|
+
*
|
|
1095
|
+
* @param amount
|
|
1096
|
+
* @param p2
|
|
1139
1097
|
*/
|
|
1140
|
-
|
|
1098
|
+
specialAbilityDrainByAmount(amount: number, p2: any): void;
|
|
1141
1099
|
/**
|
|
1142
|
-
*
|
|
1100
|
+
* Sets Player's Defense against AI modifier
|
|
1101
|
+
*
|
|
1102
|
+
* @param modifier
|
|
1143
1103
|
*/
|
|
1144
|
-
set
|
|
1104
|
+
set AiDefenseModifierAgainstAi(modifier: number);
|
|
1145
1105
|
/**
|
|
1146
|
-
*
|
|
1106
|
+
* Gets the player's team.
|
|
1107
|
+
* Returns -1 in singleplayer.
|
|
1108
|
+
*
|
|
1147
1109
|
* @returns
|
|
1148
1110
|
*/
|
|
1149
|
-
|
|
1111
|
+
get Team(): number;
|
|
1150
1112
|
/**
|
|
1151
|
-
*
|
|
1152
|
-
* SPECIAL_ABILITY_CAR_SLOWDOWN,
|
|
1153
|
-
* SPECIAL_ABILITY_RAGE,
|
|
1154
|
-
* SPECIAL_ABILITY_BULLET_TIME,
|
|
1155
|
-
* SPECIAL_ABILITY_SNAPSHOT,
|
|
1156
|
-
* SPECIAL_ABILITY_INSULT,
|
|
1157
|
-
* SPECIAL_ABILITY_DEADEYE,
|
|
1158
|
-
* SPECIAL_ABILITY_REVIVE
|
|
1159
|
-
*
|
|
1160
|
-
* @param type
|
|
1113
|
+
* @returns
|
|
1161
1114
|
*/
|
|
1162
|
-
|
|
1115
|
+
get HealthRechargeMultiplier(): number;
|
|
1163
1116
|
/**
|
|
1164
|
-
*
|
|
1117
|
+
* Used in script function: NET_AUTO_FOLLOW_UPDATE_LEADER_VALUES
|
|
1118
|
+
* followMode:
|
|
1119
|
+
* HORSEFOLLOWMODE_AUTO = 0,
|
|
1120
|
+
* HORSEFOLLOWMODE_SIDE_ONLY,
|
|
1121
|
+
* HORSEFOLLOWMODE_BEHIND_ONLY,
|
|
1122
|
+
* HORSEFOLLOWMODE_BEHIND_AND_SIDE,
|
|
1123
|
+
* HORSEFOLLOWMODE_BEHIND_CLOSE
|
|
1124
|
+
* followPriority:
|
|
1125
|
+
* HORSEFOLLOWPRIORITY_STEER_ASSIST = 0,
|
|
1126
|
+
* HORSEFOLLOWPRIORITY_AMBIENT,
|
|
1127
|
+
* HORSEFOLLOWPRIORITY_NORMAL,
|
|
1128
|
+
* HORSEFOLLOWPRIORITY_HIGH
|
|
1129
|
+
*
|
|
1130
|
+
* @param ped
|
|
1131
|
+
* @param p2
|
|
1132
|
+
* @param p3
|
|
1133
|
+
* @param followMode
|
|
1134
|
+
* @param followPriority
|
|
1135
|
+
* @param p6
|
|
1165
1136
|
*/
|
|
1166
|
-
|
|
1137
|
+
addAsFollowTarget(ped: Ped, p2: number, p3: number, followMode: number, followPriority: number, p6: boolean): void;
|
|
1167
1138
|
/**
|
|
1168
|
-
* Sets
|
|
1139
|
+
* Sets the stand prompt for a specific player using a predefined text entry. use AddTextEntry for promptTextKey for custom names
|
|
1169
1140
|
*
|
|
1170
|
-
* @param
|
|
1141
|
+
* @param promptTextKey
|
|
1171
1142
|
*/
|
|
1172
|
-
set
|
|
1143
|
+
set PromptLeaveText(promptTextKey: string | null);
|
|
1173
1144
|
/**
|
|
1145
|
+
* Retrieves the number of marks placed on a PED when Deadeye mode is active for the specified player.
|
|
1146
|
+
*
|
|
1174
1147
|
* @param ped
|
|
1148
|
+
* @returns
|
|
1175
1149
|
*/
|
|
1176
|
-
|
|
1150
|
+
getNumDeadeyeMarksOnPed(ped: Ped): any;
|
|
1177
1151
|
/**
|
|
1178
|
-
* @
|
|
1179
|
-
* @param modifier
|
|
1152
|
+
* @returns
|
|
1180
1153
|
*/
|
|
1181
|
-
|
|
1154
|
+
get Ped2(): Ped | null;
|
|
1182
1155
|
/**
|
|
1183
|
-
* @param
|
|
1184
|
-
* @
|
|
1156
|
+
* @param p1
|
|
1157
|
+
* @returns
|
|
1185
1158
|
*/
|
|
1186
|
-
|
|
1159
|
+
getIsUiPromptActive(p1: number): any;
|
|
1187
1160
|
/**
|
|
1188
|
-
* @param
|
|
1189
|
-
* @
|
|
1161
|
+
* @param horse
|
|
1162
|
+
* @returns
|
|
1190
1163
|
*/
|
|
1191
|
-
|
|
1164
|
+
setPedAsTempHorse(horse: Ped): any;
|
|
1192
1165
|
/**
|
|
1193
|
-
*
|
|
1166
|
+
* Restores Deadeye by given amount.
|
|
1167
|
+
* Params: p2, p3, p4 = 0, 0, 1 in R* Scripts
|
|
1168
|
+
*
|
|
1169
|
+
* @param amount
|
|
1170
|
+
* @param p2
|
|
1171
|
+
* @param p3
|
|
1172
|
+
* @param p4
|
|
1194
1173
|
*/
|
|
1195
|
-
|
|
1174
|
+
specialAbilityRestoreByAmount(amount: number, p2: number, p3: number, p4: number): void;
|
|
1196
1175
|
/**
|
|
1197
|
-
*
|
|
1176
|
+
* Only used in R* SP Script short_update
|
|
1198
1177
|
*
|
|
1199
|
-
* @param
|
|
1178
|
+
* @param delay
|
|
1200
1179
|
*/
|
|
1201
|
-
|
|
1180
|
+
set DeadeyeAbilityDepletionDelay(delay: number);
|
|
1202
1181
|
/**
|
|
1203
|
-
*
|
|
1204
|
-
*
|
|
1182
|
+
* Swim speed multiplier.
|
|
1183
|
+
* Multiplier goes up to 1.49f
|
|
1205
1184
|
*
|
|
1206
|
-
* @param
|
|
1185
|
+
* @param multiplier
|
|
1207
1186
|
*/
|
|
1208
|
-
|
|
1187
|
+
set SwimMultiplierForPlayer(multiplier: number);
|
|
1209
1188
|
/**
|
|
1210
1189
|
* @returns
|
|
1211
1190
|
*/
|
|
1212
|
-
get
|
|
1213
|
-
reportPoliceSpottedPlayer(): void;
|
|
1191
|
+
get IsDead(): boolean;
|
|
1214
1192
|
/**
|
|
1215
|
-
* @param
|
|
1193
|
+
* @param ped
|
|
1216
1194
|
* @param p2
|
|
1217
|
-
* @returns
|
|
1218
1195
|
*/
|
|
1219
|
-
|
|
1196
|
+
N_0x310CE349E0C0EC4B(ped: Ped, p2: number): void;
|
|
1197
|
+
/**
|
|
1198
|
+
* Clears all Eagle Eye trails that were registered for entities associated with the specified player.
|
|
1199
|
+
*/
|
|
1200
|
+
eagleEyeClearRegisteredTrails(): void;
|
|
1201
|
+
/**
|
|
1202
|
+
* @param enable
|
|
1203
|
+
*/
|
|
1204
|
+
enableCustomDeadeyeAbility(enable: boolean): void;
|
|
1220
1205
|
/**
|
|
1206
|
+
* Returns the player's invincibility status.
|
|
1207
|
+
*
|
|
1221
1208
|
* @returns
|
|
1222
1209
|
*/
|
|
1223
|
-
get
|
|
1210
|
+
get Invincible(): boolean;
|
|
1211
|
+
resetArrestState(): void;
|
|
1224
1212
|
/**
|
|
1225
|
-
*
|
|
1213
|
+
* Toggle handles wether Deadeye and Eagleeye are infinite or not.
|
|
1226
1214
|
*
|
|
1227
|
-
* @param
|
|
1228
|
-
* @param attachSlotId
|
|
1215
|
+
* @param toggle
|
|
1229
1216
|
*/
|
|
1230
|
-
|
|
1217
|
+
modifyInfiniteTrailVision(toggle: boolean): void;
|
|
1231
1218
|
/**
|
|
1232
|
-
*
|
|
1233
|
-
*
|
|
1234
|
-
* @param
|
|
1235
|
-
* @param p6
|
|
1236
|
-
* @param p7
|
|
1237
|
-
* @param p8
|
|
1219
|
+
* Simply sets you as invincible (Health will not deplete).
|
|
1220
|
+
*
|
|
1221
|
+
* @param toggle
|
|
1238
1222
|
*/
|
|
1239
|
-
|
|
1223
|
+
set Invincible(toggle: boolean);
|
|
1240
1224
|
/**
|
|
1241
|
-
*
|
|
1225
|
+
* Returns whether the player can control himself.
|
|
1242
1226
|
*
|
|
1243
|
-
* @param ped
|
|
1244
1227
|
* @returns
|
|
1245
1228
|
*/
|
|
1246
|
-
|
|
1229
|
+
get IsControlOn(): boolean;
|
|
1247
1230
|
/**
|
|
1248
|
-
* @
|
|
1231
|
+
* @param vehicle
|
|
1249
1232
|
*/
|
|
1250
|
-
|
|
1233
|
+
set MayOnlyEnterThisVehicle(vehicle: Vehicle);
|
|
1251
1234
|
/**
|
|
1252
|
-
* @
|
|
1235
|
+
* @param weaponGroup
|
|
1236
|
+
* @param toggle
|
|
1253
1237
|
*/
|
|
1254
|
-
|
|
1255
|
-
N_0xC900A465364A85D6(): void;
|
|
1238
|
+
setWeaponGroupAsInstantKill(weaponGroup: string | number, toggle: boolean): void;
|
|
1256
1239
|
/**
|
|
1257
|
-
* Returns
|
|
1240
|
+
* Returns false if PromptType is enabled
|
|
1241
|
+
* Params: See 0x0751D461F06E41CE
|
|
1258
1242
|
*
|
|
1243
|
+
* @param promptType
|
|
1244
|
+
* @param promptMode
|
|
1259
1245
|
* @returns
|
|
1260
1246
|
*/
|
|
1261
|
-
|
|
1247
|
+
getUiPromptIsDisabled(promptType: number, promptMode: number): any;
|
|
1262
1248
|
/**
|
|
1263
|
-
*
|
|
1264
|
-
*
|
|
1265
|
-
* @param weaponDefenseMod
|
|
1266
|
-
* @param meleeDefenseMod
|
|
1249
|
+
* @param toggle
|
|
1267
1250
|
*/
|
|
1268
|
-
|
|
1251
|
+
set LockonToFriendlyPlayers(toggle: boolean);
|
|
1269
1252
|
/**
|
|
1270
|
-
*
|
|
1253
|
+
* Activates the Surrender prompt for the specified player in the current frame.
|
|
1271
1254
|
*
|
|
1272
|
-
* @param
|
|
1255
|
+
* @param targetPed
|
|
1256
|
+
* @param promptOrder
|
|
1257
|
+
* @param p3
|
|
1273
1258
|
*/
|
|
1274
|
-
|
|
1259
|
+
setCooperatePromptThisFrame(targetPed: Ped, promptOrder: number, p3: boolean): void;
|
|
1275
1260
|
/**
|
|
1276
|
-
*
|
|
1261
|
+
* https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePlayerResetFlags
|
|
1262
|
+
* https://github.com/femga/rdr3_discoveries/tree/master/AI/PLAYER_RESET_FLAGS
|
|
1277
1263
|
*
|
|
1278
|
-
* @param
|
|
1264
|
+
* @param playerResetFlag
|
|
1265
|
+
* @param p2
|
|
1279
1266
|
*/
|
|
1280
|
-
|
|
1267
|
+
setResetFlag(playerResetFlag: number, p2: boolean): void;
|
|
1281
1268
|
/**
|
|
1282
1269
|
* @returns
|
|
1283
1270
|
*/
|
|
1284
|
-
get
|
|
1271
|
+
get WantedLevel(): number;
|
|
1285
1272
|
/**
|
|
1286
|
-
* @param
|
|
1273
|
+
* @param closeRangeLowerBound
|
|
1274
|
+
* @param closeRangeUpperBound
|
|
1287
1275
|
*/
|
|
1288
|
-
|
|
1276
|
+
setDamageCloseDistanceBonus(closeRangeLowerBound: number, closeRangeUpperBound: number): void;
|
|
1289
1277
|
/**
|
|
1290
|
-
* @
|
|
1278
|
+
* @param multiplier
|
|
1291
1279
|
*/
|
|
1292
|
-
|
|
1280
|
+
set SneakingNoiseMultiplier(multiplier: number);
|
|
1281
|
+
/**
|
|
1282
|
+
* Sets the player's team.
|
|
1283
|
+
*
|
|
1284
|
+
* @param team
|
|
1285
|
+
* @param bRestrictToThisScript
|
|
1286
|
+
*/
|
|
1287
|
+
setTeam(team: number, bRestrictToThisScript: boolean): void;
|
|
1293
1288
|
/**
|
|
1289
|
+
* Checks if the player's Deadeye ability is enabled.
|
|
1290
|
+
*
|
|
1294
1291
|
* @returns
|
|
1295
1292
|
*/
|
|
1296
|
-
get
|
|
1293
|
+
get IsSpecialAbilityEnabled(): any;
|
|
1297
1294
|
/**
|
|
1298
|
-
*
|
|
1295
|
+
* @param target
|
|
1296
|
+
*/
|
|
1297
|
+
set BountyTarget(target: Player);
|
|
1298
|
+
/**
|
|
1299
|
+
* Retrieves whether all trails are currently hidden during Eagle Eye mode for the specified player.
|
|
1299
1300
|
*
|
|
1300
|
-
* @
|
|
1301
|
+
* @returns
|
|
1301
1302
|
*/
|
|
1302
|
-
|
|
1303
|
+
eagleEyeAreAllTrailsHidden(): any;
|
|
1303
1304
|
/**
|
|
1304
|
-
* @
|
|
1305
|
-
* @param duration
|
|
1305
|
+
* @returns
|
|
1306
1306
|
*/
|
|
1307
|
-
|
|
1307
|
+
get IsDeadeyeTaggingEnabled(): any;
|
|
1308
1308
|
/**
|
|
1309
1309
|
* Gets the player's server ID. In multiplayer, this is the player's unique server-side identifier.
|
|
1310
1310
|
*/
|