NUI C# Displaying



I’m hoping someone can help me out. I’m trying to figure out the NUI in C#.

Html file:

Nothing is displayed when I try to activate it with:
if (Game.IsControlJustPressed(0, Control.Cover))
string messageString = “{“enable”:true}”;
SetNuiFocus(true, false);

I am properly escaping my string, the site is just removing the back slash

if( == true) { = "block";
} else {
  document.body.sytle.display = "none";

This only gets ran once… look at the NUI w/ mouse example. It shows how to set NUI up properly.


Awesome thanks, I’ve got it to work, now to just figure out how to use RegisterNuiCallbackType() in C#