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
| Value | Meaning |
|---|---|
true | menu shown |
false, reason | see the reasons below |
Reasons
| Code | Meaning |
|---|---|
invalid_data | the argument must be a table |
missing_url | url is required |
player_dead | the player is fatally injured |
closeRestrauntMenu
Closes the menu card.
local ok, err = exports['hex_jobscreator']:closeRestrauntMenu()Returns
| Value | Meaning |
|---|---|
true | menu closed |
false, 'not_open' | no menu was showing |