Usage
Explanation
This script allows users to add image links to a set id table
for example, jim-pizzathis creates an id
pizzathis_pizzathis
(job role + location name) (bad example, I know)All users will be able to target this location to "Show images" but only the ones with the required job role will be able to edit it
When editing, they need to add a
http://
link to an image, and this will add it to a table inmenuLinks.json
classing each entry as a "page"
Jim Restaurant integration
In side my restaurant scripts location files you can add
Menu = {}
if not already addedThe common example of this is:
Menu = {
{ prop = { model = "bzzz_prop_restaurant_menu_c", coords = vec4(810.90, -749.80, 28.065, 90.91) },
label = "Show Menu",
icon = "fas fa-newspaper",
},
},
This displays a prop and a target for the users to use.
The prop in the example is from bzzz and is free. bzzz.tebex.io/package/5722944
Custom Target Creation
In config.lua is the customTargets table, how its used is explained there
Removing the "allowed" table from an entry will allow all users to be able to add images to that location
The id of this NEEDS to be unique, otherwise you may get overriding result
Other Uses
Because of the way the script loads the images, it IS possible to use the export to trigger the image display at any time
For example, adding this to something like an item when making it usable will trigger a film post image
exports["jim-imagedisplay"]:showJobMenu(
nil,
{
"https://images.squarespace-cdn.com/content/v1/51efa630e4b0d3a23d01fb83/1740572084885-B5PXVYXS3WEVB6GZEYDV/FINAL-SITH-ONESHEET-JAN6UPDATE.jpg",
}
)
Last updated