// English
Good morning,

I have a question. I find working with Lua quite challenging. Can I simultaneously use JavaScript for the frontend and C# for the backend, while using Lua exclusively for the fxmanifest.lua?

// Deutsch
Guten Morgen,

Ich habe eine Frage. Ich finde den Umgang mit Lua ziemlich anspruchsvoll. Kann ich gleichzeitig JavaScript für das Frontend und C# für das Backend verwenden, während ich Lua ausschließlich für die fxmanifest.lua nutze?

By “use JavaScript” for the front end, do you mean using HTML/JS as a UI, and then having C# code running that listens for UI events? If so, yes this should be possible as C# can handle NUI callbacks which the JS would trigger NUI callbacks - Cfx.re Docs

As for the use of Lua exclusively for the fxmanifest.lua, yes you can run a resource with no Lua code other than the manifest file.

1 Like

You can also use JavaScript for the backend (client & server scripts) which I personally prefer before lua.