@nativewrappers/common 0.0.130 → 0.0.132

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.
Files changed (103) hide show
  1. package/index.d.ts +1 -52
  2. package/index.js +1 -52
  3. package/package.json +1 -1
  4. package/common-game/CommonGameConstants.d.ts +0 -7
  5. package/common-game/CommonGameConstants.js +0 -24
  6. package/common-game/CommonModel.d.ts +0 -99
  7. package/common-game/CommonModel.js +0 -172
  8. package/common-game/CommonTasks.d.ts +0 -44
  9. package/common-game/CommonTasks.js +0 -233
  10. package/common-game/cfx/StateBagChangeHandler.d.ts +0 -1
  11. package/common-game/cfx/StateBagChangeHandler.js +0 -0
  12. package/common-game/cfx/cfx.d.ts +0 -6
  13. package/common-game/cfx/cfx.js +0 -4
  14. package/common-game/common/Command.d.ts +0 -77
  15. package/common-game/common/Command.js +0 -152
  16. package/common-game/common/Convar.d.ts +0 -13
  17. package/common-game/common/Convar.js +0 -58
  18. package/common-game/common/GlobalData.d.ts +0 -12
  19. package/common-game/common/GlobalData.js +0 -20
  20. package/common-game/common/Kvp.d.ts +0 -69
  21. package/common-game/common/Kvp.js +0 -137
  22. package/common-game/common/Resource.d.ts +0 -14
  23. package/common-game/common/Resource.js +0 -54
  24. package/common-game/common/decors/ConVar.d.ts +0 -14
  25. package/common-game/common/decors/ConVar.js +0 -70
  26. package/common-game/common/decors/Events.d.ts +0 -66
  27. package/common-game/common/decors/Events.js +0 -163
  28. package/common-game/common/decors/Exports.d.ts +0 -1
  29. package/common-game/common/decors/Exports.js +0 -53
  30. package/common-game/common/decors/Permissions.d.ts +0 -3
  31. package/common-game/common/decors/Permissions.js +0 -49
  32. package/common-game/common/decors/Resources.d.ts +0 -8
  33. package/common-game/common/decors/Resources.js +0 -94
  34. package/common-game/common/decors/Ticks.d.ts +0 -9
  35. package/common-game/common/decors/Ticks.js +0 -32
  36. package/common-game/common/net/NetworkedMap.d.ts +0 -28
  37. package/common-game/common/net/NetworkedMap.js +0 -262
  38. package/common-game/common/types.d.ts +0 -5
  39. package/common-game/common/types.js +0 -0
  40. package/common-game/common/utils/ClassTypes.d.ts +0 -11
  41. package/common-game/common/utils/ClassTypes.js +0 -15
  42. package/common-game/common/utils/Color.d.ts +0 -14
  43. package/common-game/common/utils/Color.js +0 -33
  44. package/common-game/common/utils/Delay.d.ts +0 -1
  45. package/common-game/common/utils/Delay.js +0 -6
  46. package/common-game/common/utils/Maths.d.ts +0 -4
  47. package/common-game/common/utils/Maths.js +0 -18
  48. package/common-game/common/utils/Point.d.ts +0 -9
  49. package/common-game/common/utils/Point.js +0 -36
  50. package/common-game/common/utils/PointF.d.ts +0 -7
  51. package/common-game/common/utils/PointF.js +0 -18
  52. package/common-game/common/utils/Quaternion.d.ts +0 -10
  53. package/common-game/common/utils/Quaternion.js +0 -33
  54. package/common-game/common/utils/Vector.d.ts +0 -429
  55. package/common-game/common/utils/Vector.js +0 -589
  56. package/common-game/common/utils/cleanPlayerName.d.ts +0 -6
  57. package/common-game/common/utils/cleanPlayerName.js +0 -17
  58. package/common-game/common/utils/enumValues.d.ts +0 -12
  59. package/common-game/common/utils/enumValues.js +0 -20
  60. package/common-game/common/utils/getStringFromUInt8Array.d.ts +0 -8
  61. package/common-game/common/utils/getStringFromUInt8Array.js +0 -6
  62. package/common-game/common/utils/getUInt32FromUint8Array.d.ts +0 -8
  63. package/common-game/common/utils/getUInt32FromUint8Array.js +0 -6
  64. package/common-game/common/utils/randomInt.d.ts +0 -1
  65. package/common-game/common/utils/randomInt.js +0 -9
  66. package/common-game/definitions/index.d.js +0 -0
  67. package/common-game/definitions/redm.d.js +0 -0
  68. package/common-game/entities/CommonBaseEntity.d.ts +0 -116
  69. package/common-game/entities/CommonBaseEntity.js +0 -266
  70. package/common-game/entities/CommonBaseEntityBone.d.ts +0 -11
  71. package/common-game/entities/CommonBaseEntityBone.js +0 -32
  72. package/common-game/entities/CommonBaseEntityBoneCollection.d.ts +0 -9
  73. package/common-game/entities/CommonBaseEntityBoneCollection.js +0 -17
  74. package/common-game/entities/CommonEntityBone.d.ts +0 -5
  75. package/common-game/entities/CommonEntityBone.js +0 -14
  76. package/common-game/entities/CommonEntityBoneCollection.d.ts +0 -9
  77. package/common-game/entities/CommonEntityBoneCollection.js +0 -24
  78. package/common-game/entities/CommonEntityType.d.ts +0 -4
  79. package/common-game/entities/CommonEntityType.js +0 -0
  80. package/common-game/entities/CommonPed.d.ts +0 -16
  81. package/common-game/entities/CommonPed.js +0 -52
  82. package/common-game/entities/CommonPedBone.d.ts +0 -6
  83. package/common-game/entities/CommonPedBone.js +0 -17
  84. package/common-game/entities/CommonPedBoneCollection.d.ts +0 -10
  85. package/common-game/entities/CommonPedBoneCollection.js +0 -31
  86. package/common-game/entities/CommonPlayer.d.ts +0 -61
  87. package/common-game/entities/CommonPlayer.js +0 -156
  88. package/common-game/entities/CommonProp.d.ts +0 -15
  89. package/common-game/entities/CommonProp.js +0 -43
  90. package/common-game/entities/CommonVehicle.d.ts +0 -11
  91. package/common-game/entities/CommonVehicle.js +0 -36
  92. package/common-game/entities/GetEntityClassIdFromHandle.d.ts +0 -2
  93. package/common-game/entities/GetEntityClassIdFromHandle.js +0 -23
  94. package/common-game/entities/IHandle.d.ts +0 -6
  95. package/common-game/entities/IHandle.js +0 -20
  96. package/common-game/enums/VehicleSeat.d.ts +0 -13
  97. package/common-game/enums/VehicleSeat.js +0 -17
  98. package/common-game/index.d.ts +0 -50
  99. package/common-game/index.js +0 -50
  100. package/common-game/interfaces/Dimension.d.ts +0 -5
  101. package/common-game/interfaces/Dimension.js +0 -0
  102. package/common-game/utils/Animations.d.ts +0 -19
  103. package/common-game/utils/Animations.js +0 -43
package/index.d.ts CHANGED
@@ -23,55 +23,4 @@ export * from "./decors/Events";
23
23
  export * from "./decors/Exports";
24
24
  export * from "./decors/Permissions";
25
25
  export * from "./decors/Resources";
26
- export * from "./decors/Ticks";
27
- export * from "./common-game/CommonGameConstants";
28
- export * from "./common-game/CommonModel";
29
- export * from "./common-game/CommonTasks";
30
- export * from "./common-game/index";
31
- export * from "./common-game/utils/Animations";
32
- export * from "./common-game/interfaces/Dimension";
33
- export * from "./common-game/enums/VehicleSeat";
34
- export * from "./common-game/entities/CommonBaseEntity";
35
- export * from "./common-game/entities/CommonBaseEntityBone";
36
- export * from "./common-game/entities/CommonBaseEntityBoneCollection";
37
- export * from "./common-game/entities/CommonEntityBone";
38
- export * from "./common-game/entities/CommonEntityBoneCollection";
39
- export * from "./common-game/entities/CommonEntityType";
40
- export * from "./common-game/entities/CommonPed";
41
- export * from "./common-game/entities/CommonPedBone";
42
- export * from "./common-game/entities/CommonPedBoneCollection";
43
- export * from "./common-game/entities/CommonPlayer";
44
- export * from "./common-game/entities/CommonProp";
45
- export * from "./common-game/entities/CommonVehicle";
46
- export * from "./common-game/entities/GetEntityClassIdFromHandle";
47
- export * from "./common-game/entities/IHandle";
48
- export * from "./common-game/definitions/index.d";
49
- export * from "./common-game/definitions/redm.d";
50
- export * from "./common-game/common/Command";
51
- export * from "./common-game/common/Convar";
52
- export * from "./common-game/common/GlobalData";
53
- export * from "./common-game/common/Kvp";
54
- export * from "./common-game/common/Resource";
55
- export * from "./common-game/common/types";
56
- export * from "./common-game/common/utils/ClassTypes";
57
- export * from "./common-game/common/utils/Color";
58
- export * from "./common-game/common/utils/Delay";
59
- export * from "./common-game/common/utils/Maths";
60
- export * from "./common-game/common/utils/Point";
61
- export * from "./common-game/common/utils/PointF";
62
- export * from "./common-game/common/utils/Quaternion";
63
- export * from "./common-game/common/utils/Vector";
64
- export * from "./common-game/common/utils/cleanPlayerName";
65
- export * from "./common-game/common/utils/enumValues";
66
- export * from "./common-game/common/utils/getStringFromUInt8Array";
67
- export * from "./common-game/common/utils/getUInt32FromUint8Array";
68
- export * from "./common-game/common/utils/randomInt";
69
- export * from "./common-game/common/net/NetworkedMap";
70
- export * from "./common-game/common/decors/ConVar";
71
- export * from "./common-game/common/decors/Events";
72
- export * from "./common-game/common/decors/Exports";
73
- export * from "./common-game/common/decors/Permissions";
74
- export * from "./common-game/common/decors/Resources";
75
- export * from "./common-game/common/decors/Ticks";
76
- export * from "./common-game/cfx/StateBagChangeHandler";
77
- export * from "./common-game/cfx/cfx";
26
+ export * from "./decors/Ticks";
package/index.js CHANGED
@@ -23,55 +23,4 @@ export * from "./decors/Events";
23
23
  export * from "./decors/Exports";
24
24
  export * from "./decors/Permissions";
25
25
  export * from "./decors/Resources";
26
- export * from "./decors/Ticks";
27
- export * from "./common-game/CommonGameConstants";
28
- export * from "./common-game/CommonModel";
29
- export * from "./common-game/CommonTasks";
30
- export * from "./common-game/index";
31
- export * from "./common-game/utils/Animations";
32
- export * from "./common-game/interfaces/Dimension";
33
- export * from "./common-game/enums/VehicleSeat";
34
- export * from "./common-game/entities/CommonBaseEntity";
35
- export * from "./common-game/entities/CommonBaseEntityBone";
36
- export * from "./common-game/entities/CommonBaseEntityBoneCollection";
37
- export * from "./common-game/entities/CommonEntityBone";
38
- export * from "./common-game/entities/CommonEntityBoneCollection";
39
- export * from "./common-game/entities/CommonEntityType";
40
- export * from "./common-game/entities/CommonPed";
41
- export * from "./common-game/entities/CommonPedBone";
42
- export * from "./common-game/entities/CommonPedBoneCollection";
43
- export * from "./common-game/entities/CommonPlayer";
44
- export * from "./common-game/entities/CommonProp";
45
- export * from "./common-game/entities/CommonVehicle";
46
- export * from "./common-game/entities/GetEntityClassIdFromHandle";
47
- export * from "./common-game/entities/IHandle";
48
- export * from "./common-game/definitions/index.d";
49
- export * from "./common-game/definitions/redm.d";
50
- export * from "./common-game/common/Command";
51
- export * from "./common-game/common/Convar";
52
- export * from "./common-game/common/GlobalData";
53
- export * from "./common-game/common/Kvp";
54
- export * from "./common-game/common/Resource";
55
- export * from "./common-game/common/types";
56
- export * from "./common-game/common/utils/ClassTypes";
57
- export * from "./common-game/common/utils/Color";
58
- export * from "./common-game/common/utils/Delay";
59
- export * from "./common-game/common/utils/Maths";
60
- export * from "./common-game/common/utils/Point";
61
- export * from "./common-game/common/utils/PointF";
62
- export * from "./common-game/common/utils/Quaternion";
63
- export * from "./common-game/common/utils/Vector";
64
- export * from "./common-game/common/utils/cleanPlayerName";
65
- export * from "./common-game/common/utils/enumValues";
66
- export * from "./common-game/common/utils/getStringFromUInt8Array";
67
- export * from "./common-game/common/utils/getUInt32FromUint8Array";
68
- export * from "./common-game/common/utils/randomInt";
69
- export * from "./common-game/common/net/NetworkedMap";
70
- export * from "./common-game/common/decors/ConVar";
71
- export * from "./common-game/common/decors/Events";
72
- export * from "./common-game/common/decors/Exports";
73
- export * from "./common-game/common/decors/Permissions";
74
- export * from "./common-game/common/decors/Resources";
75
- export * from "./common-game/common/decors/Ticks";
76
- export * from "./common-game/cfx/StateBagChangeHandler";
77
- export * from "./common-game/cfx/cfx";
26
+ export * from "./decors/Ticks";
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "license": "MIT",
10
10
  "type": "module",
11
- "version": "0.0.130",
11
+ "version": "0.0.132",
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "https://github.com/nativewrappers/nativewrappers.git"
@@ -1,7 +0,0 @@
1
- import { CommonPlayer } from "./entities/CommonPlayer";
2
- export declare class CommonGameConstants {
3
- private static player;
4
- static readonly PlayerId: number;
5
- static readonly ServerId: number;
6
- static get Player(): CommonPlayer;
7
- }
@@ -1,24 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { CommonPlayer } from "./entities/CommonPlayer";
4
- class CommonGameConstants {
5
- static {
6
- __name(this, "CommonGameConstants");
7
- }
8
- // the actual player object that will get initialized on the first call to the `get Player()`
9
- static player = null;
10
- // The player id of the local client
11
- static PlayerId = PlayerId();
12
- // The server id of the local client.
13
- static ServerId = GetPlayerServerId(CommonGameConstants.PlayerId);
14
- // The player class of the local object
15
- static get Player() {
16
- if (CommonGameConstants.player === null) {
17
- CommonGameConstants.player = new CommonPlayer(CommonGameConstants.PlayerId);
18
- }
19
- return CommonGameConstants.player;
20
- }
21
- }
22
- export {
23
- CommonGameConstants
24
- };
@@ -1,99 +0,0 @@
1
- import type { Dimensions } from "./interfaces/Dimension";
2
- export declare class CommonModel implements Disposable {
3
- /**
4
- * Hash of this model.
5
- */
6
- protected hash: number;
7
- protected requestCount: number;
8
- /**
9
- * Returns the amount of times this model has been requested from the client, useful for finding situations where the client fails to release the ref
10
- */
11
- get RequestCount(): number;
12
- /**
13
- * Creates a model object based on the hash key or model string.
14
- *
15
- * @param hash A number or string of the model's hash. Example: "mp_m_freemode_01"
16
- */
17
- constructor(hash: number | string);
18
- [Symbol.dispose](): void;
19
- /**
20
- * Gets the hash of the model.
21
- *
22
- * @returns The hash key.
23
- */
24
- get Hash(): number;
25
- /**
26
- * Gets if the model is valid or not.
27
- *
28
- * @returns Whether this model is valid.
29
- */
30
- get IsValid(): boolean;
31
- /**
32
- * Gets if the model is in cd image or not.
33
- *
34
- * @returns Whether this model is in cd image.
35
- */
36
- get IsInCdImage(): boolean;
37
- /**
38
- * Gets if the model is loaded or not.
39
- *
40
- * @returns Whether this model is loaded.
41
- */
42
- get IsLoaded(): boolean;
43
- /**
44
- * Gets if the model collision is loaded or not.
45
- *
46
- * @returns Whether this model collision is loaded.
47
- */
48
- get IsCollisionLoaded(): boolean;
49
- /**
50
- * Gets if the model is a boat or not.
51
- *
52
- * @returns Whether this model is a boat.
53
- */
54
- get IsBoat(): boolean;
55
- /**
56
- * Gets if the model is a Ped or not.
57
- *
58
- * @returns Whether this model is a Ped.
59
- */
60
- get IsPed(): boolean;
61
- /**
62
- * Gets if the model is a prop or not.
63
- *
64
- * @returns Whether this model is a prop.
65
- */
66
- get IsProp(): boolean;
67
- /**
68
- * Gets if the model is a train or not.
69
- *
70
- * @returns Whether this model is a train.
71
- */
72
- get IsTrain(): boolean;
73
- /**
74
- * Gets if the model is a Vehicle or not.
75
- *
76
- * @returns Whether this model is a Vehicle.
77
- */
78
- get IsVehicle(): boolean;
79
- get IsWeapon(): boolean;
80
- /**
81
- * Gets the model dimensions.
82
- *
83
- * @returns This model min & max dimensions.
84
- */
85
- get Dimensions(): Dimensions;
86
- requestModel(): void;
87
- /**
88
- * Request and load the model with a specified timeout. Default timeout is 1000 (recommended).
89
- * This function will not automatically set the model as no longer needed when
90
- * done.
91
- *
92
- * @param timeoutMs Maximum allowed time for model to load.
93
- */
94
- request(timeoutMs?: number): Promise<boolean>;
95
- /**
96
- * Sets the model as no longer needed allowing the game engine to free memory.
97
- */
98
- markAsNoLongerNeeded(): void;
99
- }
@@ -1,172 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { Delay } from "./common/utils/Delay";
4
- import { Vector3 } from "./common/utils/Vector";
5
- class CommonModel {
6
- static {
7
- __name(this, "CommonModel");
8
- }
9
- /**
10
- * Hash of this model.
11
- */
12
- hash;
13
- requestCount = 0;
14
- /**
15
- * Returns the amount of times this model has been requested from the client, useful for finding situations where the client fails to release the ref
16
- */
17
- get RequestCount() {
18
- return this.requestCount;
19
- }
20
- /**
21
- * Creates a model object based on the hash key or model string.
22
- *
23
- * @param hash A number or string of the model's hash. Example: "mp_m_freemode_01"
24
- */
25
- constructor(hash) {
26
- if (typeof hash === "string") {
27
- this.hash = GetHashKey(hash);
28
- } else {
29
- this.hash = hash;
30
- }
31
- }
32
- [Symbol.dispose]() {
33
- if (this.requestCount > 0) {
34
- this.markAsNoLongerNeeded();
35
- }
36
- }
37
- /**
38
- * Gets the hash of the model.
39
- *
40
- * @returns The hash key.
41
- */
42
- get Hash() {
43
- return this.hash;
44
- }
45
- /**
46
- * Gets if the model is valid or not.
47
- *
48
- * @returns Whether this model is valid.
49
- */
50
- get IsValid() {
51
- return IsModelValid(this.hash);
52
- }
53
- /**
54
- * Gets if the model is in cd image or not.
55
- *
56
- * @returns Whether this model is in cd image.
57
- */
58
- get IsInCdImage() {
59
- return IsModelInCdimage(this.hash);
60
- }
61
- /**
62
- * Gets if the model is loaded or not.
63
- *
64
- * @returns Whether this model is loaded.
65
- */
66
- get IsLoaded() {
67
- if (this.IsWeapon) {
68
- return Citizen.invokeNative("0xFF07CF465F48B830", this.hash);
69
- }
70
- return HasModelLoaded(this.hash);
71
- }
72
- /**
73
- * Gets if the model collision is loaded or not.
74
- *
75
- * @returns Whether this model collision is loaded.
76
- */
77
- get IsCollisionLoaded() {
78
- return HasCollisionForModelLoaded(this.hash);
79
- }
80
- /**
81
- * Gets if the model is a boat or not.
82
- *
83
- * @returns Whether this model is a boat.
84
- */
85
- get IsBoat() {
86
- return IsThisModelABoat(this.hash);
87
- }
88
- /**
89
- * Gets if the model is a Ped or not.
90
- *
91
- * @returns Whether this model is a Ped.
92
- */
93
- get IsPed() {
94
- return IsModelAPed(this.hash);
95
- }
96
- /**
97
- * Gets if the model is a prop or not.
98
- *
99
- * @returns Whether this model is a prop.
100
- */
101
- get IsProp() {
102
- return this.IsValid && !this.IsPed && !this.IsVehicle && !this.IsWeapon;
103
- }
104
- /**
105
- * Gets if the model is a train or not.
106
- *
107
- * @returns Whether this model is a train.
108
- */
109
- get IsTrain() {
110
- return IsThisModelATrain(this.hash);
111
- }
112
- /**
113
- * Gets if the model is a Vehicle or not.
114
- *
115
- * @returns Whether this model is a Vehicle.
116
- */
117
- get IsVehicle() {
118
- return IsModelAVehicle(this.hash);
119
- }
120
- get IsWeapon() {
121
- return IsWeaponValid(this.hash);
122
- }
123
- /**
124
- * Gets the model dimensions.
125
- *
126
- * @returns This model min & max dimensions.
127
- */
128
- get Dimensions() {
129
- const [minArray, maxArray] = GetModelDimensions(this.hash);
130
- const min = Vector3.fromArray(minArray);
131
- const max = Vector3.fromArray(maxArray);
132
- return { min, max };
133
- }
134
- // TODO: Metaped stuff too at some point
135
- requestModel() {
136
- RequestModel(this.hash, false);
137
- this.requestCount++;
138
- }
139
- /**
140
- * Request and load the model with a specified timeout. Default timeout is 1000 (recommended).
141
- * This function will not automatically set the model as no longer needed when
142
- * done.
143
- *
144
- * @param timeoutMs Maximum allowed time for model to load.
145
- */
146
- async request(timeoutMs = 1e3) {
147
- if (!this.IsInCdImage && !this.IsValid && !this.IsWeapon) {
148
- return false;
149
- }
150
- if (this.IsLoaded) {
151
- return true;
152
- }
153
- this.requestModel();
154
- const timeout = GetGameTimer() + timeoutMs;
155
- while (!this.IsLoaded && GetGameTimer() < timeout) {
156
- await Delay(0);
157
- }
158
- if (!this.IsLoaded) {
159
- this.markAsNoLongerNeeded();
160
- }
161
- return this.IsLoaded;
162
- }
163
- /**
164
- * Sets the model as no longer needed allowing the game engine to free memory.
165
- */
166
- markAsNoLongerNeeded() {
167
- SetModelAsNoLongerNeeded(this.hash);
168
- }
169
- }
170
- export {
171
- CommonModel
172
- };
@@ -1,44 +0,0 @@
1
- import { Vector3 } from "./common/utils/Vector";
2
- import { CommonBaseEntity } from "./entities/CommonBaseEntity";
3
- import { CommonPed } from "./entities/CommonPed";
4
- import type { CommonVehicle } from "./entities/CommonVehicle";
5
- import { VehicleSeat } from "./enums/VehicleSeat";
6
- import { IHandle } from "./entities/IHandle";
7
- export declare class CommonTasks {
8
- protected ped: IHandle;
9
- constructor(ped: IHandle | null);
10
- achieveHeading(heading: number, timeout?: number): void;
11
- blockTemporaryEvents(block?: boolean): void;
12
- aimAt(target: CommonBaseEntity | Vector3, duration: number): void;
13
- arrest(ped: CommonPed): void;
14
- jump(): void;
15
- climb(): void;
16
- cruiseWithVehicle(vehicle: CommonVehicle, speed: number, drivingStyle?: number): void;
17
- enterAnyVehicle(seat?: VehicleSeat, timeout?: number, speed?: number, flag?: number): void;
18
- static everyoneLeaveVehicle(vehicle: CommonVehicle): void;
19
- fightAgainst(target: CommonPed, duration?: number): void;
20
- fightAgainstHatedTargets(radius: number, duration?: number): void;
21
- fleeFrom(pedOrPosition: CommonPed | Vector3, distance?: number, duration?: number, fleeType?: number, fleeSpeed?: number, fleeFrom?: IHandle): void;
22
- goTo(position: Vector3, ignorePaths?: boolean, timeout?: number, speed?: number, targetHeading?: number, distanceToSlide?: number, flags?: number): void;
23
- goToEntity(target: CommonBaseEntity, offset?: Vector3, timeout?: number): void;
24
- guardCurrentPosition(): void;
25
- handsUp(duration: number): void;
26
- lookAt(targetOrPosition: CommonBaseEntity | Vector3, duration?: number): void;
27
- playAnimation(animDict: string, animName: string, blendInSpeed: number, blendOutSpeed: number, duration: number, playbackRate: number, animFlags: number, ikFlags?: number): Promise<void>;
28
- reloadWeapon(): void;
29
- shootAt(targetOrPosition: IHandle | Vector3, duration?: number, pattern?: number, affectCockedState?: boolean): void;
30
- shuffleToNextVehicleSeat(vehicle: CommonVehicle): void;
31
- slideTo(position: Vector3, heading: number, duration?: number): void;
32
- standStill(duration: number): void;
33
- vehicleShootAtPed(target: CommonPed): void;
34
- wait(duration: number): void;
35
- wanderAround(position?: Vector3, radius?: number): void;
36
- warpIntoVehicle(vehicle: CommonVehicle, seat: VehicleSeat): void;
37
- warpOutOfVehicle(vehicle: CommonVehicle, flags: number): void;
38
- isPlayingAnim(dict: string, anim: string, taskFlag?: number): boolean;
39
- clearAll(): void;
40
- clearAllImmediately(): void;
41
- clearLookAt(): void;
42
- clearSecondary(): void;
43
- clearAnimation(animDict: string, animName: string): void;
44
- }