In-Game Tablet with Web Based CAD/MDT Support

Just use http:// and if you check the main post there a method to get discord to work.

thx - wow for the fast answerā€¦but i see only a white page for example i use https://forum.cfx.re it works, if i use for exampe https://discordapp.com/ it show nothingā€¦ or if we use steamcommunity link form our steamgroup, any idea pls?

If you made a new page youll need to add it to __resource.lua for it to work also a lot of sites block iframes. If you contact me on disord I can help you better. I will test the sites you mentions tho. And I know the discord site wonā€™t work 100%.

None of those sites can be iframed. You can test this by opening the tablet page in your browser and using the F12 console.

ok, thats right , i forgot the resource.lua insertā€¦

ā€¦last question, if you write made e new side, you mean in the folder html called it for esxample forum.html

Do you have an example for a page in iframe like in html:

<html>
	<head>
		<meta http-equiv="refresh" content="0; URL=http://webpage...">
	</head>
</html>

Just use the opencad.html page as a template for new pages if your not sure what to do.

thx very much! i love it!

Hey, is it possible to show some icons for players that for example are in the job police and for the others, they donā€™t appear? If so, can someone explain how? Thanksā€¦

Not sure if this has been brought up yet. but I noticed after logging into our CAD when we close out of the tablet it also logs out of the CAD. Which could be a problem for an officer on duty and needing to keep up with boloā€™s and such any fix for this? Thanks

Love this resource. I think it will be very beneficial for RP servers

Try press Esc (sometimes twice) to close the tablet and youā€™ll keep being logged in. Works for me.

Yup that works thanks for the tip!

I want to use Twitch in Tablet and use this kind of code

<!-- Load the Twitch embed script -->
<script src="https://embed.twitch.tv/embed/v1.js"></script>

<!--
  Create a Twitch.Embed object that will render
  within the "twitch-embed" root element.
-->
<script type="text/javascript">
  var embed = new Twitch.Embed("twitch-embed", {
    width: 1080,
    height: 700,
    channel: "shamshiel",
    layout: "video",
    autoplay: true
  });

  embed.addEventListener(Twitch.Embed.VIDEO_READY, () => {
    var player = embed.getPlayer();
    player.play();
  });
</script>
<script type="text/javascript">
  var embed = new Twitch.Embed("twitch-embed", {
    width: 1080,
    height: 700,
    channel: "oritainment",
    layout: "video",
    autoplay: true
  });

  embed.addEventListener(Twitch.Embed.VIDEO_READY, () => {
    var player = embed.getPlayer();
    player.play();
  });
</script>

Everything ist fine, but if i open the twitch app in tablet i get following error:
6000: Renderer not available

Do you have an idea how to fix this?

Does it work thru your web browser and just not in game?

In Web Browser it works, it just shows this error in game. It seems like the tablet can not use the twitch player.

By looking up your error and the fact that it works thru the browser, Iā€™m gonna go ahead and say that the chromium browser that FiveM uses doesnā€™t have the proper resources to run Twitch. I think itā€™s flash related.

Ok thank you very much.

Can i put my own Website in the Tablet?

Of course you can. Either edit existing pages or make new ones. If you choose to make new pages, be sure to add them to the resources.lua. The opencad.html page is a great example on how to add a website to the tablet.

I can Add all Websites?

You can add any website that allows for it to be iframed. If you read thru the comments, Iā€™ve mentioned how to see if a site can be iframed.