esx_core icon indicating copy to clipboard operation
esx_core copied to clipboard

refactor(es_extended/client/functions.lua) and (es_extended/client/modules/streaming.lua)

Open feelfreetofee opened this issue 1 year ago • 0 comments

Big refactor to client functions with no breaking changes (allegedly). Except for ESX.Game.SpawnObject that returns the object synchronous if no callback provided. (Just a new behaviour, keeps working as used to)

Added new functions: · ESX.DrawMissionText · ESX.Game.GetShapeTestResultSync ** · ESX.Game.RaycastScreen ** ** Last two are used to improve the performance of ESX.Game.GetVehicleInDirection It already uses a Synchronous Shape Test Result less performant than solution provided.

In streaming functions, ff no callback provided, functions will return the first argument synchronously. if not, first argument will be passed to the callback.

feelfreetofee avatar Jan 29 '24 22:01 feelfreetofee