lenix 1.7.2 → 1.7.3

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/client/client.ts CHANGED
@@ -96,7 +96,7 @@ export const client: {
96
96
  ) => {
97
97
  SetEntityCoords(entity, x, y, z, alive, deadDisable, ragdol, clearArea)
98
98
  SetEntityHeading(entity, h ?? client.entity.coords()[3])
99
- }
99
+ },
100
100
  },
101
101
  player: {
102
102
  /**
package/client/nearest.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // deno-lint-ignore-file no-undef
2
2
  import type { Vec3 } from '../shared/types.ts'
3
- import { getEntity } from './entity.ts'
3
+ import { client } from './client.ts'
4
4
 
5
5
  /**
6
6
  * Finds the nearest coordinates from a list.
@@ -52,7 +52,7 @@ const player = (
52
52
  // deno-lint-ignore no-boolean-literal-for-arguments
53
53
  const vehicle = GetVehiclePedIsIn(playerPed, false)
54
54
  const playerCoords: Vec3 = vehicle === 0
55
- ? getEntity.coords(true, playerPed)
55
+ ? client.entity.coords(true, playerPed)
56
56
  : GetWorldPositionOfEntityBone(playerPed, 0) as Vec3
57
57
 
58
58
  const distance = Vdist(
@@ -86,14 +86,14 @@ const player = (
86
86
  * Finds the nearest vehicle around an entity.
87
87
  */
88
88
  const vehicle = (entity: number, radialSpace: number): number | undefined => {
89
- const coords: Vec3 = getEntity.coords(true, entity)
89
+ const coords: Vec3 = client.entity.coords(true, entity)
90
90
  const vehicles = GetGamePool('CVehicle') as number[]
91
91
 
92
92
  let closest: number | undefined
93
93
  let closestDistance = radialSpace
94
94
 
95
95
  for (const vehicle of vehicles) {
96
- const vehCoords: Vec3 = getEntity.coords(true, vehicle)
96
+ const vehCoords: Vec3 = client.entity.coords(true, vehicle)
97
97
  const x = coords[0] - vehCoords[0]
98
98
  const y = coords[1] - vehCoords[1]
99
99
  const z = coords[2] - vehCoords[2]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lenix",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Typed FiveM utilities for client, server, shared, and NUI scripts",
5
5
  "author": "Lenix",
6
6
  "license": "MIT",