@citizenfx/server 2.0.12157-1 → 2.0.12160-1
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/natives_server.d.ts +7 -0
- package/package.json +1 -1
package/natives_server.d.ts
CHANGED
|
@@ -332,6 +332,7 @@ declare function CreateVehicleServerSetter(modelHash: string | number, _type: st
|
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
334
|
* Deletes the specified entity.
|
|
335
|
+
* **NOTE**: For trains this will only work if called on the train engine, it will not work on its carriages.
|
|
335
336
|
* @param entity The entity to delete.
|
|
336
337
|
*/
|
|
337
338
|
declare function DeleteEntity(entity: number): void;
|
|
@@ -353,6 +354,12 @@ declare function DeleteResourceKvp(key: string): void;
|
|
|
353
354
|
*/
|
|
354
355
|
declare function DeleteResourceKvpNoSync(key: string): void;
|
|
355
356
|
|
|
357
|
+
/**
|
|
358
|
+
* Deletes the specified `entity` and any carriage its attached to, or that is attached to it.
|
|
359
|
+
* @param entity The carriage to delete.
|
|
360
|
+
*/
|
|
361
|
+
declare function DeleteTrain(entity: number): void;
|
|
362
|
+
|
|
356
363
|
/**
|
|
357
364
|
* DOES_BOAT_SINK_WHEN_WRECKED
|
|
358
365
|
* @param vehicle The target vehicle.
|