gtac-types 0.0.3 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtac-types",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "GTA Connected TypeScript type definitions & runtime utilities for GTA Vice City server scripting (SpiderMonkey JS)",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -744,6 +744,16 @@ declare var gta: {
744
744
  */
745
745
  createVehicle(model: number, position: Vec3): Vehicle | null;
746
746
 
747
+ /**
748
+ * Creates a vehicle at a Vec3 position with heading.
749
+ *
750
+ * @param model - Vehicle model ID.
751
+ * @param position - World position as a `Vec3`.
752
+ * @param rz - Heading in degrees.
753
+ * @returns The created `Vehicle`, or `null` on failure.
754
+ */
755
+ createVehicle(model: number, position: Vec3, rz: number): Vehicle | null;
756
+
747
757
  // -- Time --
748
758
 
749
759
  /**