Docs/Yecoyz Tablet

Camera and Gallery

Taking photos with the tablet, the Gallery with albums, printing photos and where the pictures are stored.

Camera

Players hold the tablet up in both hands and look through it. The screen shows what is behind the tablet, with the camera's controls on it. Zooming magnifies the view at full sharpness while the tablet and the hands stay where they are. Other players see the tablet held up in front of the face.

Key Action
Mouse Turn and tilt the tablet
Scroll wheel Zoom (up to Config.camera.zoom)
Left mouse or Enter Take the photo
F Flip to the front camera: the screen shows the player's face
Backspace or ESC Back to the tablet's screen

The photo is what the screen shows, without any HUD or UI on it, and goes straight to the Gallery.

The Gallery keeps each character's pictures: photos from the Camera and pictures added by link.

  • The sidebar shows all pictures, only photos, only links, or one album. Pictures are grouped by day.
  • Albums are made from the sidebar or from a picture, and a picture can be in several.
  • Select picks several pictures at once to put in an album or to delete. Deleting always asks first.
  • Links are limited to known image hosts by default (Config.gallery.linkHosts), because everyone who sees a picture loads it from its address.

Printing

Open a picture, tap Print and pick a printer close by. The player gets a photo item. Using it holds the sheet up with the picture on it, which everyone close by sees. The holder sees it close up first: H switches to the normal view to show it around, and Backspace puts it away.

  • Printer props on the map work anywhere (Config.printers.models), and Config.printers.locations adds fixed printers.
  • A print can cost money (price, account), and OpenServer.CanPrint in open/server.lua can refuse it per player.
  • The photo item needs an inventory that keeps item metadata, such as ox_inventory or qb-inventory. See the install steps.

Where photos are stored

Config.media.provider picks the storage. Keys go in server.cfg with set (not setr or sets), so they never reach players.

Provider Setup Notes
database (default) oxmysql The files go in the table yecoyz_tablet_media (created on start), and your server serves them on its own port at /yecoyz_tablet/media/<id>. Behind a domain or proxy, set Config.media.databaseUrl to the address the server's port is reached on.
fivemanage set yecoyz_tablet_fivemanage_key "<media API key>" Uploaded to Fivemanage, into Config.media.folder.
zyke set yecoyz_tablet_zyke_token "zms_api_..." Uploaded to Zyke Media Studio. The token needs the Upload scope, and Delete for deleteFiles.
custom OpenServer.UploadMedia in open/server.lua Your own storage: store the file and return its address.

With Config.media.deleteFiles = true, the file is also deleted when a picture is removed from a Gallery. Printed photos of it stop showing then.

Stuck on this step?

Open a ticket in the Discord with what you tried and what you see, and I'll help you get it running.

Ask on Discord
Up nextConfigurationEvery option in the Yecoyz Tablet config file, and the open hooks.