@nativewrappers/fivem 0.0.13 → 0.0.14
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/client/Tasks.d.ts +3 -3
- package/client/Tasks.js +3 -3
- package/package.json +1 -1
package/client/Tasks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnimationFlags, DrivingStyle, FiringPattern, LeaveVehicleFlags, VehicleSeat } from './enums';
|
|
2
|
-
import {
|
|
2
|
+
import { Ped, Vehicle } from './models';
|
|
3
3
|
import { BaseEntity } from './models/BaseEntity';
|
|
4
4
|
import { TaskSequence } from './TaskSequence';
|
|
5
5
|
import { Vector3 } from './utils';
|
|
@@ -32,7 +32,7 @@ export declare class Tasks {
|
|
|
32
32
|
guardCurrentPosition(): void;
|
|
33
33
|
handsUp(duration: number): void;
|
|
34
34
|
landPlane(startPosition: Vector3, touchdownPosition: Vector3, plane?: Vehicle | null): void;
|
|
35
|
-
lookAt(targetOrPosition:
|
|
35
|
+
lookAt(targetOrPosition: BaseEntity | Vector3, duration?: number): void;
|
|
36
36
|
parachuteTo(position: Vector3): void;
|
|
37
37
|
parkVehicle(vehicle: Vehicle, position: Vector3, heading: number, radius?: number, keepEngineOn?: boolean): void;
|
|
38
38
|
performSequence(sequence: TaskSequence): void;
|
|
@@ -46,7 +46,7 @@ export declare class Tasks {
|
|
|
46
46
|
standStill(duration: number): void;
|
|
47
47
|
startScenario(name: string, position: Vector3, heading?: number, duration?: number, sittingScenario?: boolean, teleport?: boolean): void;
|
|
48
48
|
swapWeapon(): void;
|
|
49
|
-
turnTo(targetOrPosition:
|
|
49
|
+
turnTo(targetOrPosition: BaseEntity | Vector3, duration?: number): void;
|
|
50
50
|
useParachute(): void;
|
|
51
51
|
useMobilePhone(duration?: number): void;
|
|
52
52
|
putAwayParachute(): void;
|
package/client/Tasks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DrivingStyle, FiringPattern, VehicleSeat, } from './enums';
|
|
2
|
-
import {
|
|
2
|
+
import { Ped } from './models';
|
|
3
3
|
import { BaseEntity } from './models/BaseEntity';
|
|
4
4
|
import { Vector3 } from './utils';
|
|
5
5
|
import { LoadAnimDict } from './utils/Animations';
|
|
@@ -122,7 +122,7 @@ export class Tasks {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
lookAt(targetOrPosition, duration = -1) {
|
|
125
|
-
if (targetOrPosition instanceof
|
|
125
|
+
if (targetOrPosition instanceof BaseEntity)
|
|
126
126
|
TaskLookAtEntity(this.ped.Handle, targetOrPosition.Handle, duration, 0, 2);
|
|
127
127
|
else
|
|
128
128
|
TaskLookAtCoord(this.ped.Handle, targetOrPosition.x, targetOrPosition.y, targetOrPosition.z, duration, 0, 2);
|
|
@@ -177,7 +177,7 @@ export class Tasks {
|
|
|
177
177
|
TaskSwapWeapon(this.ped.Handle, false);
|
|
178
178
|
}
|
|
179
179
|
turnTo(targetOrPosition, duration = -1) {
|
|
180
|
-
if (targetOrPosition instanceof
|
|
180
|
+
if (targetOrPosition instanceof BaseEntity)
|
|
181
181
|
TaskTurnPedToFaceEntity(this.ped.Handle, targetOrPosition.Handle, duration);
|
|
182
182
|
else
|
|
183
183
|
TaskTurnPedToFaceCoord(this.ped.Handle, targetOrPosition.x, targetOrPosition.y, targetOrPosition.z, duration);
|