I have a probelm for script

Hi,
my code


local conf = ANOCONF

local function PlayerAno(ply, args)
        if args == "" then
                DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("invalid_x", "argument", ""))
                return ""
        end
        local DoSay = function(text)
                if text == "" then
                        DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("invalid_x", "argument", ""))
                        return
                end
                for k,v in pairs(player.GetAll()) do
                        local col = Color(255,0,0,255)
                        DarkRP.talkToPerson(v, col, conf.tchatmsg, Color(255, 255, 255, 255), text, ply)
						timer.Simple( 1.5, function() ply:ConCommand([[say "/// I just run a /ano"]]) end)
			end
        end
        return args, DoSay
end


DarkRP.defineChatCommand(conf.cmd, PlayerAno, 1.5) 

-- Declaration of the command


DarkRP.declareChatCommand{
	command = "ano",
	description = "write an annonyme on the tchat",
	delay = 1.5
}

-- Automatic message in the chat.


function MsgAuto()
    if AutoMSG then
        for k, v in pairs(player.GetAll()) do
	     v:ChatPrint( conf.AnoMsg )
        end
    end
  end

timer.Create( "automsg", conf.TimeMsg, 0, MsgAuto)

Lua error
[ERROR] addons/ano_cmd/lua/autorun/server/ano.lua:23: attempt to index global ‘DarkRP’ (a nil value)

  1. unknown - addons/ano_cmd/lua/autorun/server/ano.lua:23

I put my script in lua/autorun/server

it does not recognize darkrp functions that do? before I had put it in modules that work, but I want to put it in lua / autorun / server into a addons , I know it’s possible.

Thank you for your support.

[editline]5th September 2015[/editline]

I don"t understand why…

The script is running before the gamemode can set up the DarkRP table.