Client-Side
RegisterCommand('monetizedcommand', function()
local isAllowed = exports["monolith-monetization"]:hasMonetizerGroup("copper") -- check if the player has the monetization group "copper"
if isAllowed then
print("Will execute this command because the player has the required monetization status")
else
print("Will not execute this command because the player does not have the required monetization status")
end
end, false)Server-Side
RegisterNetEvent('monetizedevent', function()
local source = source
local isAllowed = exports["monolith-monetization"]:hasMonetizerGroup(source, "copper") -- check if the player has the monetization group "copper"
if isAllowed then
print("Will execute this event because the player has the required monetization status")
else
print("Will not execute this event because the player does not have the required monetization status")
end
end)