Skip to content

Releases: esx-framework/esx_core

1.10.8

10 Oct 16:30
39af19e
Compare
Choose a tag to compare

We are pleased to announce the release of ESX Core version 1.10.8!

🚨 BREAKING CHANGES:

With 1.10.8, due to a major bug fix, the synchronization of metadata and xPlayer.set via statebags has been removed.

So now neither metadata nor xPlayer.set data are synchronized via statebagen. An older logic has been implemented that updates ESX.PlayerData via this event esx:updatePlayerData, which currently includes the metadata.

🚑 Urgent bug fix:

Currently, everything flowing through xPlayer.set is being put into a statebag, aswell as all metadata , resulting in crashes. #1407

🛠️ General Improvements:

- Updated license year:

Updated the license year in cron to reflect the current year and some other license changes #1387

- Using cached ped value:

Instead of PlayerPedId() we now use ESX.PlayerData.ped in progressBar #1385

- Lowercase account check:

Account function are not case sensitive anymore. You can use money or Money #1379

- General improvements of ESX.Streaming functions:

More in pull request #1303

- Cache resource states:

Now the status of addon resources such as esx_progressbar for better performance #1303

- Vehicle change check:

Implemented a better way of checking if player changed vehicle #1400

🌱 Fixes:

- xPlayer validation:

In chatMessage handler we now validate if xPlayer is not nil value #1384

- ESX.PlayerData.name fix:

Fix ESX.PlayerData.name value being nil #1388

- Spelling mistake:

Fixed spelling mistake in German locales (de.lua) #1383

- Prevent awaiting script:

Prevent scripts from awaiting when multicharacter is set to false. Learn more in the pull request #1396

- Typo fix

Fixed a parameter typo for printing "ignoring invalid .setJob() usage" #1403

- Fix job creation function

Fixed job creation function with full transaction for jobs and job_grades tables #1404

- Fix notify no valid icon

Fixed notify no valid icon #1406

What's Changed

New Contributors

Full Changelog: 1.10.7...1.10.8

1.10.7

18 Jun 22:20
c80916c
Compare
Choose a tag to compare

Hotfix update

Hotfix update for 1.10.7

🌱 Fixes

  • Remove duplicate common/functions.lua file in fxmanifest
  • xPlayer.getCoords backwards compatibility

What's Changed

Full Changelog: 1.10.6...1.10.7

1.10.6

16 Jun 15:09
0bc2321
Compare
Choose a tag to compare

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 via ESX.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 and ESX.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 and ESX.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 $(), preventing Uncaught TypeError in esx_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

New Contributors

Full Changelog: 1.10.5...1.10.6

1.10.5

17 Feb 22:53
89708d2
Compare
Choose a tag to compare

Hotfix update

Hotfix update for 1.10.4

🌱 Fixes

  • Backwards compatibility playerSpawned event

What's Changed

  • hotfix(es_extended/client/main.lua):reinitiating backwards compatibil… by @Arctos2win in #1314

Full Changelog: 1.10.4...1.10.5

1.10.4

30 Jan 20:08
3ecb303
Compare
Choose a tag to compare

Hotfix update

Hotfix update for 1.10.3

🌱 Fixed bugs

  • Players not registering as dead after relog in #1297
  • Health metadata setting on player spawn

1.10.3

25 Jan 18:05
d41ac35
Compare
Choose a tag to compare

Updates in version ESX 1.10.3

Core Scripts Update :

Thanks to the people behind the scenes who make this update possible, especially our translators, developers, team leaders and all contributors 😍

The major change is that the 6188 artifact is now needed to run the ESX Framework due to the use of the GetPlayerIdentifierByType native

🛠️ General Improvements:

  • Resolved various lint errors, including unused values and extra whitespaces.
  • Some formatting of the code
  • Update some translations (Slovenian, Finnish, German, Swedish, Hebrew, French, Czech) and created some new translations (Indonesian)
  • Improved ESX.Game.SpawnObject function by removing the callback and using the network function directly with a native
  • Optimization and overall improvement of functions ESX.SearchInventory, ESX.Game.GetPeds, ESX.Game.GetPlayers, ESX.ShowInventory and of an event removeInventoryItem
  • Add underflow check for removeAccountMoney
  • General improvement of setJob function
  • Use ESX.RegisterInput for /showinv
  • The loadESXPlayer function has been rewritten and improved
  • We do not save a player unless he is spawned

⛔ Removed:

  • Remove of the calback for spawn object networking. Now we handle that with natives.

🌱 Fixes:

  • Add missing onCancel callback method to progressbar
  • Fixed bug in metadata. Now the metadata value can be set to false
  • Fixed bug with DisableHealthRegeneration (It needs to be re-setted on ped change)
  • Fixed player collision bug when spawning using HasCollisionLoadedAroundEntity property
  • Fixed date of birth checking in esx_identity
  • Added default value for skin_male and skin_female.
  • Added missing columm label to banking table

Addons Scripts Update :

  • Overall, a few addon resources have been improved. We also prevent exploits in esx_drugs.

  • In esx_barbershop we are caching player skins for better performance.

  • In policejob we are caching fine types for better database optimization.

https://github.com/esx-framework/esx_core/releases/tag/1.10.3

What's Changed

New Contributors

Full Changelog: 1.10.2...1.10.3

1.10.2

21 Sep 12:48
6a762e7
Compare
Choose a tag to compare

Updates in version ESX 1.10.2

Thanks to the men behind the scenes who make this update possible, especially itsfantik, gellipapa, rav3n95, arctos, thekuca and all Translator <3

🔨 General Improvements:

  • Resolved various lint errors, including unused values and extra whitespaces.
  • Enhanced ESX.Context availability handling in es_extended.
  • Converted some ipairs loops to numeric loops for optimization.
  • Enabled console usage for commands and refined log outputs.
  • Introduced a new command type for coordinates.
  • Added new localizations

🆕 New Features:

  • Automatically close all ESX menus upon stopping the esx_menu_default resource.
  • Health and Armor states are now saved through metadata.
  • Introduced a repair/fix command that also cleans your vehicle.
  • Starting inventory items are now configurable (Not applicable to ox_inventory).
  • Added an option to disable ammo display in the config file.
  • Added a new weapon: WEAPON_HEAVYRIFLE.
  • Introduced new xPlayer.admin functionalities.
  • Implemented measures to halt resources that are incompatible with ESX (for example essentialmode will be stopped by es extended)

⚙ New Utility Functions:

  • Upgraded xPlayer Metadata Management with the addition of subValue arguments.
  • Improved ESX Core Cron Task Management.
  • Added function ESX.GetNumPlayers for retrieving the number of players in a specific job.

⛔ Removed:

  • Deleted driftTyres from ESX.VehProperties as it was non-functional across all FiveM versions.

🌱 Bug Fixes:

  • Resolved all mismatched vehicle types.
  • Corrected vehicle event warning messages.
  • Fixed noclip notification issue.
  • Addressed issues with the getNearbyPlayers function (ESX.OneSync.GetPlayersInArea, ESX.OneSync.GetClosestPlayer).

https://github.com/esx-framework/esx_core/releases/tag/1.10.2

New Contributors

Full Changelog: 1.10.1...1.10.2

1.10.1

10 Jul 21:47
2c5b5c9
Compare
Choose a tag to compare

Updates in version ESX 1.10.1

Removals:

  • Removed esx:removeWeapon now you must use xPlayer.removeWeapon which automatically deletes weapons using RPC native and does not need to use client side and event esx:removeWeapon.

🌱 Fixes:

  • Resolved the issue of wheel saving and custom wheel saving
  • Fixed saving of drift wheels and typo in variable driftTyresEnabled

New Contributors

Full Changelog: 1.10...1.10.1

1.10

10 Jul 21:24
Compare
Choose a tag to compare

Updates in version ESX 1.10

🔨 General Updates:

  • Entire code has been formatted with the Lua extension (settings in .editorconfig) and Prettier.
  • Resolved a large portion of lint errors including unused variables, whitespaces, and function arguments.
  • Updated locales (A big thanks to all our translators! ❤️ )
  • Enhanced some JavaScript performance
  • Removed jQuery from esx_identity.

🆕 New Additions :

  • Introduced support for MultiSpawns in es_extended config.
  • Added a new AdminGroups table in es_extended config.
  • Added logging for admin commands to Discord (when an admin uses a command, a message on discord will be sent)
  • Disabled custom ESX.A111 vehicle plate in esx_config.
  • New weapons added from latest DLCs (WEAPON_METALDETECTOR, WEAPON_PISTOLXM3, WEAPON_ACIDPACKAGE, WEAPON_CANDYCANE, WEAPON_RAILGUNXM3).
  • Added support for drift tires, bulletproof wheels, roof livery, and custom wheels in VehicleProperties.
  • Added esx:spawnVehicle event.

⚙️ New Functions:

  • Added ESX.GetAccount function.

Removals:

  • Removed self.updateCoords for optimized position saving.

🌱 Fixes:

  • Fixed OneSync range error handling in ESX.Game.SpawnVehicle.
  • Resolved the issue of not being able to rotate while creating a character with esx_skin.

New Contributors

Full Changelog: 1.9.4...1.10

1.9.4

20 Mar 18:09
85b3407
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.9.3...1.9.4