@nativewrappers/fivem 0.0.72 → 0.0.73
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/README.md +45 -45
- package/World.d.ts +3 -11
- package/common/utils/PointF.d.ts +0 -5
- package/index.js +609 -1951
- package/models/Ped.d.ts +2 -13
- package/package.json +1 -1
- package/utils/LiteEvent.d.ts +2 -4
- package/utils/PointF.d.ts +0 -5
- package/utils/String.d.ts +1 -1
- package/utils/index.d.ts +1 -1
package/README.md
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
<h1 align="center">Monorepo for a FiveM server/client wrapper</h1>
|
|
2
|
-
|
|
3
|
-
<p align="center">
|
|
4
|
-
<i>🔥 A Javascript/Typescript package for FiveM resource development 🎮</i>
|
|
5
|
-
<br>
|
|
6
|
-
<small>This project is in no way affiliated with FiveM or the Cfx.re Collective.</small>
|
|
7
|
-
</br></br>
|
|
8
|
-
<a href="https://github.com/nativewrappers/nativewrappers/blob/master/LICENSE">
|
|
9
|
-
<img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat" alt="License: MIT">
|
|
10
|
-
</a>
|
|
11
|
-
<a href="https://www.npmjs.com/package/@nativewrappers/fivem">
|
|
12
|
-
<img src="https://img.shields.io/npm/v/@nativewrappers/fivem?style=flat" alt="npm version">
|
|
13
|
-
</a>
|
|
14
|
-
<a href="https://www.npmjs.com/package/@nativewrappers/fivem">
|
|
15
|
-
<img src="https://img.shields.io/npm/dm/@nativewrappers/fivem?style=flat">
|
|
16
|
-
</a>
|
|
17
|
-
<a href="https://github.com/nativewrappers/nativewrappers/actions/workflows/config.yml">
|
|
18
|
-
<img src="https://github.com/nativewrappers/nativewrappers/actions/workflows/config.yml/badge.svg" alt="Workflow Status">
|
|
19
|
-
</a>
|
|
20
|
-
<a href="https://github.com/nativewrappers/nativewrappers/commits/master">
|
|
21
|
-
<img src="https://img.shields.io/github/last-commit/nativewrappers/fivem.svg?style=flat" alt="Last commit">
|
|
22
|
-
</a>
|
|
23
|
-
</p>
|
|
24
|
-
|
|
25
|
-
<h3 align="center">This project is currently iterating rapidly, there will be breaking changes.</h3>
|
|
26
|
-
|
|
27
|
-
<p align="center">
|
|
28
|
-
<h2 align="center"><a href="https://github.com/nativewrappers/nativewrappers/tree/main/docs">Documentation</a></h2>
|
|
29
|
-
<!-- <a href="https://forum.fivem.net/t/fivem-js-v1-3-2-javascript-typescript-wrapper-now-with-menu-class-nativeui/268640">Forum</a> -->
|
|
30
|
-
</p>
|
|
31
|
-
|
|
32
|
-
## Features
|
|
33
|
-
|
|
34
|
-
- No runtime dependencies
|
|
35
|
-
- Entity management through class objects (i.e. `Vehicle` and `Ped` entities)
|
|
36
|
-
- Server and Client side variants on wrapper
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
## Download & Install
|
|
40
|
-
```
|
|
41
|
-
pnpm add @nativewrappers/redm # for redm,
|
|
42
|
-
pnpm add @nativewrappers/fivem # for fivem
|
|
43
|
-
pnpm add @nativewrappers/common # for any, should be game agnostic, provides Vector3, decors, kvps, helper functions, etc
|
|
44
|
-
pnpm add @nativewrappers/server # for server
|
|
45
|
-
```
|
|
1
|
+
<h1 align="center">Monorepo for a FiveM server/client wrapper</h1>
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<i>🔥 A Javascript/Typescript package for FiveM resource development 🎮</i>
|
|
5
|
+
<br>
|
|
6
|
+
<small>This project is in no way affiliated with FiveM or the Cfx.re Collective.</small>
|
|
7
|
+
</br></br>
|
|
8
|
+
<a href="https://github.com/nativewrappers/nativewrappers/blob/master/LICENSE">
|
|
9
|
+
<img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat" alt="License: MIT">
|
|
10
|
+
</a>
|
|
11
|
+
<a href="https://www.npmjs.com/package/@nativewrappers/fivem">
|
|
12
|
+
<img src="https://img.shields.io/npm/v/@nativewrappers/fivem?style=flat" alt="npm version">
|
|
13
|
+
</a>
|
|
14
|
+
<a href="https://www.npmjs.com/package/@nativewrappers/fivem">
|
|
15
|
+
<img src="https://img.shields.io/npm/dm/@nativewrappers/fivem?style=flat">
|
|
16
|
+
</a>
|
|
17
|
+
<a href="https://github.com/nativewrappers/nativewrappers/actions/workflows/config.yml">
|
|
18
|
+
<img src="https://github.com/nativewrappers/nativewrappers/actions/workflows/config.yml/badge.svg" alt="Workflow Status">
|
|
19
|
+
</a>
|
|
20
|
+
<a href="https://github.com/nativewrappers/nativewrappers/commits/master">
|
|
21
|
+
<img src="https://img.shields.io/github/last-commit/nativewrappers/fivem.svg?style=flat" alt="Last commit">
|
|
22
|
+
</a>
|
|
23
|
+
</p>
|
|
24
|
+
|
|
25
|
+
<h3 align="center">This project is currently iterating rapidly, there will be breaking changes.</h3>
|
|
26
|
+
|
|
27
|
+
<p align="center">
|
|
28
|
+
<h2 align="center"><a href="https://github.com/nativewrappers/nativewrappers/tree/main/docs">Documentation</a></h2>
|
|
29
|
+
<!-- <a href="https://forum.fivem.net/t/fivem-js-v1-3-2-javascript-typescript-wrapper-now-with-menu-class-nativeui/268640">Forum</a> -->
|
|
30
|
+
</p>
|
|
31
|
+
|
|
32
|
+
## Features
|
|
33
|
+
|
|
34
|
+
- No runtime dependencies
|
|
35
|
+
- Entity management through class objects (i.e. `Vehicle` and `Ped` entities)
|
|
36
|
+
- Server and Client side variants on wrapper
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## Download & Install
|
|
40
|
+
```
|
|
41
|
+
pnpm add @nativewrappers/redm # for redm,
|
|
42
|
+
pnpm add @nativewrappers/fivem # for fivem
|
|
43
|
+
pnpm add @nativewrappers/common # for any, should be game agnostic, provides Vector3, decors, kvps, helper functions, etc
|
|
44
|
+
pnpm add @nativewrappers/server # for server
|
|
45
|
+
```
|
package/World.d.ts
CHANGED
|
@@ -109,19 +109,11 @@ export declare abstract class World {
|
|
|
109
109
|
/**
|
|
110
110
|
* Doesn't work
|
|
111
111
|
*/
|
|
112
|
-
static get WeatherTransition(): [
|
|
113
|
-
string | Weather,
|
|
114
|
-
string | Weather,
|
|
115
|
-
number
|
|
116
|
-
];
|
|
112
|
+
static get WeatherTransition(): [string | Weather, string | Weather, number];
|
|
117
113
|
/**
|
|
118
114
|
* Doesn't work
|
|
119
115
|
*/
|
|
120
|
-
static set WeatherTransition(transition: [
|
|
121
|
-
string | Weather,
|
|
122
|
-
string | Weather,
|
|
123
|
-
number
|
|
124
|
-
]);
|
|
116
|
+
static set WeatherTransition(transition: [string | Weather, string | Weather, number]);
|
|
125
117
|
/**
|
|
126
118
|
* Transition to different weather type within a certain time.
|
|
127
119
|
*
|
|
@@ -171,7 +163,7 @@ export declare abstract class World {
|
|
|
171
163
|
* @param fieldOfView Field of view angle of camera.
|
|
172
164
|
* @returns Camera object.
|
|
173
165
|
*/
|
|
174
|
-
static createCameraWithParams(cameraType
|
|
166
|
+
static createCameraWithParams(cameraType?: CameraTypes, position?: Vector3, rotation?: Vector3, fieldOfView?: number): Camera;
|
|
175
167
|
/**
|
|
176
168
|
* Create a ped at a desired location.
|
|
177
169
|
*
|