Exports
Please note that these are server side exports
getPlayerRestaurantId
RegisterCommand('getPlayerRestId', function(source, args)
local playerId = source
local restaurantId = exports['nn_restaurants']:getPlayerRestaurantId(playerId)
if restaurantId then
print('The player is employed at restaurant id: ', restaurantId)
else
print('The player is not employed at any restaurant')
end
end)addMoney
RegisterCommand('addMoneyToRestaurant', function(source, args)
local restaurantId = tonumber(args[1])
exports['nn_restaurant']:addMoney(restaurantId, 15000, 'This is a description to add money')
end)removeMoney
Last updated