Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

feelfreetofee
Copy link
Contributor

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.

Big refactor with no breaking changes (allegedly).
Expect for ESX.Game.SpawnObject that returns the object synchronous if no callback provided. (Just a new behaviour, keeps working as used to)
Added functions:
ESX.DrawMissionText
ESX.Game.GetShapeTestResultSync
ESX.Game.RaycastScreen
If no callback provided, functions will return the first argument synchronously. if not, first argument will be passed to the callback.
@Arctos2win Arctos2win changed the base branch from main to dev January 29, 2024 22:51
Cache addon resource states instead of checking it every time a function is called
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔧need test
Development

Successfully merging this pull request may close these issues.

None yet

3 participants