esx_core
esx_core copied to clipboard
[Feature Request] - es_extended - Add promise for getSharedObject to wait until it's fully ready
Hi,
Describe the Feature
Make getSharedObject export waiting for es_extended to be fully initialised using lua-promise package integrated by default on FiveM.
Screenshots I am referring to the fact that the export should return the value only when the function making ready es_extended is finished.
es_extended/server/common.lua:
Additional context
Needed because otherwise we have to do while .. do and it's annoying and clearly not a good practice.
Have a nice day.