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.)
[url]http://wiki.darkrp.com/index.php?title=LUA:DarkRP_Chat_Command[/url]
You need to do this in a shared file
[lua]
DarkRP.declareChatCommand{
command = "createcash",
description = "Create cash!",
delay = 1.5
}
[/lua]
[QUOTE=DiscoKnight;50038164][url]http://wiki.darkrp.com/index.php?title=LUA:DarkRP_Chat_Command[/url]
You need to do this in a shared file
[lua]
DarkRP.declareChatCommand{
command = "createcash",
description = "Create cash!",
delay = 1.5
}
[/lua][/QUOTE]
what if there is no shared file in the folder?
[QUOTE=KRNXinja;50038510]what if there is no shared file in the folder?[/QUOTE]
There really should be. But if there isn't, just put that snippet in both server and client
[QUOTE=Neat-Nit;50038707]There really should be. But if there isn't, just put that snippet in both server and client[/QUOTE]
i found that shared file i didn't know that it was used as sh_(something) so thank you!
Sorry, you need to Log In to post a reply to this thread.