How do you declare a defined command?

I added a new addon to my server and put it in, loaded up the server, and i got a blue message saying:

Chat command “policereport” is defined but not declared!

I looked into the lua file and I saw the definition stuff but I don’t know how to declare it, can someone please tell me how to declare a defined thingy. (note: that i don’t know what to call it.)

http://wiki.darkrp.com/index.php?title=LUA:DarkRP_Chat_Command

You need to do this in a shared file
[lua]
DarkRP.declareChatCommand{
command = “createcash”,
description = “Create cash!”,
delay = 1.5
}
[/lua]

what if there is no shared file in the folder?

There really should be. But if there isn’t, just put that snippet in both server and client

i found that shared file i didn’t know that it was used as sh_(something) so thank you!