Client side

Exports

-- Get current player data
local playerData = exports['mh_restaurants']:GetPlayerData()

-- Check if player is on duty
local onDuty = exports['mh_restaurants']:IsOnDuty()

-- Get restaurant data based on player's job
local restaurantId, restaurantData = exports['mh_restaurants']:GetRestaurantFromJob()

-- Get the restaurant the player is currently physically inside
local currentRestaurant = exports['mh_restaurants']:GetCurrentRestaurant()

Events

  • mh_restaurants:onJobUpdate (job)

  • mh_restaurants:toggleDuty - Toggles duty status for the current restaurant job.

Last updated