Commit Graph

7690 Commits

Author SHA1 Message Date
zykem d948b1b439 Merge pull request #1637 from l2rhydra/main
Refactored Set vehicle Properties
2025-05-22 23:07:26 +02:00
Kenshin13 44805ad80f Merge pull request #1632 from Zykem/identity-age-validation
Identity age validation
2025-05-20 15:42:03 +02:00
Kenshin13 52a06a75b8 Merge pull request #1636 from lod9/esx_menu_default
Esx menu default
2025-05-20 14:27:32 +02: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
Aura Development 612d61e015 Merge branch 'dev' into main 2025-05-08 16:23:14 +03: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
YOMAN1792 8f07d854eb refactor(main.lua): use ESX.IsValidLocaleString with configurable character sets
Replaced the manual character validation logic in checkNameFormat with ESX.IsValidLocaleString to centralize string validation and allow configuration of valid character sets per locale.

Added support for Config.ValidCharacterSets to enable or disable specific Unicode blocks such as Greek, Cyrillic, Hebrew, Arabic, or CJK (Chinese, Japanese, Korean). This change introduces greater flexibility for multilingual servers while maintaining basic Latin character support by default.

⚠️ Behavior changes: Characters that were previously allowed may now be rejected depending on the server’s locale configuration.
2025-05-07 12:23:25 -04:00
Sefa 76ccc4790e esx_menu_default update 2025-05-07 17:12:58 +03:00
zlexif 59d2e9a839 fix(readme esx_notify): 2025-05-05 19:49:07 +03:00
zlexif 7a1eef95ff refactor(esx_notify): redesign, code improvements. 2025-05-05 19:32:19 +03:00
zykem 04dd22b30b Update main.lua 2025-04-29 00:03:36 +02:00
zykem 05769c6ac8 Directly using os.date instead of localizing iit 2025-04-29 00:02:50 +02:00
zykem a91e17dee9 Remove unnecessary code 2025-04-28 23:58:04 +02:00
zykem 2ddb9e9fd2 Remove unnecessary year > currentYear check 2025-04-28 23:56:31 +02:00
YOMAN1792 77be031e82 Add early returns 2025-04-28 17:19:49 -04:00
zykem#0643 ad6c9a0930 Format date after validating it 2025-04-28 19:48:12 +02:00
zykem#0643 90120948e9 Remove Config.MinAge 2025-04-28 19:42:46 +02:00
zykem#0643 f77b105419 Update main.lua 2025-04-28 19:04:21 +02:00
zykem#0643 4819740b21 Refactor checkDOBFormat function 2025-04-28 18:38:27 +02:00
zykem#0643 7ef8ad78bf Remove old & Add new config entries for MinAge & MaxAge 2025-04-28 18:38:14 +02:00
zykem 60deeda635 Merge pull request #1629 from Mirrrrrow/dev
feat(callback): add `AwaitClientCallback` function
2025-04-23 17:37:30 +02:00
YOMAN1792 f4f6f22578 Refactor name validation: remove numeric check and simplify character validation
- Removed the redundant numeric check as it is already handled by the character validation.
- Simplified the name validation logic by keeping only the `checkValidCharacter()` function for validating characters.
- The `checkValidCharacter()` function checks for allowed characters: Latin, Greek, Cyrillic, Hebrew, Arabic, and CJK.
- Updated `checkNameFormat()` to rely solely on the new character validation logic.
2025-04-23 01:51:44 -04: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
Kenshin13 9425348e0a Merge pull request #1622 from 1nexis/patch-4
fix(es_extended/server/main): GlobalState jobcount infinitely increasing
2025-03-09 23:03:35 +01:00
iSentrie 45efe07743 Merge branch 'dev' into patch-12 2025-03-10 00:02:55 +02:00
iSentrie 23915d1508 Update functions.lua 2025-03-09 23:42:54 +02:00
iSentrie eb1a2b9923 Update functions.lua 2025-03-09 23:39:57 +02:00
iSentrie 88a415a2b6 Update functions.lua 2025-03-09 23:29:52 +02:00
nexis 638ce3a276 fix(es_extended/server/main): GlobalState jobcount infinitely increasing 2025-03-06 09:41:03 +01:00
Kenshin13 764ca27729 Merge pull request #1619 from esx-framework/revert-1617-dev
Revert "feat(es_extended/server/modules/commands.lua): Add Validation Number"
2025-03-04 14:08:29 +01:00
Kenshin13 22d191b51e Revert "feat(es_extended/server/modules/commands.lua): Add Validation Number" 2025-03-04 14:06:50 +01:00
Fezz 5f340bae48 Merge pull request #1617 from YOMAN1792/dev
feat(es_extended/server/modules/commands.lua): Add Validation Number
2025-03-04 03:41:29 +00:00
YOMAN1792 80d934ac59 feat(player): refine inventory item count handling with rounding and maximum limit enforcement. 2025-03-03 21:33:05 -05:00
iSentrie 9083a71526 fix(functions.lua): IsPlayerAdmin group fix
Function failed to properly detect is player admin or not, while GetPlayerFromId function was receiving a string instead of number.
2025-03-02 11:49:04 +02:00