Login
Sign Up


You are using the mobile version of the forum, some features have been disabled to have it responsive.
Limelight Reunion 2024 - v4b1Limelight Discord
Ares Defence Services Discord
Limelight Reunion 2024 - v4b1Limelight DiscordAres Defence Services Discord

receiptDevelopment Blog:

Development Contributor Workflow

receiptHR Blog:

What *are* they doing over there?

receiptTeacher Blog:

Insight into the Teacher Team

receiptDevelopment Blog:

Infrastructure Upgrade 11/2019

receiptDevelopment Blog:

how suggestions???

receiptDevelopment Blog:

Planning for the future.


This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Interactive Screen - Guide
Jompe radio_button_checked
Contributor
Contributor
Posts: 403
Threads: 33
Likes Given: 793
Likes Recieved: 254 in 151 posts
Joined: Aug 2015
Reputation: 7
#1
Jul 7, 2018, 11:21 PM
Interactive Screen - Documentation

The interactive screen entity allows you to render a website of your choice on 3D2D panels that players can interact with using the buttons below the screen. The entity opens up a wide range of new opportunities such as casino machines or live news feeds.

Settings Panel:
The settings panel can be opened by the entity owner by pressing your USE button while looking at the webpage of the screen. Here you can set the URL to show and customize the buttons below the webpage.

URL Field: This is where you will enter the URL of the webpage that you want to show. It also allows you to enter up to 5 different tags which will be replaced with corresponding information when the webpage is loaded.

Key Field: Here you can enter a key which can be used if you want to be the only one who can access your own webpage. It will be hashed using a CRC Checksum and sent to all clients. You can later validate the CRC Checksum using PHP. (Choose a key you won't use anywhere else)

Edit Button Panel:
By clicking on a button in the list you can open up the edit button panel where you can customize the button and set it to do what you want to.

Name Field: This is the text that will be shown on the button below the webpage.

Action Type: Here you can set what you want the button to do. Currently, you can make it open an URL or call a Javascript code snippet.

Action Value:
 Here you will set the value of what you want the button to do. If you have selected Open URL you should enter a URL here and if you have selected Run Javascript you should enter a Javascript code snippet here.

[font=Arial]GET Variables:
[/font]

    IMPORTANT: Use these with care as they easily could be manipulated by a normal web browser.

    Read more about GET Variables here.

     Variables:
  • %STEAMID64 = The player's SteamID64.
  • %CRCKEY = The key hashed using a CRC Checksum that can be used if you don't want anyone else to use your website on their interactive screens. (Read more about CRC Checksum)
  • %USERNAME = Username of the player.
  • %OS = The operating system of the player. (Can be: Windows, Linux, OSX, Unknown)
  • %COUNTRY = The country code of the player. (UK, US, etc)


Other Functionalities:

TakeDamage(int damageAmount): This function can be created in a javascript and will be called automatically when the screen receives damage from a weapon.
[Image: Vmkhnx5.png]
(This post was last modified: Jan 15, 2019, 12:18 AM by Jompe. Edited 8 times in total.)
The following 5 users Like Jompe's post:
  • Bambo, Insert, Ollie, Project, The Original bob
greg radio_button_checked
bruh
Membership
Posts: 736
Threads: 128
Likes Given: 340
Likes Recieved: 408 in 209 posts
Joined: Mar 2016
Reputation: 5
#2
Jul 29, 2018, 07:51 PM
where is the screen
shorelinedothatshit!!
Jompe radio_button_checked
Contributor
Contributor
Posts: 403
Threads: 33
Likes Given: 793
Likes Recieved: 254 in 151 posts
Joined: Aug 2015
Reputation: 7
#3
Jul 29, 2018, 08:01 PM
(Jul 29, 2018, 07:51 PM)greg Wrote: where is the screen

It will be available on the market under the Misc tab the next server restart!  Thumbs Up
[Image: Vmkhnx5.png]
The following 1 user Likes Jompe's post:
  • greg
Armard radio_button_checked
Member
Membership
Posts: 684
Threads: 97
Likes Given: 152
Likes Recieved: 209 in 148 posts
Joined: Aug 2016
Reputation: 5
#4
Jul 29, 2018, 08:03 PM
(Jul 29, 2018, 08:01 PM)Jompe Wrote:
(Jul 29, 2018, 07:51 PM)greg Wrote: where is the screen

It will be available on the market under the Misc tab the next server restart!  Thumbs Up

or server crash  Wink
The following 2 users Like Armard's post:
  • Jompe, Quest
Bambo radio_button_checked
Server Jedi
Super Administrator (CityRP)
Posts: 3,825
Threads: 385
Likes Given: 1648
Likes Recieved: 3504 in 1231 posts
Joined: Aug 2015
Reputation: 62
#5
Jul 29, 2018, 08:58 PM
Looks like this is going to open up loads of opportunities!
The following 1 user Likes Bambo's post:
  • Project
Project radio_button_checked
Assisting and Mapping
RP Assistant (CityRP)
Posts: 2,964
Threads: 177
Likes Given: 2837
Likes Recieved: 1505 in 911 posts
Joined: Aug 2015
Reputation: 46
#6
Jul 29, 2018, 09:55 PM
Noice!
[Image: sO5GyCt.png]
H4MZ4 radio_button_checked
NoooooooOOoot NooOOOOOooOoooOot
Membership
Posts: 262
Threads: 75
Likes Given: 41
Likes Recieved: 56 in 39 posts
Joined: Dec 2015
Reputation: 4
#7
Jul 29, 2018, 11:36 PM
Here's a guide within a guide?

 --------------------

How to play YouTube videos with playback control buttons

(warning: it's all client side i think, so pressing pause will only pause your playback etc - maybe i'll try to make one with the video sync sites)

You'll need to host a HTML page somewhere, maybe here: https://www.singlehtml.com/

Take this HTML and host it: https://github.com/zzHAMZAzz/zzHAMZAzz.g...creen.html

Change the YouTube embed URL where it says "ENTERVIDEOID" and enter the ID of the video you want to play

----------

Go to the interactive sign and change the URL to wherever you hosted the HTML page

Add 4 buttons (or 2 or 3)

Button 1: call it play - make it do a JS command of player.playVideo()
Button 2: call it pause - make it do a JS command of player.pauseVideo()
Button 3: call it mute - make it do a JS command of player.mute()
Button 4: call it unmute - make it do a JS command of player.unMute()


Done???

[Image: ?interpolation=lanczos-none&output-forma...olor=black]
----------------
Notable Stuff By Me
AutoServerCleaner - Garry's Mod
Various Photon Configs + Skins - Garry's Mod
Sad Mac For Safe Mode - iOS-Cydia

The following 1 user Likes H4MZ4's post:
  • Jompe
Markus radio_button_checked
Roleplayin' since 2011
Contributor
Posts: 1,750
Threads: 167
Likes Given: 1946
Likes Recieved: 578 in 383 posts
Joined: Aug 2015
Reputation: 11
#8
Aug 28, 2018, 08:57 PM
(Jul 29, 2018, 11:36 PM)H4MZ4 Wrote: Here's a guide within a guide?

 --------------------

How to play YouTube videos with playback control buttons

(warning: it's all client side i think, so pressing pause will only pause your playback etc - maybe i'll try to make one with the video sync sites)

You'll need to host a HTML page somewhere, maybe here: https://www.singlehtml.com/

Take this HTML and host it: https://github.com/zzHAMZAzz/zzHAMZAzz.g...creen.html

Change the YouTube embed URL where it says "ENTERVIDEOID" and enter the ID of the video you want to play

----------

Go to the interactive sign and change the URL to wherever you hosted the HTML page

Add 4 buttons (or 2 or 3)

Button 1: call it play - make it do a JS command of player.playVideo()
Button 2: call it pause - make it do a JS command of player.pauseVideo()
Button 3: call it mute - make it do a JS command of player.mute()
Button 4: call it unmute - make it do a JS command of player.unMute()


Done???

[Image: ?interpolation=lanczos-none&output-forma...olor=black]

That hosting website is not working anymore.
[Image: sigs.php?steamid=STEAM_0:1:36038228]
Jompe radio_button_checked
Contributor
Contributor
Posts: 403
Threads: 33
Likes Given: 793
Likes Recieved: 254 in 151 posts
Joined: Aug 2015
Reputation: 7
#9
Aug 28, 2018, 09:07 PM
(Aug 28, 2018, 08:57 PM)Markus Wrote:
(Jul 29, 2018, 11:36 PM)H4MZ4 Wrote: Here's a guide within a guide?

 --------------------

How to play YouTube videos with playback control buttons

(warning: it's all client side i think, so pressing pause will only pause your playback etc - maybe i'll try to make one with the video sync sites)

You'll need to host a HTML page somewhere, maybe here: https://www.singlehtml.com/

Take this HTML and host it: https://github.com/zzHAMZAzz/zzHAMZAzz.g...creen.html

Change the YouTube embed URL where it says "ENTERVIDEOID" and enter the ID of the video you want to play

----------

Go to the interactive sign and change the URL to wherever you hosted the HTML page

Add 4 buttons (or 2 or 3)

Button 1: call it play - make it do a JS command of player.playVideo()
Button 2: call it pause - make it do a JS command of player.pauseVideo()
Button 3: call it mute - make it do a JS command of player.mute()
Button 4: call it unmute - make it do a JS command of player.unMute()


Done???

[Image: ?interpolation=lanczos-none&output-forma...olor=black]

That hosting website is not working anymore.

Here is a list of known sites that allow you to host single HTML files.
[Image: Vmkhnx5.png]




Users browsing this thread: 1 Guest(s)