HEX
HexscriptsJobscreatorExportsClient Exports

Restaurant Menu

Client exports to show and close a business menu card on the local player's screen.

openRestrauntMenu

Shows a menu card on screen and plays the reading animation with the configured prop.

exports['hex_jobscreator']:openRestrauntMenu({
    url = 'https://example.com/menu.png',
    label = 'Unicorn',
    from = 'John Doe'
})

Prop

Type

Returns

ValueMeaning
truemenu shown
false, reasonsee the reasons below

Reasons

CodeMeaning
invalid_datathe argument must be a table
missing_urlurl is required
player_deadthe player is fatally injured

closeRestrauntMenu

Closes the menu card.

local ok, err = exports['hex_jobscreator']:closeRestrauntMenu()

Returns

ValueMeaning
truemenu closed
false, 'not_open'no menu was showing