Skip to content

Commit 1df30b7

Browse files
committed
Tests fixes
1 parent ed25d6f commit 1df30b7

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

client/oop/Marker.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class Marker extends Element {
155155
* @return returns three floats if a target is set, or false in the first variable and nil in the
156156
* two others if the marker is invalid or no target is set.
157157
*/
158-
getTarget(): LuaMultiReturn<[number, number, number]>;
158+
getTarget(): Vector3;
159159

160160
/**
161161
* This function returns a markers type.
@@ -214,7 +214,7 @@ export class Marker extends Element {
214214
* @param z The z axis of the coordinate to target the marker at
215215
* @return returns true if target was set, false otherwise.
216216
*/
217-
setTarget(x: number, y: number, z: number): boolean;
217+
setTarget(vectorized: Vector3): boolean;
218218

219219
/**
220220
* This function changes a markers type. The type controls how the marker is displayed in

server/oop/Marker.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class Marker extends Element {
142142
* @return returns three floats if a target is set, or false in the first variable and nil in the
143143
* two others if the marker is invalid or no target is set.
144144
*/
145-
getTarget(): LuaMultiReturn<[number, number, number]>;
145+
getTarget(): Vector3;
146146

147147
/**
148148
* This function returns a markers type.
@@ -201,7 +201,7 @@ export class Marker extends Element {
201201
* @param z The z axis of the coordinate to target the marker at
202202
* @return returns true if target was set, false otherwise.
203203
*/
204-
setTarget(x: number, y: number, z: number): boolean;
204+
setTarget(vectorized: Vector3): boolean;
205205

206206
/**
207207
* This function changes a markers type. The type controls how the marker is displayed in

tests/general/events/custom/client.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import {
1010
const startMarker = new mtasa.Marker(0, 0, 10, 'checkpoint', 10);
1111
const stopMarker = new mtasa.Marker(100, 100, 10, 'checkpoint', 10);
1212

13-
startMarker.setTarget(
14-
...(startMarker.getPosition() as [number, number, number]),
15-
);
13+
startMarker.setTarget(startMarker.getPosition());
1614

1715
mtasa.addEventHandler<mtasa.Event.OnClientMarkerHit>(
1816
mtasa.EventNames.OnClientMarkerHit,

0 commit comments

Comments
 (0)