@nativewrappers/redm-codegen 0.0.2 → 0.0.4
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 +101 -101
- package/dist/classes/AnimScene.d.ts.map +1 -1
- package/dist/classes/AnimScene.js +147 -147
- package/dist/classes/BaseModel.d.ts +12 -12
- package/dist/classes/BaseModel.d.ts.map +1 -1
- package/dist/classes/BaseModel.js +18 -18
- package/dist/classes/BaseTask.d.ts +22 -22
- package/dist/classes/BaseTask.d.ts.map +1 -1
- package/dist/classes/BaseTask.js +29 -29
- package/dist/classes/Cam.d.ts +86 -86
- package/dist/classes/Cam.d.ts.map +1 -1
- package/dist/classes/Cam.js +116 -116
- package/dist/classes/Entity.d.ts +426 -425
- package/dist/classes/Entity.d.ts.map +1 -1
- package/dist/classes/Entity.js +594 -589
- package/dist/classes/Interior.d.ts +1 -1
- package/dist/classes/Interior.d.ts.map +1 -1
- package/dist/classes/Ped.d.ts +13 -12
- package/dist/classes/Ped.d.ts.map +1 -1
- package/dist/classes/Ped.js +5 -0
- package/dist/classes/PedTask.d.ts +729 -729
- package/dist/classes/PedTask.d.ts.map +1 -1
- package/dist/classes/PedTask.js +951 -951
- package/dist/classes/PersChar.d.ts +11 -11
- package/dist/classes/PersChar.d.ts.map +1 -1
- package/dist/classes/PersChar.js +17 -17
- package/dist/classes/Pickup.d.ts +3 -3
- package/dist/classes/Pickup.d.ts.map +1 -1
- package/dist/classes/Pickup.js +7 -7
- package/dist/classes/Player.d.ts +164 -164
- package/dist/classes/Player.d.ts.map +1 -1
- package/dist/classes/Player.js +218 -218
- package/dist/classes/Prop.d.ts +87 -86
- package/dist/classes/Prop.d.ts.map +1 -1
- package/dist/classes/Prop.js +131 -126
- package/dist/classes/PropSet.d.ts +18 -18
- package/dist/classes/PropSet.d.ts.map +1 -1
- package/dist/classes/PropSet.js +25 -25
- package/dist/classes/Vehicle.d.ts +1 -0
- package/dist/classes/Vehicle.d.ts.map +1 -1
- package/dist/classes/Vehicle.js +5 -0
- package/dist/classes/VehicleTask.d.ts +18 -18
- package/dist/classes/VehicleTask.d.ts.map +1 -1
- package/dist/classes/VehicleTask.js +26 -26
- package/dist/classes/Volume.d.ts +1 -1
- package/dist/classes/Volume.d.ts.map +1 -1
- package/dist/classes/Weapon.d.ts +277 -277
- package/dist/classes/Weapon.d.ts.map +1 -1
- package/dist/classes/Weapon.js +398 -398
- package/dist/namespaces/Aitransport.d.ts +77 -77
- package/dist/namespaces/Aitransport.d.ts.map +1 -1
- package/dist/namespaces/Aitransport.js +94 -94
- package/dist/namespaces/Animscene.d.ts +51 -51
- package/dist/namespaces/Animscene.d.ts.map +1 -1
- package/dist/namespaces/Animscene.js +69 -69
- package/dist/namespaces/Audio.d.ts +2 -2
- package/dist/namespaces/Audio.d.ts.map +1 -1
- 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/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 +317 -317
- package/dist/namespaces/CamStatics.d.ts.map +1 -1
- package/dist/namespaces/CamStatics.js +449 -449
- package/dist/namespaces/Collection.d.ts +13 -13
- package/dist/namespaces/Collection.d.ts.map +1 -1
- package/dist/namespaces/Collection.js +8 -8
- 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 +60 -60
- package/dist/namespaces/Compendium.d.ts.map +1 -1
- package/dist/namespaces/Compendium.js +80 -80
- 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/Databinding.d.ts +173 -173
- package/dist/namespaces/Databinding.d.ts.map +1 -1
- package/dist/namespaces/Databinding.js +263 -263
- 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 +178 -178
- package/dist/namespaces/EntityStatics.d.ts.map +1 -1
- package/dist/namespaces/EntityStatics.js +242 -242
- package/dist/namespaces/Event.d.ts +62 -62
- package/dist/namespaces/Event.d.ts.map +1 -1
- package/dist/namespaces/Event.js +82 -82
- 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 +797 -797
- package/dist/namespaces/Graphics.d.ts.map +1 -1
- package/dist/namespaces/Graphics.js +1095 -1095
- package/dist/namespaces/Hud.d.ts +477 -477
- package/dist/namespaces/Hud.d.ts.map +1 -1
- package/dist/namespaces/Hud.js +721 -721
- package/dist/namespaces/InteriorStatics.d.ts +2 -2
- package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
- package/dist/namespaces/Inventory.d.ts +216 -216
- package/dist/namespaces/Inventory.d.ts.map +1 -1
- package/dist/namespaces/Inventory.js +301 -301
- package/dist/namespaces/Itemdatabase.d.ts +8 -8
- package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
- package/dist/namespaces/Itemdatabase.js +7 -7
- package/dist/namespaces/Law.d.ts +2 -2
- package/dist/namespaces/Law.d.ts.map +1 -1
- package/dist/namespaces/Map.d.ts +65 -65
- package/dist/namespaces/Map.d.ts.map +1 -1
- package/dist/namespaces/Map.js +91 -91
- package/dist/namespaces/Minigame.d.ts +17 -17
- package/dist/namespaces/Minigame.d.ts.map +1 -1
- package/dist/namespaces/Minigame.js +25 -25
- package/dist/namespaces/Misc.d.ts +5 -5
- package/dist/namespaces/Misc.d.ts.map +1 -1
- package/dist/namespaces/Missiondata.d.ts +3 -3
- package/dist/namespaces/Missiondata.d.ts.map +1 -1
- package/dist/namespaces/Netshopping.d.ts +1 -1
- package/dist/namespaces/Netshopping.d.ts.map +1 -1
- package/dist/namespaces/Network.d.ts +1302 -1310
- package/dist/namespaces/Network.d.ts.map +1 -1
- package/dist/namespaces/Network.js +1910 -1918
- package/dist/namespaces/Object.d.ts +170 -170
- package/dist/namespaces/Object.d.ts.map +1 -1
- package/dist/namespaces/Object.js +232 -232
- package/dist/namespaces/Pad.d.ts +103 -103
- package/dist/namespaces/Pad.d.ts.map +1 -1
- package/dist/namespaces/Pad.js +134 -134
- package/dist/namespaces/PedStatics.d.ts +3 -3
- package/dist/namespaces/PedStatics.d.ts.map +1 -1
- package/dist/namespaces/Perschar.d.ts +71 -71
- package/dist/namespaces/Perschar.d.ts.map +1 -1
- package/dist/namespaces/Perschar.js +106 -106
- package/dist/namespaces/Persistence.d.ts +30 -30
- package/dist/namespaces/Persistence.d.ts.map +1 -1
- package/dist/namespaces/Persistence.js +42 -42
- package/dist/namespaces/PlayerStatics.d.ts +52 -52
- package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
- package/dist/namespaces/PlayerStatics.js +71 -71
- package/dist/namespaces/Population.d.ts +3 -3
- package/dist/namespaces/Population.d.ts.map +1 -1
- package/dist/namespaces/Posse.d.ts +28 -28
- package/dist/namespaces/Posse.d.ts.map +1 -1
- package/dist/namespaces/Posse.js +44 -44
- 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/Scripts.d.ts +3 -3
- package/dist/namespaces/Scripts.d.ts.map +1 -1
- package/dist/namespaces/Socialclub.d.ts +1 -1
- package/dist/namespaces/Socialclub.d.ts.map +1 -1
- package/dist/namespaces/Stats.d.ts +85 -85
- package/dist/namespaces/Stats.d.ts.map +1 -1
- package/dist/namespaces/Stats.js +113 -113
- package/dist/namespaces/Streaming.d.ts +35 -35
- package/dist/namespaces/Streaming.d.ts.map +1 -1
- package/dist/namespaces/Streaming.js +53 -53
- package/dist/namespaces/Task.d.ts +367 -367
- package/dist/namespaces/Task.d.ts.map +1 -1
- package/dist/namespaces/Task.js +508 -508
- package/dist/namespaces/Telemetry.d.ts +198 -198
- package/dist/namespaces/Telemetry.d.ts.map +1 -1
- package/dist/namespaces/Telemetry.js +274 -274
- package/dist/namespaces/Uiapps.d.ts +24 -24
- package/dist/namespaces/Uiapps.d.ts.map +1 -1
- package/dist/namespaces/Uiapps.js +33 -33
- 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/VehicleStatics.d.ts +2 -2
- package/dist/namespaces/VehicleStatics.d.ts.map +1 -1
- 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 +372 -372
- package/dist/namespaces/Zone.d.ts +8 -8
- package/dist/namespaces/Zone.d.ts.map +1 -1
- package/dist/namespaces/Zone.js +9 -9
- package/package.json +1 -1
- package/src/classes/AnimScene.ts +170 -170
- package/src/classes/BaseModel.ts +21 -21
- package/src/classes/BaseTask.ts +31 -31
- package/src/classes/Cam.ts +124 -124
- package/src/classes/Entity.ts +619 -614
- package/src/classes/Interior.ts +1 -1
- package/src/classes/Ped.ts +17 -12
- package/src/classes/PedTask.ts +1011 -1011
- package/src/classes/PersChar.ts +19 -19
- package/src/classes/Pickup.ts +8 -8
- package/src/classes/Player.ts +227 -227
- package/src/classes/Prop.ts +146 -141
- package/src/classes/PropSet.ts +29 -29
- package/src/classes/Vehicle.ts +5 -0
- package/src/classes/VehicleTask.ts +30 -30
- package/src/classes/Volume.ts +1 -1
- package/src/classes/Weapon.ts +414 -414
- package/src/namespaces/Aitransport.ts +102 -102
- package/src/namespaces/Animscene.ts +78 -78
- package/src/namespaces/Audio.ts +2 -2
- package/src/namespaces/Bounty.ts +102 -102
- package/src/namespaces/Brain.ts +22 -22
- package/src/namespaces/CamStatics.ts +501 -501
- package/src/namespaces/Collection.ts +16 -16
- package/src/namespaces/Companion.ts +34 -34
- package/src/namespaces/Compendium.ts +93 -93
- package/src/namespaces/Crashlog.ts +16 -16
- package/src/namespaces/Databinding.ts +280 -280
- package/src/namespaces/Dlc.ts +9 -9
- package/src/namespaces/EntityStatics.ts +249 -249
- package/src/namespaces/Event.ts +92 -92
- package/src/namespaces/Fire.ts +10 -10
- package/src/namespaces/Graphics.ts +1155 -1155
- package/src/namespaces/Hud.ts +763 -763
- package/src/namespaces/InteriorStatics.ts +2 -2
- package/src/namespaces/Inventory.ts +321 -321
- package/src/namespaces/Itemdatabase.ts +11 -11
- package/src/namespaces/Law.ts +2 -2
- package/src/namespaces/Map.ts +104 -104
- package/src/namespaces/Minigame.ts +29 -29
- package/src/namespaces/Misc.ts +5 -5
- package/src/namespaces/Missiondata.ts +3 -3
- package/src/namespaces/Netshopping.ts +1 -1
- package/src/namespaces/Network.ts +1921 -1929
- package/src/namespaces/Object.ts +237 -237
- package/src/namespaces/Pad.ts +151 -151
- package/src/namespaces/PedStatics.ts +3 -3
- package/src/namespaces/Perschar.ts +116 -116
- package/src/namespaces/Persistence.ts +48 -48
- package/src/namespaces/PlayerStatics.ts +75 -75
- package/src/namespaces/Population.ts +3 -3
- package/src/namespaces/Posse.ts +47 -47
- package/src/namespaces/Propset.ts +92 -92
- package/src/namespaces/Scripts.ts +3 -3
- package/src/namespaces/Socialclub.ts +1 -1
- package/src/namespaces/Stats.ts +129 -129
- package/src/namespaces/Streaming.ts +62 -62
- package/src/namespaces/Task.ts +538 -538
- package/src/namespaces/Telemetry.ts +295 -295
- package/src/namespaces/Uiapps.ts +39 -39
- package/src/namespaces/Uistickyfeed.ts +23 -23
- package/src/namespaces/VehicleStatics.ts +2 -2
- package/src/namespaces/Water.ts +47 -47
- package/src/namespaces/WeaponStatics.ts +394 -394
- package/src/namespaces/Zone.ts +11 -11
package/dist/classes/Entity.d.ts
CHANGED
|
@@ -11,185 +11,237 @@ export declare class Entity implements IHandle {
|
|
|
11
11
|
handle: number;
|
|
12
12
|
constructor(handle: number);
|
|
13
13
|
static fromHandle(handle: number): Entity | null;
|
|
14
|
+
static fromNetworkId(netId: number): Entity | null;
|
|
14
15
|
/**
|
|
15
|
-
* @param targetEntity
|
|
16
16
|
* @returns
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
deleteCarriable(): void;
|
|
18
|
+
getIsBird(): any;
|
|
20
19
|
/**
|
|
21
|
-
*
|
|
20
|
+
* Gets the entity's forward vector in YX(Z) eulers. Similar to GET_ENTITY_FORWARD_VECTOR
|
|
22
21
|
*
|
|
23
|
-
* @param animDict
|
|
24
|
-
* @param animName
|
|
25
22
|
* @returns
|
|
26
23
|
*/
|
|
27
|
-
|
|
24
|
+
getForwardVectorYx(): Vector3;
|
|
28
25
|
/**
|
|
29
|
-
* @param
|
|
30
|
-
* @param
|
|
26
|
+
* @param pos
|
|
27
|
+
* @param xAxis
|
|
28
|
+
* @param yAxis
|
|
29
|
+
* @param zAxis
|
|
30
|
+
* @param clearArea
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
setCoords(pos: Vector3, xAxis: boolean, yAxis: boolean, zAxis: boolean, clearArea: boolean): void;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
34
|
+
* @param boneName
|
|
36
35
|
* @returns
|
|
37
36
|
*/
|
|
38
|
-
|
|
37
|
+
getBoneIndexByName(boneName: string | null): number;
|
|
39
38
|
/**
|
|
40
|
-
* @param
|
|
39
|
+
* @param pause
|
|
41
40
|
*/
|
|
42
|
-
|
|
41
|
+
pauseTracking(pause: boolean): void;
|
|
43
42
|
/**
|
|
44
|
-
* @
|
|
43
|
+
* @param toggle
|
|
45
44
|
*/
|
|
46
|
-
|
|
45
|
+
setLoadCollisionFlag(toggle: boolean): void;
|
|
47
46
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
47
|
+
* Changes type and quality of skins
|
|
48
|
+
* type hashes: https://pastebin.com/C1WvQjCy
|
|
49
|
+
*
|
|
50
|
+
* @param type
|
|
50
51
|
*/
|
|
51
|
-
|
|
52
|
+
setCarcassType(type: string | number): void;
|
|
52
53
|
/**
|
|
53
|
-
* @
|
|
54
|
+
* @param toggle
|
|
54
55
|
*/
|
|
55
|
-
|
|
56
|
+
setHasGravity(toggle: boolean): void;
|
|
56
57
|
/**
|
|
57
|
-
* @param
|
|
58
|
-
* @param traceType
|
|
58
|
+
* @param relative
|
|
59
59
|
* @returns
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
getSpeedVector(relative: boolean): Vector3;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* @param animDict
|
|
67
|
-
* @param animClip
|
|
63
|
+
* @param entity2
|
|
64
|
+
* @param p2
|
|
65
|
+
* @param p3
|
|
68
66
|
* @returns
|
|
69
67
|
*/
|
|
70
|
-
|
|
68
|
+
hasBeenDamagedByEntity(entity2: Entity, p2: boolean, p3: boolean): boolean;
|
|
71
69
|
/**
|
|
72
|
-
* @param playerPedToIgnore
|
|
73
|
-
* @param flags
|
|
74
70
|
* @returns
|
|
75
71
|
*/
|
|
76
|
-
|
|
72
|
+
isFullyLooted(): any;
|
|
77
73
|
/**
|
|
78
|
-
* Gets the Y-component of the entity's forward vector.
|
|
79
|
-
*
|
|
80
74
|
* @returns
|
|
81
75
|
*/
|
|
82
|
-
|
|
76
|
+
isOccluded(): boolean;
|
|
83
77
|
/**
|
|
84
|
-
* @param
|
|
85
|
-
* @param roll
|
|
86
|
-
* @param yaw
|
|
87
|
-
* @param rotationOrder
|
|
88
|
-
* @param p5
|
|
78
|
+
* @param toggle
|
|
89
79
|
*/
|
|
90
|
-
|
|
80
|
+
setCanBeDamaged(toggle: boolean): void;
|
|
91
81
|
/**
|
|
92
|
-
* @param
|
|
93
|
-
* @param
|
|
82
|
+
* @param forceFlags
|
|
83
|
+
* @param pos
|
|
84
|
+
* @param offset
|
|
85
|
+
* @param boneIndex
|
|
86
|
+
* @param isDirectionRel
|
|
87
|
+
* @param ignoreUpVec
|
|
88
|
+
* @param isForceRel
|
|
89
|
+
* @param p12
|
|
90
|
+
* @param p13
|
|
94
91
|
*/
|
|
95
|
-
|
|
92
|
+
applyForceToEntity(forceFlags: number, pos: Vector3, offset: Vector3, boneIndex: number, isDirectionRel: boolean, ignoreUpVec: boolean, isForceRel: boolean, p12: boolean, p13: boolean): void;
|
|
96
93
|
/**
|
|
97
|
-
*
|
|
98
|
-
* BOOL p2: handles an additional special proofs flag, so it simply indicates whether it should be enabled or disabled, not sure what exactly it proofs the entity from though
|
|
99
|
-
*
|
|
100
|
-
* @param proofsBitset
|
|
101
|
-
* @param specialFlag
|
|
94
|
+
* @returns
|
|
102
95
|
*/
|
|
103
|
-
|
|
96
|
+
isDead(): boolean;
|
|
104
97
|
/**
|
|
98
|
+
* @param pos1
|
|
99
|
+
* @param pos2
|
|
100
|
+
* @param p7
|
|
101
|
+
* @param p8
|
|
102
|
+
* @param p9
|
|
105
103
|
* @returns
|
|
106
104
|
*/
|
|
107
|
-
|
|
105
|
+
isInArea(pos1: Vector3, pos2: Vector3, p7: boolean, p8: boolean, p9: any): boolean;
|
|
108
106
|
/**
|
|
107
|
+
* Returns the coordinates of an entity-bone.
|
|
108
|
+
* https://github.com/femga/rdr3_discoveries/tree/master/boneNames
|
|
109
|
+
*
|
|
110
|
+
* @param boneIndex
|
|
109
111
|
* @returns
|
|
110
112
|
*/
|
|
111
|
-
|
|
113
|
+
getWorldPositionOfBone(boneIndex: number): Vector3;
|
|
112
114
|
/**
|
|
113
|
-
*
|
|
115
|
+
* https://github.com/femga/rdr3_discoveries/tree/master/animations
|
|
116
|
+
*
|
|
117
|
+
* @param animName
|
|
118
|
+
* @param animDict
|
|
119
|
+
* @param p3
|
|
120
|
+
* @param loop
|
|
121
|
+
* @param stayInAnim
|
|
122
|
+
* @param p6
|
|
123
|
+
* @param delta
|
|
124
|
+
* @param bitset
|
|
114
125
|
* @returns
|
|
115
126
|
*/
|
|
116
|
-
|
|
127
|
+
playAnim(animName: string | null, animDict: string | null, p3: number, loop: boolean, stayInAnim: boolean, p6: boolean, delta: number, bitset: any): boolean;
|
|
117
128
|
/**
|
|
118
|
-
*
|
|
129
|
+
* Returns false if entity is not a ped or object.
|
|
130
|
+
*
|
|
131
|
+
* @returns lootTable
|
|
119
132
|
*/
|
|
120
|
-
|
|
133
|
+
getScriptOverrideLootTablePermanent(): [any, number];
|
|
121
134
|
/**
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
* @param lootTable
|
|
135
|
+
* @param animDict
|
|
136
|
+
* @param animName
|
|
137
|
+
* @param p3
|
|
126
138
|
* @returns
|
|
127
139
|
*/
|
|
128
|
-
|
|
140
|
+
hasAnimFinished(animDict: string | null, animName: string | null, p3: number): boolean;
|
|
129
141
|
/**
|
|
130
|
-
* @
|
|
142
|
+
* @param bCanBeDamaged
|
|
143
|
+
* @param relGroup
|
|
131
144
|
*/
|
|
132
|
-
|
|
145
|
+
setCanBeDamagedByRelationshipGroup(bCanBeDamaged: boolean, relGroup: string | number): void;
|
|
133
146
|
/**
|
|
134
|
-
* @param actionHash
|
|
135
147
|
* @returns
|
|
136
148
|
*/
|
|
137
|
-
|
|
149
|
+
getUprightValue(): number;
|
|
138
150
|
/**
|
|
139
|
-
* @param
|
|
151
|
+
* @param pos
|
|
152
|
+
* @param heading
|
|
153
|
+
* @param xAxis
|
|
154
|
+
* @param yAxis
|
|
155
|
+
* @param zAxis
|
|
140
156
|
*/
|
|
141
|
-
|
|
157
|
+
setCoordsAndHeading(pos: Vector3, heading: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
|
|
142
158
|
/**
|
|
143
|
-
*
|
|
159
|
+
* Returns zero if the entity is not a carriable
|
|
144
160
|
*
|
|
145
161
|
* @returns
|
|
146
162
|
*/
|
|
147
|
-
|
|
163
|
+
getCarryConfig(): number;
|
|
148
164
|
/**
|
|
149
|
-
*
|
|
165
|
+
* tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
|
|
150
166
|
*
|
|
151
|
-
* @
|
|
167
|
+
* @param tier
|
|
168
|
+
* @param p2
|
|
152
169
|
*/
|
|
153
|
-
|
|
170
|
+
setThreatTier(tier: number, p2: boolean): void;
|
|
154
171
|
/**
|
|
172
|
+
* Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
|
|
173
|
+
*
|
|
155
174
|
* @returns
|
|
156
175
|
*/
|
|
157
|
-
|
|
176
|
+
getHeading(): number;
|
|
158
177
|
/**
|
|
159
|
-
*
|
|
178
|
+
* Returns the LOD distance of an entity.
|
|
160
179
|
*
|
|
161
180
|
* @returns
|
|
162
181
|
*/
|
|
163
|
-
|
|
182
|
+
getLodDist(): number;
|
|
164
183
|
/**
|
|
165
184
|
* @returns
|
|
166
185
|
*/
|
|
167
|
-
|
|
186
|
+
doesHaveDrawable(): boolean;
|
|
168
187
|
/**
|
|
169
|
-
* @
|
|
188
|
+
* @param xyzw
|
|
170
189
|
*/
|
|
171
|
-
|
|
190
|
+
setQuaternion(xyzw: Vector4): void;
|
|
172
191
|
/**
|
|
173
192
|
* @returns
|
|
174
193
|
*/
|
|
175
|
-
|
|
194
|
+
isAttachedToAnyObject(): boolean;
|
|
176
195
|
/**
|
|
177
|
-
*
|
|
196
|
+
* Sets a ped or an object totally invincible. It doesn't take any kind of damage. Peds will not ragdoll on explosions.
|
|
197
|
+
*
|
|
198
|
+
* @param toggle
|
|
199
|
+
*/
|
|
200
|
+
setInvincible(toggle: boolean): void;
|
|
201
|
+
/**
|
|
202
|
+
* Attaches entity1 to bone (boneIndex) of entity2. boneIndex - this is different to boneID, use GET_PED_BONE_INDEX to get the index from the ID. use the index for attaching to specific bones. entity1 will be attached to entity2's centre if bone index given doesn't correspond to bone indexes for that entity type.
|
|
203
|
+
* https://github.com/femga/rdr3_discoveries/tree/master/boneNames useSoftPinning - if set to false attached entity will not detach when fixed
|
|
204
|
+
* collision - controls collision between the two entities (FALSE disables collision).
|
|
205
|
+
* isPed - pitch doesn't work when false and roll will only work on negative numbers (only peds)
|
|
206
|
+
* vertexIndex - position of vertex
|
|
207
|
+
* fixedRot - if false it ignores entity vector
|
|
178
208
|
*
|
|
209
|
+
* @param entity2
|
|
210
|
+
* @param boneIndex
|
|
211
|
+
* @param pos
|
|
212
|
+
* @param rot
|
|
213
|
+
* @param p9
|
|
214
|
+
* @param useSoftPinning
|
|
215
|
+
* @param collision
|
|
216
|
+
* @param isPed
|
|
217
|
+
* @param vertexIndex
|
|
218
|
+
* @param fixedRot
|
|
219
|
+
* @param p15
|
|
220
|
+
* @param p16
|
|
221
|
+
*/
|
|
222
|
+
attachToEntity(entity2: Entity, boneIndex: number, pos: Vector3, rot: Vector3, p9: boolean, useSoftPinning: boolean, collision: boolean, isPed: boolean, vertexIndex: number, fixedRot: boolean, p15: boolean, p16: boolean): void;
|
|
223
|
+
/**
|
|
179
224
|
* @returns
|
|
180
225
|
*/
|
|
181
|
-
|
|
226
|
+
getIsAnimal(): any;
|
|
182
227
|
/**
|
|
183
|
-
*
|
|
228
|
+
* p6/relative - makes the xyz force not relative to world coords, but to something else
|
|
229
|
+
* p7/highForce - setting false will make the force really low
|
|
230
|
+
*
|
|
231
|
+
* @param forceType
|
|
232
|
+
* @param pos
|
|
233
|
+
* @param component
|
|
234
|
+
* @param isDirectionRel
|
|
235
|
+
* @param isForceRel
|
|
236
|
+
* @param p8
|
|
184
237
|
*/
|
|
185
|
-
|
|
238
|
+
applyForceToCenterOfMass(forceType: number, pos: Vector3, component: number, isDirectionRel: boolean, isForceRel: boolean, p8: boolean): void;
|
|
186
239
|
/**
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
* @param flags
|
|
240
|
+
* Old name: _GET_ENTITY_CAN_BE_DAMAGED
|
|
241
|
+
*
|
|
190
242
|
* @returns
|
|
191
243
|
*/
|
|
192
|
-
|
|
244
|
+
getCanBeDamaged(): any;
|
|
193
245
|
/**
|
|
194
246
|
* @param p1
|
|
195
247
|
*/
|
|
@@ -243,92 +295,58 @@ export declare class Entity implements IHandle {
|
|
|
243
295
|
*/
|
|
244
296
|
getNearestParticipantToEntity(): Player | null;
|
|
245
297
|
/**
|
|
246
|
-
*
|
|
247
|
-
* {
|
|
248
|
-
* CARRIABLE_STATE_NONE,
|
|
249
|
-
* CARRIABLE_STATE_TRANSITIONING_TO_HOGTIED,
|
|
250
|
-
* CARRIABLE_STATE_CARRIABLE_INTRO,
|
|
251
|
-
* CARRIABLE_STATE_CARRIABLE,
|
|
252
|
-
* CARRIABLE_STATE_BEING_PICKED_UP_FROM_GROUND,
|
|
253
|
-
* CARRIABLE_STATE_CARRIED_BY_HUMAN,
|
|
254
|
-
* CARRIABLE_STATE_BEING_PLACED_ON_GROUND,
|
|
255
|
-
* CARRIABLE_STATE_CARRIED_BY_MOUNT,
|
|
256
|
-
* CARRIABLE_STATE_BEING_PLACED_ON_MOUNT,
|
|
257
|
-
* CARRIABLE_STATE_BEING_PICKED_UP_FROM_MOUNT,
|
|
258
|
-
* CARRIABLE_STATE_BEING_CUT_FREE,
|
|
259
|
-
* CARRIABLE_STATE_BEING_PLACED_ON_GROUND_ESCAPE,
|
|
260
|
-
* CARRIABLE_STATE_BEING_PLACED_IN_VEHICLE
|
|
261
|
-
* };
|
|
262
|
-
*
|
|
263
|
-
* @returns
|
|
298
|
+
* @param p1
|
|
264
299
|
*/
|
|
265
|
-
|
|
300
|
+
N_0xA48E4801DEBDF7E4(p1: boolean): void;
|
|
266
301
|
/**
|
|
267
|
-
* @param
|
|
302
|
+
* @param toggle
|
|
303
|
+
* @param keepPhysics
|
|
268
304
|
*/
|
|
269
|
-
|
|
305
|
+
setCompletelyDisableCollision(toggle: boolean, keepPhysics: boolean): void;
|
|
270
306
|
/**
|
|
271
|
-
* Params: p1 (probably animType) = 1, 0
|
|
272
|
-
*
|
|
273
307
|
* @param p1
|
|
274
|
-
* @returns
|
|
275
308
|
*/
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* @param enabled
|
|
279
|
-
*/
|
|
280
|
-
setLightsEnabled(enabled: boolean): void;
|
|
309
|
+
N_0xCDB682BB47C02F0A(p1: string | number): void;
|
|
281
310
|
/**
|
|
282
|
-
*
|
|
283
|
-
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
* @param offset
|
|
311
|
+
* @param volume
|
|
312
|
+
* @param p2
|
|
313
|
+
* @param p3
|
|
287
314
|
* @returns
|
|
288
315
|
*/
|
|
289
|
-
|
|
316
|
+
isInVolume(volume: number, p2: boolean, p3: number): boolean;
|
|
290
317
|
/**
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
* @param entity2
|
|
294
|
-
* @param xSize
|
|
295
|
-
* @param ySize
|
|
296
|
-
* @param zSize
|
|
297
|
-
* @param p5
|
|
298
|
-
* @param p6
|
|
299
|
-
* @param p7
|
|
300
|
-
* @returns
|
|
318
|
+
* @returns rightVector; forwardVector; upVector; position
|
|
301
319
|
*/
|
|
302
|
-
|
|
320
|
+
getMatrix(): [Vector3, Vector3, Vector3, Vector3];
|
|
303
321
|
/**
|
|
304
|
-
*
|
|
322
|
+
* Called if entity is in water and submerged level is larger than 1f. If CARRYING_FLAG_FORCE_ALLOW_WARP_TO_SAFE_GROUND_LOCATION is true, it gets disabled as well.
|
|
305
323
|
*/
|
|
306
|
-
|
|
324
|
+
N_0x371D179701D9C082(): void;
|
|
307
325
|
/**
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
* @param toggle
|
|
326
|
+
* @param p1
|
|
327
|
+
* @returns
|
|
311
328
|
*/
|
|
312
|
-
|
|
329
|
+
getMaxHealth(p1: boolean): number;
|
|
313
330
|
/**
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
* @returns
|
|
331
|
+
* @param animDict
|
|
332
|
+
* @param animName
|
|
333
|
+
* @param time
|
|
318
334
|
*/
|
|
319
|
-
|
|
335
|
+
setAnimCurrentTime(animDict: string | null, animName: string | null, time: number): void;
|
|
320
336
|
/**
|
|
321
|
-
*
|
|
322
|
-
*
|
|
337
|
+
* Gets the current coordinates for a specified entity.
|
|
338
|
+
* `entity` = The entity to get the coordinates from.
|
|
339
|
+
* `alive` = Unused by the game, potentially used by debug builds in order to assert whether or not an entity was alive. If entity is a ped and it's in a vehicle or on a mount the coords of that entity are returned. Set 'realCoords' to true when you need the true ped coords.
|
|
323
340
|
*
|
|
324
|
-
* @param
|
|
325
|
-
* @param
|
|
341
|
+
* @param alive
|
|
342
|
+
* @param realCoords
|
|
343
|
+
* @returns
|
|
326
344
|
*/
|
|
327
|
-
|
|
345
|
+
getCoords(alive?: boolean, realCoords?: boolean): Vector3;
|
|
328
346
|
/**
|
|
329
347
|
* @returns
|
|
330
348
|
*/
|
|
331
|
-
|
|
349
|
+
isAnObject(): boolean;
|
|
332
350
|
/**
|
|
333
351
|
* @returns
|
|
334
352
|
*/
|
|
@@ -343,7 +361,7 @@ export declare class Entity implements IHandle {
|
|
|
343
361
|
*
|
|
344
362
|
* @returns
|
|
345
363
|
*/
|
|
346
|
-
getCarriableFromEntity():
|
|
364
|
+
getCarriableFromEntity(): number;
|
|
347
365
|
/**
|
|
348
366
|
* @param toggle
|
|
349
367
|
* @param keepPhysics
|
|
@@ -393,235 +411,273 @@ export declare class Entity implements IHandle {
|
|
|
393
411
|
*/
|
|
394
412
|
getHealthFloat(): number;
|
|
395
413
|
/**
|
|
396
|
-
*
|
|
414
|
+
* LOD distance can be 0 to 0xFFFF (higher values will result in 0xFFFF) as it is actually stored as a 16-bit value (aka uint16_t).
|
|
415
|
+
*
|
|
416
|
+
* @param value
|
|
397
417
|
*/
|
|
398
|
-
|
|
418
|
+
setLodDist(value: number): void;
|
|
399
419
|
/**
|
|
400
|
-
*
|
|
401
|
-
*
|
|
402
|
-
* @returns
|
|
420
|
+
* @param toggle
|
|
403
421
|
*/
|
|
404
|
-
|
|
422
|
+
setDynamic(toggle: boolean): void;
|
|
405
423
|
/**
|
|
406
|
-
* @param
|
|
407
|
-
* @param xAxis
|
|
408
|
-
* @param yAxis
|
|
409
|
-
* @param zAxis
|
|
410
|
-
* @param clearArea
|
|
424
|
+
* @param radius
|
|
411
425
|
*/
|
|
412
|
-
|
|
426
|
+
setCustomPickupRadius(radius: number): void;
|
|
413
427
|
/**
|
|
414
|
-
* @param boneName
|
|
415
428
|
* @returns
|
|
416
429
|
*/
|
|
417
|
-
|
|
430
|
+
getPopulationType(): number;
|
|
418
431
|
/**
|
|
419
|
-
* @
|
|
432
|
+
* @returns
|
|
420
433
|
*/
|
|
421
|
-
|
|
434
|
+
isAVehicle(): boolean;
|
|
422
435
|
/**
|
|
423
|
-
* @param
|
|
436
|
+
* @param pos
|
|
437
|
+
* @param atTop
|
|
438
|
+
* @param inWorldCoords
|
|
439
|
+
* @returns
|
|
424
440
|
*/
|
|
425
|
-
|
|
441
|
+
getHeight(pos: Vector3, atTop: boolean, inWorldCoords: boolean): number;
|
|
426
442
|
/**
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
* @param type
|
|
443
|
+
* @param pos
|
|
444
|
+
* @returns
|
|
431
445
|
*/
|
|
432
|
-
|
|
446
|
+
getOffsetFromGivenWorldCoords(pos: Vector3): Vector3;
|
|
447
|
+
addTrackingTrails(): void;
|
|
433
448
|
/**
|
|
434
449
|
* @param toggle
|
|
435
450
|
*/
|
|
436
|
-
|
|
451
|
+
setCanClimbOnEntity(toggle: boolean): void;
|
|
437
452
|
/**
|
|
438
|
-
* @
|
|
453
|
+
* @returns minimum; maximum
|
|
454
|
+
*/
|
|
455
|
+
getWorldPositionOfDimensions(): [Vector3, Vector3];
|
|
456
|
+
/**
|
|
457
|
+
* @param p1
|
|
439
458
|
* @returns
|
|
440
459
|
*/
|
|
441
|
-
|
|
460
|
+
isUnderwater(p1: boolean): any;
|
|
442
461
|
/**
|
|
443
|
-
* @param
|
|
444
|
-
* @param
|
|
462
|
+
* @param animation
|
|
463
|
+
* @param animGroup
|
|
445
464
|
* @param p3
|
|
446
465
|
* @returns
|
|
447
466
|
*/
|
|
448
|
-
|
|
467
|
+
stopAnim(animation: string | null, animGroup: string | null, p3: number): any;
|
|
449
468
|
/**
|
|
450
469
|
* @returns
|
|
451
470
|
*/
|
|
452
|
-
|
|
471
|
+
hasCollidedWithAnything(): boolean;
|
|
453
472
|
/**
|
|
473
|
+
* Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
|
|
474
|
+
*
|
|
454
475
|
* @returns
|
|
455
476
|
*/
|
|
456
|
-
|
|
477
|
+
getVehicleIndexFromIndex(): Vehicle | null;
|
|
457
478
|
/**
|
|
458
|
-
* @
|
|
479
|
+
* @returns
|
|
459
480
|
*/
|
|
460
|
-
|
|
481
|
+
isVisible(): boolean;
|
|
461
482
|
/**
|
|
462
|
-
*
|
|
463
|
-
*
|
|
464
|
-
* @param
|
|
465
|
-
* @param boneIndex
|
|
466
|
-
* @param isDirectionRel
|
|
467
|
-
* @param ignoreUpVec
|
|
468
|
-
* @param isForceRel
|
|
469
|
-
* @param p12
|
|
470
|
-
* @param p13
|
|
483
|
+
* SET_ENTITY_LO*
|
|
484
|
+
*
|
|
485
|
+
* @param toggle
|
|
471
486
|
*/
|
|
472
|
-
|
|
487
|
+
N_0xFF9965C47FA404DA(toggle: boolean): void;
|
|
473
488
|
/**
|
|
489
|
+
* Valid indices: 0 - 3
|
|
490
|
+
* Index 1 always returns a `hogtied` config, doesn't matter the entity.
|
|
491
|
+
* It's for humans only and the ped must be resurrected first if it's dead.
|
|
492
|
+
*
|
|
493
|
+
* @param index
|
|
474
494
|
* @returns
|
|
475
495
|
*/
|
|
476
|
-
|
|
496
|
+
getOptimalCarryConfig(index: number): number;
|
|
497
|
+
setFadeIn(): void;
|
|
477
498
|
/**
|
|
478
|
-
* @param pos1
|
|
479
|
-
* @param pos2
|
|
480
|
-
* @param p7
|
|
481
|
-
* @param p8
|
|
482
|
-
* @param p9
|
|
483
499
|
* @returns
|
|
484
500
|
*/
|
|
485
|
-
|
|
501
|
+
hasBeenDamagedByAnyPed(): boolean;
|
|
486
502
|
/**
|
|
487
|
-
*
|
|
488
|
-
* https://github.com/femga/rdr3_discoveries/tree/master/boneNames
|
|
489
|
-
*
|
|
490
|
-
* @param boneIndex
|
|
503
|
+
* @param targetEntity
|
|
491
504
|
* @returns
|
|
492
505
|
*/
|
|
493
|
-
|
|
506
|
+
isTouchingEntity(targetEntity: Entity): boolean;
|
|
507
|
+
deleteCarriable(): void;
|
|
494
508
|
/**
|
|
495
|
-
*
|
|
509
|
+
* Returns a normalized value between 0.0f and 1.0f. You can get the actual anim time by multiplying this by GET_ANIM_DURATION
|
|
496
510
|
*
|
|
497
|
-
* @param animName
|
|
498
511
|
* @param animDict
|
|
499
|
-
* @param
|
|
500
|
-
* @param loop
|
|
501
|
-
* @param stayInAnim
|
|
502
|
-
* @param p6
|
|
503
|
-
* @param delta
|
|
504
|
-
* @param bitset
|
|
512
|
+
* @param animName
|
|
505
513
|
* @returns
|
|
506
514
|
*/
|
|
507
|
-
|
|
515
|
+
getAnimCurrentTime(animDict: string | null, animName: string | null): number;
|
|
508
516
|
/**
|
|
509
|
-
*
|
|
517
|
+
* @param entity2
|
|
518
|
+
* @param thisFrameOnly
|
|
519
|
+
*/
|
|
520
|
+
setNoCollisionEntity(entity2: Entity, thisFrameOnly: boolean): void;
|
|
521
|
+
/**
|
|
522
|
+
* Result is in meters per second (m/s)
|
|
510
523
|
*
|
|
511
|
-
* @returns
|
|
524
|
+
* @returns
|
|
512
525
|
*/
|
|
513
|
-
|
|
526
|
+
getSpeed(): number;
|
|
527
|
+
/**
|
|
528
|
+
* @param bOnlyDamagedWhenRunningScript
|
|
529
|
+
*/
|
|
530
|
+
setCanOnlyBeDamagedByScriptParticipants(bOnlyDamagedWhenRunningScript: boolean): void;
|
|
514
531
|
/**
|
|
515
|
-
* @param animDict
|
|
516
|
-
* @param animName
|
|
517
|
-
* @param p3
|
|
518
532
|
* @returns
|
|
519
533
|
*/
|
|
520
|
-
|
|
534
|
+
isTrackedVisible(): any;
|
|
521
535
|
/**
|
|
522
|
-
* @param
|
|
523
|
-
* @param
|
|
536
|
+
* @param p1
|
|
537
|
+
* @param collision
|
|
524
538
|
*/
|
|
525
|
-
|
|
539
|
+
detachEntity(p1: boolean, collision: boolean): void;
|
|
526
540
|
/**
|
|
527
541
|
* @returns
|
|
528
542
|
*/
|
|
529
|
-
|
|
543
|
+
isVisibleToScript(): boolean;
|
|
530
544
|
/**
|
|
531
|
-
* @param
|
|
532
|
-
* @param
|
|
533
|
-
* @
|
|
534
|
-
* @param yAxis
|
|
535
|
-
* @param zAxis
|
|
545
|
+
* @param entity2
|
|
546
|
+
* @param traceType
|
|
547
|
+
* @returns
|
|
536
548
|
*/
|
|
537
|
-
|
|
549
|
+
hasClearLosToEntity(entity2: Entity, traceType: number): boolean;
|
|
538
550
|
/**
|
|
539
|
-
*
|
|
551
|
+
* Used in Script Function GENERIC_ITEM_HAS_ANIM_COMPLETED
|
|
552
|
+
* *GET_ENTITY**
|
|
540
553
|
*
|
|
554
|
+
* @param animDict
|
|
555
|
+
* @param animClip
|
|
541
556
|
* @returns
|
|
542
557
|
*/
|
|
543
|
-
|
|
558
|
+
N_0x8E46E18AA828334F(animDict: string | null, animClip: string | null): number;
|
|
544
559
|
/**
|
|
545
|
-
*
|
|
560
|
+
* @param playerPedToIgnore
|
|
561
|
+
* @param flags
|
|
562
|
+
* @returns
|
|
563
|
+
*/
|
|
564
|
+
getNearestPlayerToEntity(playerPedToIgnore: Ped, flags: number): Player | null;
|
|
565
|
+
/**
|
|
566
|
+
* Gets the Y-component of the entity's forward vector.
|
|
546
567
|
*
|
|
547
|
-
* @
|
|
548
|
-
* @param p2
|
|
568
|
+
* @returns
|
|
549
569
|
*/
|
|
550
|
-
|
|
570
|
+
getForwardY(): number;
|
|
551
571
|
/**
|
|
552
|
-
*
|
|
572
|
+
* @param pitch
|
|
573
|
+
* @param roll
|
|
574
|
+
* @param yaw
|
|
575
|
+
* @param rotationOrder
|
|
576
|
+
* @param p5
|
|
577
|
+
*/
|
|
578
|
+
setRotation(pitch: number, roll: number, yaw: number, rotationOrder: number, p5: boolean): void;
|
|
579
|
+
/**
|
|
580
|
+
* @param p1
|
|
581
|
+
* @param relationshipGroup
|
|
582
|
+
*/
|
|
583
|
+
setOnlyDamagedByRelationshipGroup(p1: boolean, relationshipGroup: string | number): void;
|
|
584
|
+
/**
|
|
585
|
+
* https://github.com/femga/rdr3_discoveries/tree/master/AI/ENTITY_PROOFS
|
|
586
|
+
* BOOL p2: handles an additional special proofs flag, so it simply indicates whether it should be enabled or disabled, not sure what exactly it proofs the entity from though
|
|
553
587
|
*
|
|
588
|
+
* @param proofsBitset
|
|
589
|
+
* @param specialFlag
|
|
590
|
+
*/
|
|
591
|
+
setProofs(proofsBitset: number, specialFlag: boolean): void;
|
|
592
|
+
/**
|
|
554
593
|
* @returns
|
|
555
594
|
*/
|
|
556
|
-
|
|
595
|
+
hasCollisionLoadedAroundEntity(): boolean;
|
|
557
596
|
/**
|
|
558
|
-
*
|
|
597
|
+
* @returns
|
|
598
|
+
*/
|
|
599
|
+
getIsCarriablePelt(): any;
|
|
600
|
+
/**
|
|
601
|
+
* @param p1
|
|
602
|
+
* @returns
|
|
603
|
+
*/
|
|
604
|
+
getVelocity(p1: number): Vector3;
|
|
605
|
+
/**
|
|
606
|
+
* @param toggle
|
|
607
|
+
*/
|
|
608
|
+
setCanAutoVaultOnEntity(toggle: boolean): void;
|
|
609
|
+
/**
|
|
610
|
+
* Sets the loot table an entity will carry. Returns true if loot table has been successfully set. Returns false if entity is not a ped or object.
|
|
611
|
+
* https://github.com/femga/rdr3_discoveries/blob/master/AI/EVENTS/loot_rewards.lua
|
|
559
612
|
*
|
|
613
|
+
* @param lootTable
|
|
560
614
|
* @returns
|
|
561
615
|
*/
|
|
562
|
-
|
|
616
|
+
scriptOverrideLootTablePermanent(lootTable: string | number): any;
|
|
563
617
|
/**
|
|
618
|
+
* @returns argStruct
|
|
619
|
+
*/
|
|
620
|
+
getScript(): [number, number];
|
|
621
|
+
/**
|
|
622
|
+
* @param actionHash
|
|
564
623
|
* @returns
|
|
565
624
|
*/
|
|
566
|
-
|
|
625
|
+
hasAnimEventFired(actionHash: string | number): boolean;
|
|
567
626
|
/**
|
|
568
|
-
* @param
|
|
627
|
+
* @param p1
|
|
569
628
|
*/
|
|
570
|
-
|
|
629
|
+
N_0xEF259AA1E097E0AD(p1: any): void;
|
|
571
630
|
/**
|
|
631
|
+
* Getter for FREEZE_ENTITY_POSITION
|
|
632
|
+
*
|
|
572
633
|
* @returns
|
|
573
634
|
*/
|
|
574
|
-
|
|
635
|
+
isFrozen(): any;
|
|
575
636
|
/**
|
|
576
|
-
*
|
|
637
|
+
* Returns the entity that is looting a ped but only while the looting is active
|
|
577
638
|
*
|
|
578
|
-
* @
|
|
639
|
+
* @returns
|
|
579
640
|
*/
|
|
580
|
-
|
|
641
|
+
getLootingPed(): Ped | null;
|
|
581
642
|
/**
|
|
582
|
-
*
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
*
|
|
587
|
-
* fixedRot - if false it ignores entity vector
|
|
643
|
+
* @returns
|
|
644
|
+
*/
|
|
645
|
+
isWaitingForWorldCollision(): boolean;
|
|
646
|
+
/**
|
|
647
|
+
* Gets the X-component of the entity's forward vector.
|
|
588
648
|
*
|
|
589
|
-
* @
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
* @
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
* @
|
|
598
|
-
* @param fixedRot
|
|
599
|
-
* @param p15
|
|
600
|
-
* @param p16
|
|
649
|
+
* @returns
|
|
650
|
+
*/
|
|
651
|
+
getForwardX(): number;
|
|
652
|
+
/**
|
|
653
|
+
* @returns
|
|
654
|
+
*/
|
|
655
|
+
isAPed(): boolean;
|
|
656
|
+
/**
|
|
657
|
+
* @returns
|
|
601
658
|
*/
|
|
602
|
-
|
|
659
|
+
getPitch(): number;
|
|
603
660
|
/**
|
|
604
661
|
* @returns
|
|
605
662
|
*/
|
|
606
|
-
|
|
663
|
+
isStatic(): boolean;
|
|
607
664
|
/**
|
|
608
|
-
*
|
|
609
|
-
* p7/highForce - setting false will make the force really low
|
|
665
|
+
* Returns the model hash from the entity
|
|
610
666
|
*
|
|
611
|
-
* @
|
|
612
|
-
* @param pos
|
|
613
|
-
* @param component
|
|
614
|
-
* @param isDirectionRel
|
|
615
|
-
* @param isForceRel
|
|
616
|
-
* @param p8
|
|
667
|
+
* @returns
|
|
617
668
|
*/
|
|
618
|
-
|
|
669
|
+
getModel(): number;
|
|
619
670
|
/**
|
|
620
|
-
*
|
|
621
|
-
|
|
671
|
+
* Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
|
|
672
|
+
*/
|
|
673
|
+
deleteEntity(): void;
|
|
674
|
+
/**
|
|
675
|
+
* @param team
|
|
676
|
+
* @param playerPedToIgnore
|
|
677
|
+
* @param flags
|
|
622
678
|
* @returns
|
|
623
679
|
*/
|
|
624
|
-
|
|
680
|
+
getNearestPlayerToOnTeam(team: number, playerPedToIgnore: Ped, flags: number): Player | null;
|
|
625
681
|
/**
|
|
626
682
|
* Seems to return true if entity is burned / scorched
|
|
627
683
|
* *GET_ENTITY**
|
|
@@ -746,6 +802,93 @@ export declare class Entity implements IHandle {
|
|
|
746
802
|
* @returns
|
|
747
803
|
*/
|
|
748
804
|
getIsPredator(): any;
|
|
805
|
+
/**
|
|
806
|
+
* enum eCarriableState
|
|
807
|
+
* {
|
|
808
|
+
* CARRIABLE_STATE_NONE,
|
|
809
|
+
* CARRIABLE_STATE_TRANSITIONING_TO_HOGTIED,
|
|
810
|
+
* CARRIABLE_STATE_CARRIABLE_INTRO,
|
|
811
|
+
* CARRIABLE_STATE_CARRIABLE,
|
|
812
|
+
* CARRIABLE_STATE_BEING_PICKED_UP_FROM_GROUND,
|
|
813
|
+
* CARRIABLE_STATE_CARRIED_BY_HUMAN,
|
|
814
|
+
* CARRIABLE_STATE_BEING_PLACED_ON_GROUND,
|
|
815
|
+
* CARRIABLE_STATE_CARRIED_BY_MOUNT,
|
|
816
|
+
* CARRIABLE_STATE_BEING_PLACED_ON_MOUNT,
|
|
817
|
+
* CARRIABLE_STATE_BEING_PICKED_UP_FROM_MOUNT,
|
|
818
|
+
* CARRIABLE_STATE_BEING_CUT_FREE,
|
|
819
|
+
* CARRIABLE_STATE_BEING_PLACED_ON_GROUND_ESCAPE,
|
|
820
|
+
* CARRIABLE_STATE_BEING_PLACED_IN_VEHICLE
|
|
821
|
+
* };
|
|
822
|
+
*
|
|
823
|
+
* @returns
|
|
824
|
+
*/
|
|
825
|
+
getCarriableState(): number;
|
|
826
|
+
/**
|
|
827
|
+
* @param value
|
|
828
|
+
*/
|
|
829
|
+
setMaxHealth(value: number): void;
|
|
830
|
+
/**
|
|
831
|
+
* Params: p1 (probably animType) = 1, 0
|
|
832
|
+
*
|
|
833
|
+
* @param p1
|
|
834
|
+
* @returns
|
|
835
|
+
*/
|
|
836
|
+
isPlayingAnyAnim(p1: number): boolean;
|
|
837
|
+
/**
|
|
838
|
+
* @param enabled
|
|
839
|
+
*/
|
|
840
|
+
setLightsEnabled(enabled: boolean): void;
|
|
841
|
+
/**
|
|
842
|
+
* Offset values are relative to the entity. x = left/right
|
|
843
|
+
* y = forward/backward
|
|
844
|
+
* z = up/down
|
|
845
|
+
*
|
|
846
|
+
* @param offset
|
|
847
|
+
* @returns
|
|
848
|
+
*/
|
|
849
|
+
getOffsetFromInWorldCoords(offset: Vector3): Vector3;
|
|
850
|
+
/**
|
|
851
|
+
* Checks if entity1 is within the box defined by x/y/zSize of entity2. Last three parameters are almost always p5 = 0, p6 = 1, p7 = 0
|
|
852
|
+
*
|
|
853
|
+
* @param entity2
|
|
854
|
+
* @param xSize
|
|
855
|
+
* @param ySize
|
|
856
|
+
* @param zSize
|
|
857
|
+
* @param p5
|
|
858
|
+
* @param p6
|
|
859
|
+
* @param p7
|
|
860
|
+
* @returns
|
|
861
|
+
*/
|
|
862
|
+
isAtEntity(entity2: Entity, xSize: number, ySize: number, zSize: number, p5: boolean, p6: boolean, p7: number): boolean;
|
|
863
|
+
/**
|
|
864
|
+
* @param toggle
|
|
865
|
+
*/
|
|
866
|
+
setVisible(toggle: boolean): void;
|
|
867
|
+
/**
|
|
868
|
+
* Old name: _SET_ENTITY_CLEANUP_BY_ENGINE
|
|
869
|
+
*
|
|
870
|
+
* @param toggle
|
|
871
|
+
*/
|
|
872
|
+
setShouldFreezeWaitingOnCollision(toggle: boolean): void;
|
|
873
|
+
/**
|
|
874
|
+
* Note: this native was removed in 1232 but added back in 1311
|
|
875
|
+
* Old name: _GET_ENTITY_PROOFS
|
|
876
|
+
*
|
|
877
|
+
* @returns
|
|
878
|
+
*/
|
|
879
|
+
getProofs(): number;
|
|
880
|
+
/**
|
|
881
|
+
* skin - everything alpha except skin
|
|
882
|
+
* Set entity alpha level. Ranging from 0 to 255 but changes occur after every 20 percent (after every 51).
|
|
883
|
+
*
|
|
884
|
+
* @param alphaLevel
|
|
885
|
+
* @param skin
|
|
886
|
+
*/
|
|
887
|
+
setAlpha(alphaLevel: number, skin: boolean): void;
|
|
888
|
+
/**
|
|
889
|
+
* @returns
|
|
890
|
+
*/
|
|
891
|
+
getThreatTier(): number;
|
|
749
892
|
/**
|
|
750
893
|
* Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
|
|
751
894
|
*
|
|
@@ -802,59 +945,6 @@ export declare class Entity implements IHandle {
|
|
|
802
945
|
* @returns
|
|
803
946
|
*/
|
|
804
947
|
isAttachedToAnyVehicle(): boolean;
|
|
805
|
-
/**
|
|
806
|
-
* @param p1
|
|
807
|
-
*/
|
|
808
|
-
N_0xA48E4801DEBDF7E4(p1: boolean): void;
|
|
809
|
-
/**
|
|
810
|
-
* @param toggle
|
|
811
|
-
* @param keepPhysics
|
|
812
|
-
*/
|
|
813
|
-
setCompletelyDisableCollision(toggle: boolean, keepPhysics: boolean): void;
|
|
814
|
-
/**
|
|
815
|
-
* @param p1
|
|
816
|
-
*/
|
|
817
|
-
N_0xCDB682BB47C02F0A(p1: string | number): void;
|
|
818
|
-
/**
|
|
819
|
-
* @param volume
|
|
820
|
-
* @param p2
|
|
821
|
-
* @param p3
|
|
822
|
-
* @returns
|
|
823
|
-
*/
|
|
824
|
-
isInVolume(volume: number, p2: boolean, p3: number): boolean;
|
|
825
|
-
/**
|
|
826
|
-
* @returns rightVector; forwardVector; upVector; position
|
|
827
|
-
*/
|
|
828
|
-
getMatrix(): [Vector3, Vector3, Vector3, Vector3];
|
|
829
|
-
/**
|
|
830
|
-
* Called if entity is in water and submerged level is larger than 1f. If CARRYING_FLAG_FORCE_ALLOW_WARP_TO_SAFE_GROUND_LOCATION is true, it gets disabled as well.
|
|
831
|
-
*/
|
|
832
|
-
N_0x371D179701D9C082(): void;
|
|
833
|
-
/**
|
|
834
|
-
* @param p1
|
|
835
|
-
* @returns
|
|
836
|
-
*/
|
|
837
|
-
getMaxHealth(p1: boolean): number;
|
|
838
|
-
/**
|
|
839
|
-
* @param animDict
|
|
840
|
-
* @param animName
|
|
841
|
-
* @param time
|
|
842
|
-
*/
|
|
843
|
-
setAnimCurrentTime(animDict: string | null, animName: string | null, time: number): void;
|
|
844
|
-
/**
|
|
845
|
-
* Gets the current coordinates for a specified entity.
|
|
846
|
-
* `entity` = The entity to get the coordinates from.
|
|
847
|
-
* `alive` = Unused by the game, potentially used by debug builds in order to assert whether or not an entity was alive. If entity is a ped and it's in a vehicle or on a mount the coords of that entity are returned. Set 'realCoords' to true when you need the true ped coords.
|
|
848
|
-
*
|
|
849
|
-
* @param alive
|
|
850
|
-
* @param realCoords
|
|
851
|
-
* @returns
|
|
852
|
-
*/
|
|
853
|
-
getCoords(alive: boolean, realCoords: boolean): Vector3;
|
|
854
|
-
/**
|
|
855
|
-
* @returns
|
|
856
|
-
*/
|
|
857
|
-
isAnObject(): boolean;
|
|
858
948
|
/**
|
|
859
949
|
* Used in Script Function DUELING_DID_PLAYER_DISARM_OPPONENT
|
|
860
950
|
*
|
|
@@ -913,65 +1003,6 @@ export declare class Entity implements IHandle {
|
|
|
913
1003
|
* @returns
|
|
914
1004
|
*/
|
|
915
1005
|
isAtCoord(pos: Vector3, xSize: number, ySize: number, zSize: number, p7: boolean, p8: boolean, p9: number): boolean;
|
|
916
|
-
/**
|
|
917
|
-
* LOD distance can be 0 to 0xFFFF (higher values will result in 0xFFFF) as it is actually stored as a 16-bit value (aka uint16_t).
|
|
918
|
-
*
|
|
919
|
-
* @param value
|
|
920
|
-
*/
|
|
921
|
-
setLodDist(value: number): void;
|
|
922
|
-
/**
|
|
923
|
-
* @param toggle
|
|
924
|
-
*/
|
|
925
|
-
setDynamic(toggle: boolean): void;
|
|
926
|
-
/**
|
|
927
|
-
* @param radius
|
|
928
|
-
*/
|
|
929
|
-
setCustomPickupRadius(radius: number): void;
|
|
930
|
-
/**
|
|
931
|
-
* @returns
|
|
932
|
-
*/
|
|
933
|
-
getPopulationType(): number;
|
|
934
|
-
/**
|
|
935
|
-
* @returns
|
|
936
|
-
*/
|
|
937
|
-
isAVehicle(): boolean;
|
|
938
|
-
/**
|
|
939
|
-
* @param pos
|
|
940
|
-
* @param atTop
|
|
941
|
-
* @param inWorldCoords
|
|
942
|
-
* @returns
|
|
943
|
-
*/
|
|
944
|
-
getHeight(pos: Vector3, atTop: boolean, inWorldCoords: boolean): number;
|
|
945
|
-
/**
|
|
946
|
-
* @param pos
|
|
947
|
-
* @returns
|
|
948
|
-
*/
|
|
949
|
-
getOffsetFromGivenWorldCoords(pos: Vector3): Vector3;
|
|
950
|
-
addTrackingTrails(): void;
|
|
951
|
-
/**
|
|
952
|
-
* @param toggle
|
|
953
|
-
*/
|
|
954
|
-
setCanClimbOnEntity(toggle: boolean): void;
|
|
955
|
-
/**
|
|
956
|
-
* @returns minimum; maximum
|
|
957
|
-
*/
|
|
958
|
-
getWorldPositionOfDimensions(): [Vector3, Vector3];
|
|
959
|
-
/**
|
|
960
|
-
* @param p1
|
|
961
|
-
* @returns
|
|
962
|
-
*/
|
|
963
|
-
isUnderwater(p1: boolean): any;
|
|
964
|
-
/**
|
|
965
|
-
* @param animation
|
|
966
|
-
* @param animGroup
|
|
967
|
-
* @param p3
|
|
968
|
-
* @returns
|
|
969
|
-
*/
|
|
970
|
-
stopAnim(animation: string | null, animGroup: string | null, p3: number): any;
|
|
971
|
-
/**
|
|
972
|
-
* @returns
|
|
973
|
-
*/
|
|
974
|
-
hasCollidedWithAnything(): boolean;
|
|
975
1006
|
/**
|
|
976
1007
|
* @param entity2
|
|
977
1008
|
* @param p2
|
|
@@ -1067,35 +1098,5 @@ export declare class Entity implements IHandle {
|
|
|
1067
1098
|
* @returns
|
|
1068
1099
|
*/
|
|
1069
1100
|
isUpright(angle: number): boolean;
|
|
1070
|
-
/**
|
|
1071
|
-
* Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
|
|
1072
|
-
*
|
|
1073
|
-
* @returns
|
|
1074
|
-
*/
|
|
1075
|
-
getVehicleIndexFromIndex(): Vehicle | null;
|
|
1076
|
-
/**
|
|
1077
|
-
* @returns
|
|
1078
|
-
*/
|
|
1079
|
-
isVisible(): boolean;
|
|
1080
|
-
/**
|
|
1081
|
-
* SET_ENTITY_LO*
|
|
1082
|
-
*
|
|
1083
|
-
* @param toggle
|
|
1084
|
-
*/
|
|
1085
|
-
N_0xFF9965C47FA404DA(toggle: boolean): void;
|
|
1086
|
-
/**
|
|
1087
|
-
* Valid indices: 0 - 3
|
|
1088
|
-
* Index 1 always returns a `hogtied` config, doesn't matter the entity.
|
|
1089
|
-
* It's for humans only and the ped must be resurrected first if it's dead.
|
|
1090
|
-
*
|
|
1091
|
-
* @param index
|
|
1092
|
-
* @returns
|
|
1093
|
-
*/
|
|
1094
|
-
getOptimalCarryConfig(index: number): string | number;
|
|
1095
|
-
setFadeIn(): void;
|
|
1096
|
-
/**
|
|
1097
|
-
* @returns
|
|
1098
|
-
*/
|
|
1099
|
-
hasBeenDamagedByAnyPed(): boolean;
|
|
1100
1101
|
}
|
|
1101
1102
|
//# sourceMappingURL=Entity.d.ts.map
|