Lovin.mta Posted February 21, 2022 Posted February 21, 2022 I have this problem in my Mta server : WARNING: [admin]/admin/server/admin_server.lua:1263: Access denied @ 'startResource' , please help .
iNawaF Posted February 21, 2022 Posted February 21, 2022 Check out admin_server.lua Or replace the file addEvent ( "aResource", true ) addEventHandler ( "aResource", root, function ( name, action ) if checkClient( "command."..action, source, 'aResource', action ) then return end local pname = getPlayerName ( source ) if ( hasObjectPermissionTo ( client or source, "command."..action ) ) then local text = "" if ( action == "start" ) then if ( startResource ( getResourceFromName ( name ), true ) ) then text = "started" end elseif ( action == "restart" ) then if ( getResourceState ( getResourceFromName ( name ) ) == "running" ) then if ( restartResource ( getResourceFromName ( name ) ) ) then text = "restarted" end end elseif ( action == "stop" ) then if ( stopResource ( getResourceFromName ( name ) ) ) then text = "stopped" end elseif ( action == "delete" ) then if ( deleteResource ( getResourceFromName ( name ) ) ) then text = "deleted" end elseif ( action == "stopall" ) then if ( stopAllResources ( ) ) then text = "All Stopped" end end if ( text ~= "" ) then outputServerLog ( "ADMIN: Resource \'" .. name .. "\' " .. text .. " by " .. getAdminNameForLog ( source ) ) for id, player in ipairs(getElementsByType("player")) do triggerClientEvent ( player, "aClientLog", root, text ) end end return true end outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 ) return false end ) Access the admin_server.lua file look for line 1261 and put the said code
Lovin.mta Posted April 5, 2022 Author Posted April 5, 2022 Thanks, The problem is in the ACL Because in the Group ADMIN i dont have the right Start Resource/Stop resources/ Restart resources
iNawaF Posted April 5, 2022 Posted April 5, 2022 Go to ACL, add resource.* in Console group and Admin
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now