In-Game Tablet with Web Based CAD/MDT Support


#121

i got it fixed lol thnx and not everyone maybe so technically inclined


#122

Is it possible to inlcude a webpage without https:// ? And when yes, how?

Someone find a way how to do install discord on this tablet?


#123

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


#124

thx - wow for the fast answer…but i see only a white page for example i use https://forum.fivem.net 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?


#125

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%.


#126

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


#127

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>

#128

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


#129

thx very much! i love it!


#130

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…


#131

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


#132

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


#133

Yup that works thanks for the tip!


#134

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?


#135

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


#136

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


#137

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.


#138

Ok thank you very much.


#139

Can i put my own Website in the Tablet?


#140

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.