pma-locals 1.0.4 → 1.0.6

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createPed, Model, AnimationFlags, IkControlFlags, createProp } from '@nativewrappers/redm';
1
+ import { createPed, Model, IkControlFlags, createProp } from '@nativewrappers/redm';
2
2
 
3
3
  // client/ped-handler.ts
4
4
  var pedConfigs = [];
@@ -38,6 +38,9 @@ async function spawnPed(config, key) {
38
38
  const ped = await createPed(new Model(config.modelName), config.coords, 0, false, true);
39
39
  if (!ped) return;
40
40
  SetRandomOutfitVariation(ped.Handle, true);
41
+ ped.IsPositionFrozen = true;
42
+ SetEntityInvincible(ped.Handle, true);
43
+ SetBlockingOfNonTemporaryEvents(ped.Handle, true);
41
44
  if (config.heading) {
42
45
  ped.Heading = config.heading;
43
46
  }
@@ -49,8 +52,8 @@ async function spawnPed(config, key) {
49
52
  8,
50
53
  -1,
51
54
  1,
52
- AnimationFlags.Looping,
53
- IkControlFlags.UpperBody
55
+ config.animation.flag,
56
+ IkControlFlags.BlockNonAnimSceneLooks
54
57
  );
55
58
  }
56
59
  let prop = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pma-locals",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "RedM ped spawning and management library with TypeScript support",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",