Commit Graph
1021 Commits
Author SHA1 Message Date
Kenshin13 787eca684f fix(es_extended/server/modules/onesync): get net owner for vehicle spawn based on routing bucket 2025-07-06 14:50:57 +02:00
Kenshin13 bb03bd0fe3 fix(es_extended_server/functions): fix GetVehicleType returning nil 2025-07-06 14:09:51 +02:00
DingYUU c92e865db8 Update zh-cn.lua
Remove mistyped extra placeholders
2025-06-20 12:14:28 +08:00
DingYUU 0e1c4c8756 Update main.lua
Fix for non-existent `variables` field in `ESX.PlayerData`
2025-06-19 20:37:00 +08:00
DingYUU 5e73b92293 Update player.lua
Fix for non-existent `variables` field in `ESX.PlayerData`
2025-06-19 20:34:44 +08:00
DingYUU f2a728acb1 Update zh-cn.lua
Updated Simplified Chinese translation
2025-06-19 20:33:33 +08:00
Kenshin13 7ce03c38ce Merge pull request #1640 from Tabby-Labs/dev
(fix): failed to reconnect after client crashed
2025-06-15 18:57:13 +02:00
Kenshin13 3674323a7d Merge pull request #1631 from Kenshiin13/fix-veh-spawn
feat(es_extended/server/modules/onesync): add optional vehicleType to Spawn
2025-06-15 12:48:36 +02:00
Kenshin13 ae1a3faa2d fix(es_extended/server/modules/onesync): dont await ent ownership if no valid client nearby 2025-06-14 22:39:09 +02:00
Kenshin13 e43d694c36 fix(es_extended/server/modules/onesync): only await net owner if valid player is nearby 2025-06-14 22:12:37 +02:00
Kenshin13 4e8da19217 refactor(es_extended/server/functions): fix diagnostics 2025-06-14 21:15:11 +02:00
Kenshin13 3e0c89d9b2 feat(es_extended/server/main): add optional cb fun for playerDropped wrapper 2025-06-14 21:05:51 +02:00
Kenshin13 b28cf88273 refactor(es_extended/server/main): remove unused event 2025-06-14 20:57:37 +02:00
Kenshin13 d892df079f resolve deferrals after cleanup 2025-06-14 20:55:47 +02:00
Kenshin13 f28d29cc39 refactor(es_extended/server/main): call playerDropped wrapper for stale player obj 2025-06-14 20:53:19 +02:00
Kenshin13 5ed6bf3ebd refactor(es_extended/server/main): use wrapper fun for playerDropped 2025-06-14 20:52:16 +02:00
Kenshin13 0c096c634f refactor(es_extended/server/main): early return & more readable 2025-06-14 20:47:08 +02:00
Kenshin13 85881a4fde refactor(es_extended/server/main): early return 2025-06-14 20:40:27 +02:00
Kenshin13 5e6fbd1661 fix(es_extended/server/main): player doesnt have to be in both tables. 2025-06-14 20:39:44 +02:00
Kenshin13 137336c602 Merge pull request #1642 from RodericAguilar/patch-1
Update and complete Spanish localization
2025-06-11 22:25:32 +02:00
Kenshin13 2bbc07a052 fix(es_extended/locales/es): add missing comma 2025-06-11 22:20:35 +02:00
Tabby Dev 20e36fa15a undo(es_extended/server/main.lua): revert 'playerConnecting' stale data removing logic 2025-05-30 21:20:04 +08:00
iSentrie 62701bd4ec fix(es_extended): text color formatting in warning message
added ^0 to ensure proper color reset at the end of the string in console output for command warnings
2025-05-23 19:43:37 +03:00
zykem d948b1b439 Merge pull request #1637 from l2rhydra/main
Refactored Set vehicle Properties
2025-05-22 23:07:26 +02:00
Tabby Dev 7d3fd27676 refactor(es_extended/server/main): use 'esx:playerCrashed' for consistency 2025-05-22 19:22:52 +08:00
Tabby Dev af52ca3851 refactor(es_extended/server/main): use 'esx:playerCrashed' for consistency 2025-05-22 19:13:42 +08:00
Tabby Dev 4bd80ca3e6 feat(es_extended/server/main): add new handler 'esx:playerCrashed' for unloading players stale 2025-05-22 19:10:31 +08:00
RodericAguilar 5120e79e53 Update es.lua
Fixed spanish translation, also add some translations missed.
2025-05-20 10:00:55 +02:00
Tabby Dev 7b84a02ef2 fix(es_extended/server/main): fix failed to reconnect after client crashed 2025-05-20 10:07:21 +08:00
Kenshin13 78b8b21f2e Merge pull request #1635 from auradevelopment5m/main
refactor(esx_notify): redesign, code improvements.
2025-05-09 23:53:36 +02:00
zykem 605fad5795 Merge pull request #1630 from YOMAN1792/dev
Refactor name validation: remove numeric check and simplify character validation
2025-05-09 11:12:47 +02:00
Muhammed Yaseen 9582c31a91 Revamped variable orders 2025-05-09 08:59:08 +05:30
Muhammed Yaseen 30a13c5726 Revert "Revamped GetVehicleProperties in compatible with the removal of customPrimay and secondary colors"
This reverts commit 9b0ffead47.
2025-05-09 08:54:35 +05:30
Muhammed Yaseen 9b0ffead47 Revamped GetVehicleProperties in compatible with the removal of customPrimay and secondary colors 2025-05-09 08:48:44 +05:30
Muhammed Yaseen 542b143e75 Removed duplication of Custom primary and secondary colors 2025-05-09 08:34:46 +05:30
Muhammed Yaseen 9d91ba0195 Refatored Set vehicle Properties 2025-05-09 07:51:40 +05:30
zlexif f2f55f1d48 Merge branch 'main' of https://github.com/auradevelopment5m/esx_core 2025-05-08 21:54:12 +03:00
zlexif 7d61f378e2 fix:('added title parameter to ESX.ShowNotification. 2025-05-08 21:53:34 +03:00
YOMAN1792 dc512f97d2 feat(functions.lua): add optional digit support to IsValidLocaleString
Modified the ESX.IsValidLocaleString function to accept an optional `allowDigits` parameter.
When true, the function now allows numerical characters (0-9) in addition to the configured character ranges.

This improves string validation flexibility across locales.
2025-05-08 14:18:57 -04:00
YOMAN1792 099bd7dd46 refactor(functions.lua): use table.unpack to initialize validRanges
Replaces manual loop for copying `defaultRanges` into `validRanges` with `table.unpack`.
Avoids unnecessary iteration and duplication.
2025-05-08 13:03:40 -04:00
YOMAN1792 01e29f6e9b refactor(locale): improve performance and type safety in IsValidLocaleString
- Replaced `ipairs` with a numeric `for` loop in the UTF-8 validation step for better performance.
- Stored `validRanges[i]` in a local `range` variable to avoid duplicate table lookups.
- Added a call to `ESX.ValidateType(str, 'string')` to ensure input is of type string before processing.
These changes improve both performance and code safety.
2025-05-08 10:33:03 -04:00
YOMAN1792 e30d4e49f5 Added support for additional character sets and language customization
This update introduces a new configuration option `Config.ValidCharacterSets` to allow support for additional character sets in case the server is multilingual. This allows the server to handle character sets such as Greek, Cyrillic, Hebrew, Arabic, and East Asian languages (Chinese, Japanese, Korean). 

By default, these character sets are disabled (`false`). The user can enable them if needed, depending on the language requirements of the server.
2025-05-07 12:34:42 -04:00
YOMAN1792 e9fe5babdb Refactor: Add ESX.IsValidLocaleString function to validate locale-based characters
This commit introduces the new `ESX.IsValidLocaleString` function, which checks if a given string contains valid characters based on the configured locale. It validates characters from various locales, such as Greek, Cyrillic, Hebrew, Arabic, and Chinese, in addition to basic Latin characters. The function is flexible, allowing for the inclusion of additional character sets via the `Config.ValidCharacterSets` configuration.

Changes include:
- A new function, `ESX.IsValidLocaleString`, added to validate characters based on the locale.
- The validation takes into account default Latin ranges as well as specific ranges for supported languages.
- The function supports dynamic locale configurations by using `Config.ValidCharacterSets`.

This refactor improves handling of locale-specific characters and provides a way to easily extend validation for new locales as needed.
2025-05-07 12:31:14 -04:00
Kenshin13 372c8a224d feat(es_extended/server/modules/onesync): add optional vehicleType to SpawnVehicle 2025-04-28 18:01:48 +02:00
Kenshin13 5722873472 feat(es_extended/server/functions): add promise support for ESX.GetVehicleType 2025-04-28 18:01:28 +02:00
Mirow 9f0bafef3d Revert "feat(paycheck): add event"
This reverts commit aba21e2c03.
2025-04-04 17:02:10 +02:00
Mirow aba21e2c03 feat(paycheck): add event 2025-04-04 16:59:08 +02:00
Mirow 532070b72d feat(callback): add AwaitClientCallback function 2025-04-01 17:56:50 +02:00
Kenshin13 4627d8a7d5 Merge pull request #1618 from iSentrie/patch-12
fix(es_extended/server/functions.lua): IsPlayerAdmin group fix
2025-03-09 23:15:46 +01:00
iSentrie 5bb75de78f Update functions.lua 2025-03-10 00:11:09 +02:00