I’m starting the development of a RP framework for fivem (here https://github.com/ImagicTheCat/vRP), but I’m reaching an obstacle. If I understood it correctly, lua/script contexts are not shared, and only the client can export resources methods.
Is this feature also planned server-side, or this will never happen ? I don’t see myself scripting in the callback hell.
So, while hoping for direct access of server-side resource functions, I managed to get a good looking “resource call proxy”.
You can see it here.
Exports on the client are emulated using callbacks anyway, see citizen/scripting/lua/scheduler.lua.
The rewritten server will include the same resource system as the client, so this should all work fine then.
1 Like