Commit Graph

7928 Commits

Author SHA1 Message Date
ASTROWwwW 409c2ccc63 refactor(esx_lib): move the player-state cache into the lib
Adds a generic xLib.cache (ped, vehicle, seat, weapon, coords) modelled on
ox_lib cache and framework agnostic, and rewires es_extended to source ped and
weapon from it which removes the per-frame ped poll. The vehicle enter/exit
state machine and every esx: event are kept unchanged through a thin glue.
2026-06-24 18:39:07 +02:00
Astrxw 6acaedde1f refactor(esx_lib/game): preserve original networked guard in spawnVehicle move 2026-06-17 15:45:53 +02:00
ASTROWwwW 88a883973a chore(esx_lib/callback): gate callback ownership logs behind xLib:debug 2026-06-16 21:03:41 +02:00
ASTROWwwW c32138eedd feat(esx_lib/onesync): move onesync query helpers to xLib
Moved getPlayersInArea / getClosestPlayer / getPedsInArea / getObjectsInArea /
getVehiclesInArea / getClosestPed / getClosestObject / getClosestVehicle to
xLib; es_extended re-exposes them through server compat shims.

Flagged: getNearbyPlayers iterates ESX.Players (es_extended server state),
which is not portable across the lib boundary - the lib relies on that global
being present at call time.
2026-06-16 21:03:41 +02:00
ASTROWwwW 700b7a646b feat(esx_lib/game): move game spawn/pool/closest/area and vehicle properties to xLib
Integrated fix during the move:
- spawnVehicle uses the computed isNetworked for the network-id/migrate guard,
  fixing the original that branched on the raw networked argument

modSmokeEnabled preserved as-is in get/setVehicleProperties (flagged: the set
path toggles mod 20 without applying a smoke color, matching legacy behavior).

Non-portable substitution documented:
- ESX.PlayerData.ped -> PlayerPedId() (ESX.PlayerData is not available in the lib VM)
2026-06-16 21:03:41 +02:00
ASTROWwwW 3fd3bf7877 feat(esx_lib/interactions): move interactions to xLib 2026-06-16 21:03:41 +02:00
ASTROWwwW ca278be1da feat(esx_lib/points): move points and Point class to xLib
Integrated fixes during the move:
- monotonic handle counter (handleCount) instead of count+1; no handle
  collision after a point is removed
- unified single proximity loop: per-frame inside() plus a 500ms enter/leave
  scan, adaptive Wait(next(insidePoints) and 0 or 500), replacing the previous
  two separate loops
- emptiness detected via next() instead of # on a sparse-keyed table

Non-portable substitutions documented:
- ESX.PlayerData.ped -> PlayerPedId() (ESX.PlayerData is not available in the
  lib VM)
- GetGameTimer() used to gate the 500ms scan within the single loop
2026-06-16 21:03:41 +02:00
ASTROWwwW 6a72181992 feat(esx_lib/scaleform): move scaleform helpers to xLib 2026-06-16 21:03:41 +02:00
ASTROWwwW f4af0d90bd feat(esx_lib/streaming): move streaming request helpers to xLib 2026-06-16 21:03:41 +02:00
Kremu a5cf56f672 Merge pull request #1752 from SNAILX808/esx_lib
Refactor keybind registration to use xLib.addKeybind
2026-01-14 16:24:14 +01:00
Kremu 638a60ce7b Merge branch 'esx_lib' into esx_lib 2026-01-14 16:24:01 +01:00
Arctos. 79423f18fc Merge pull request #1758 from SNAILX808/Move-refactor-raycast-functions-esx-lib
(Move/refactor) raycast functions esx lib
2025-11-13 13:48:01 +01:00
Arctos. cae0f546bd Merge branch 'esx_lib' into Move-refactor-raycast-functions-esx-lib 2025-11-13 00:04:37 +01:00
Arctos. 26d57c5d85 Merge pull request #1759 from SNAILX808/Move-refactor-entity-functions-esx-lib
(Move/refactor) entity functions esx lib
2025-11-12 14:37:10 +01:00
SNAILX 9b9b4b3fa4 Move-refactor-entity-functions-esx_lib 2025-11-11 05:52:38 +01:00
SNAILX 109a5c6038 small fixes 2025-11-11 03:31:19 +01:00
SNAILX d908418637 Move-refactor-raycast-functions-esx_lib 2025-11-11 00:57:39 +01:00
Arctos. 2a16ffafb7 Merge pull request #1757 from Zuntie/esx_lib
feat(esx_lib) DUI Implementation
2025-11-09 22:56:33 +01:00
Zuntie 1a27c365b6 fix(esx_lib): changed runtime texture names; tiny performance optimizaion. Working, Finished. 2025-11-09 17:44:52 +01:00
Zuntie edcfa009fb feat(esx_lib): DUI development guidelines compliant 2025-11-09 02:49:24 +01:00
Zuntie 3c20728860 feat(esx_lib): initial DUI addition 2025-11-09 02:44:10 +01:00
zykem#0643 cb41916ad1 refactor(lib/addKeybind) Compat for old core structure 2025-10-30 19:14:24 +01:00
zykem#0643 7ebc92ec0f refactor(lib/keybind) Change args structure 2025-10-30 19:14:08 +01:00
SNAILX fa52482720 Fix keybind command order for proper validation 2025-10-29 01:54:53 +01:00
SNAILX ae19c7cd25 Refactor keybind registration to use xLib.addKeybind 2025-10-28 18:29:36 +01:00
zykem#0643 0f4b8088a9 refactor(es_extended/fxmanifest) Add compat files to manifest 2025-10-25 19:18:54 +02:00
zykem#0643 165c8530c3 feat: Add shared compat file 2025-10-25 19:18:03 +02:00
zykem#0643 ad7375991d refactor: Change comment in compat files 2025-10-25 19:17:56 +02:00
Kremu 54a532baaf Quick fix. 2025-10-25 12:27:47 +02:00
zykem bd30d9f744 Update compat.lua 2025-10-24 22:27:15 +02:00
zykem eee2b643e4 Create compat.lua 2025-10-24 22:26:58 +02:00
zykem 921fd13deb Create compat.lua 2025-10-24 22:26:24 +02:00
Kr3mu 23956e4a7f init 2025-10-23 16:55:17 +02:00
Kr3mu 04318a4d77 Adds forgotten return in loadModule, loadModule returns nil instead of false, added return type in ldoc 2025-08-28 23:21:35 +02:00
Kr3mu 6b4d7c1956 Added noop comment, deleted bs about @@ 😂 2025-08-28 23:11:50 +02:00
Kr3mu fe82f8c6c4 Creates fxmanifest for esx_lib and imports with commented code. 2025-08-28 23:00:06 +02:00
Manifest Bumper 73ccea1b4e chore: bump manifest version to 1.13.3 2025-08-19 22:39:13 +00:00
Kenshin13 713d9bce67 Merge pull request #1702 from esx-framework/ssn
feat(es_extended): add SSN
1.13.3
2025-08-19 23:53:49 +02:00
Kenshin13 ffd59464b8 Merge branch 'dev' into ssn 2025-08-19 21:55:18 +02:00
Kenshin13 0805ac0f5b Merge pull request #1705 from esx-framework/extended-players
feat(es_extended): add static ESX.ExtendedPlayers
2025-08-19 21:53:02 +02:00
Kenshin13 276a49f77e feat(es_extended): add static ESX.ExtendedPlayers
As a wrapper for ESX.GetExtendedPlayers
2025-08-17 15:59:01 +02:00
Kenshin13 9333c1e9e0 refactor(es_extended/server/classes/player): Add SSN field and getter to player class 2025-08-17 15:03:38 +02:00
Kenshin13 462b118f85 Merge branch 'dev' into ssn 2025-08-17 15:01:05 +02:00
Kenshin13 a9ae0b479e Merge pull request #1704 from esx-framework/player-class
refactor(es_extended/server/class/player): add proper type annotations
2025-08-17 14:54:36 +02:00
Kenshin13 ec49a12410 refactor(es_extended/server/functions): fix return type for GetExtendedPlayers 2025-08-16 23:35:36 +02:00
Kenshin13 4404e2716c Merge pull request #1703 from esx-framework/linting-errors
chore: fix linting errors
2025-08-16 22:06:11 +02:00
Kenshin13 1a441005a7 fix(es_extended/server/functions): xPlayer needs nil check 2025-08-16 14:26:08 +02:00
Kenshin13 ceb2927fcd fix(es_extended): fix warnings caused by proper type annotations 2025-08-16 14:21:36 +02:00
Kenshin13 260d9b30ee refactor(es_extended/server/class/player): add proper type annotations 2025-08-16 14:14:16 +02:00
Kenshin13 5bb1e5f09e chore: fix linting errors 2025-08-16 12:51:38 +02:00