@nativewrappers/redm 0.0.170 → 0.0.172
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/Model.d.ts +1 -0
- package/Model.js +3 -0
- package/common/Command.js +1 -1
- package/package.json +1 -1
- package/world/createDraftVehicle.js +1 -1
- package/world/createVehicle.js +1 -1
package/Model.d.ts
CHANGED
package/Model.js
CHANGED
package/common/Command.js
CHANGED
|
@@ -118,7 +118,7 @@ class Command {
|
|
|
118
118
|
for (const name2 of names) {
|
|
119
119
|
const commandObj = { ...this, name: `/${name2}` };
|
|
120
120
|
if (GlobalData.IS_CLIENT) {
|
|
121
|
-
emit("chat:
|
|
121
|
+
emit("chat:addSuggestions", commandObj);
|
|
122
122
|
} else {
|
|
123
123
|
commands.push(commandObj);
|
|
124
124
|
emitNet("chat:addSuggestions", -1, commandObj);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
|
|
|
3
3
|
import { Vehicle } from "../entities/Vehicle";
|
|
4
4
|
import { _N } from "../utils/Native";
|
|
5
5
|
async function createDraftVehicle(model, spawnPos, heading, isNetwork = false, bScriptHostVeh = true, bDontAutoCreateDraftAnimals = true, draftAnimalPopGroup = 0, p9 = true) {
|
|
6
|
-
if (!model.
|
|
6
|
+
if (!model.IsVehicle || !model.request(1e3)) {
|
|
7
7
|
return null;
|
|
8
8
|
}
|
|
9
9
|
const draftVehHandle = _N(
|
package/world/createVehicle.js
CHANGED
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
3
|
import { Vehicle } from "../entities/Vehicle";
|
|
4
4
|
async function createVehicle(model, spawnPos, heading, isNetwork = false, bScriptHostVeh = true, bDontAutoCreateDraftAnimals = true, p8 = true) {
|
|
5
|
-
if (!model.
|
|
5
|
+
if (!model.IsAnyVehicle || !model.request(1e3)) {
|
|
6
6
|
return null;
|
|
7
7
|
}
|
|
8
8
|
const pedHandle = CreateVehicle(
|