[fx/c#] nui hud

Hey guys!

Do you know how i can create a NUI Hud with C#?
I think it must work. :slight_smile:

  • Max
1 Like

By using events. C# -> Lua -> Js then Js -> Lua -> C#

… or by directly implementing the NUI calls in C# like scheduler.lua does.

Would you mind explaining a little bit more? I’m trying to use

using Newtonsoft.Json;
Function.Call(Hash.SEND_NUI_MESSAGE, JsonConvert.SerializeObject(array)); 

but I’m getting some error in console. The problem is with the parameter but I have literally no idea how would I create json string in C# which would work for this