ESX Core Update 1.10.6: Bug Fixes and New Features
We are pleased to announce the release of ESX Core version 1.10.6! This update primarily focuses on fixing bugs and introducing new features to improve the overall functionality of our framework.
π οΈ General Improvements:
- Updated License Year: Updated the license year to reflect the current year #1335 #1336.
- Better Resource Descriptions: Enhanced descriptions for resources to improve clarity and usability #1310.
- Optimized Loops: Converted some pairs & ipairs loops to numeric loops for better performance #1334.
- Enhanced Burst Tyre Saving: Improved the process for saving burst tyre data #1333.
- Typo Fixes: Corrected several misspellings in our resources #1312 #1357.
- Heading Data Storage: Player heading is now saved to the database upon leaving the game like before #1330.
- Improved CreateJob Handling: Enhanced error handling and overall functionality for the
ESX.CreateJob
feature #1355. - New Locales: Added new locales for German (
de.lua
) and Greek (gr.lua
). Thanks to JustZeroo and RoyaleWind π #1271 #1302.
π New Additions:
- Group Event Trigger: After setting a group, an event
esx:setGroup
is triggered allowing the client to retrieve the group viaESX.PlayerData.group
#1351. - Vehicle and Seat Data: In the action module, the player's vehicle and seat data are now automatically set in
ESX.PlayerData.vehicle
andESX.PlayerData.seat
#1311.if ESX.PlayerData.vehicle then print('Player is in vehicle ID: ' .. ESX.PlayerData.vehicle) print('Player is sitting in seat: ' .. ESX.PlayerData.seat) end
- Type Validation Functions: Introduced new functions
ESX.ValidateType
andESX.AssertType
as part of PR #1309. Usage described in this pull request. Soon available in new documentation. - Random Math Function: Added a new function
ESX.Math.Random
to the math module #1330.local randomNumber = ESX.Math.Random(1, 100) print('Random number: ' .. randomNumber)
- Trigger Client Event: New function
ESX.TriggerClientEvent
to trigger events for one or more clients #1342.--- @param eventName string The name of the event to trigger. --- @param playerIds table|number If a number, represents a single player ID. If a table, represents an array of player IDs. --- @param ... any Additional arguments to pass to the event handler. ESX.TriggerClientEvent('esx:test', {1, 2, 3}, test)
β Removals:
- Unnecessary Code: Deleted unnecessary code and removed redundant waiting for vehicle properties in
StateBagChangeHandler
#1296.
π± Fixes:
- Inventory Weight Sync: Fixed the client-side sync issue with
ox_inventory
setMaxWeight #1343. - Default Spawn Position: Fixed the issue with getting a random DefaultSpawn position #1356.
- Fixed Header Parameter: Fixed the header parameter in DefaultSpawnPosition #1339.
- jQuery Element Handling: Fixed jQuery issue with element IDs containing colons by using
document.getElementById
and wrapping with$()
, preventingUncaught TypeError
inesx_menu_default
#1359. - SQL Query Fix: Fixed SQL query in
main.lua
to allow deletion of rows where the table name contains special characters like hyphens #1358.
What's Changed
- Remove or statements that don't do stuff by @Arctos2win in #1298
- minimize DoesJobExist function by @Arctos2win in #1299
- Fix VehicleProperties function and remove credits by @Arctos2win in #1296
- 1.10.4 hotfix sync by @Thekuca in #1301
- mainπdev - sync by @Thekuca in #1305
- Added Greek language to multicharacter by @RoyaleWind in #1302
- refactor: add better descriptions to the fxmanifests by @Mycroft-Studios in #1310
- hotfix(es_extended/client/main.lua):reinitiating backwards compatibility with spawnmanager by @Arctos2win in #1313
- fix(es_extended/config.lua): Fix Typo Errors by @KeeganAI in #1312
- π 1.10.5 merge to main by @Gellipapa in #1317
- π Main to dev sync by @Gellipapa in #1328
- chore(LICENSE): update copyright year by @Thekuca in #1335
- chore(Β©οΈ) by @Thekuca in #1336
- perf/refactor(client/functions): replace pairs loops with for loops where possible by @itsmaty in #1334
- refactor(client/functions): refactor getting burst tyres on vehicle by @itsmaty in #1333
- fix(multicharacter/config): predefined spawn with incorrent defined heading by @itIsMaku in #1339
- added heading again for xPlayer.getCoords() by @TrymTube in #1330
- fix: ox_inventory setMaxWeight client-side sync by @tomson701 in #1343
- refactor(es_extended): put identical object related code into one file by @Arctos2win in #1346
- feat(es_extended/server/functions): add ESX.TriggerClientEvent by @Kenshiin13 in #1342
- feat: add TypeCheck to check value types by @CENSOR1337 in #1309
- Update actions.lua by @Marlox4 in #1311
- feat(Player): implement
esx:setGroup
event by @tomiichx in #1351 - Adding German Language Support by @JustZerooo in #1271
- π¦ Implemented new better createJob method by @Gellipapa in #1355
- π Fix random default spawn coords by @Gellipapa in #1356
- fix(es_extended/server/functions.lua): fixed mistyped variable by @KeeganAI in #1357
- fixed sql query main.lua by @ethandudu in #1358
- fix(esx_menu_default): jquery handling element id by @itIsMaku in #1359
- π§ Added manual run option to lint github action by @Gellipapa in #1361
- π§ Fix lint errors by @Gellipapa in #1362
- π 1.10.6 Release by @Gellipapa in #1363
New Contributors
- @RoyaleWind made their first contribution in #1302
- @KeeganAI made their first contribution in #1312
- @itsmaty made their first contribution in #1334
- @itIsMaku made their first contribution in #1339
- @tomson701 made their first contribution in #1343
- @Marlox4 made their first contribution in #1311
- @JustZerooo made their first contribution in #1271
- @ethandudu made their first contribution in #1358
Full Changelog: 1.10.5...1.10.6