Admin commands require player.Permissions:IsAdmin() to be true. Staff commands require player.Permissions:IsStaff(). These are checked automatically by the registration system.
Use the Chat component to register your own admin/staff commands:
-- Admin commandChat:RegisterAdminCommand('spawn_vehicle', function(source, args, rawCommand) local model = args[1] if not model then Chat.Send.System:Single(source, 'Usage: /spawn_vehicle [model]') return end TriggerClientEvent('mythic-admin:client:SpawnVehicle', source, model)end, { help = 'Spawn a vehicle', params = { { name = 'model', help = 'Vehicle model name' } }}, 1)-- Staff commandChat:RegisterStaffCommand('check_player', function(source, args, rawCommand) local targetId = tonumber(args[1]) if not targetId then return end local player = Fetch:Source(targetId) if not player then Chat.Send.System:Single(source, 'Player not found') return end local char = player:GetData('Character') local stateId = char:GetData('SID') Chat.Send.System:Single(source, 'Player SID: ' .. stateId)end, { help = 'Check player info', params = { { name = 'id', help = 'Player server ID' } }}, 1)