esx_core icon indicating copy to clipboard operation
esx_core copied to clipboard

[Feature Request] - es_extended - Add promise for getSharedObject to wait until it's fully ready

Open s1nyx opened this issue 1 year ago • 0 comments

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: image

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.

s1nyx avatar May 12 '24 14:05 s1nyx