[Release-Archived] Cops FiveM

So check if you have any error in your console

No errors on startup and no errors from the commands

Please post a screen of your console logs (I want to be sure ^^)

https://gyazo.com/22f2ccc6e11d1cbf304101ad8e822583

Is there anyway to change the menu from f5 to another key, say f4?

Sure, modify this line : https://github.com/Kyominii/Cops_FiveM/blob/master/police-fxserver/client/client.lua#L677
Use that for control ids : https://wiki.fivem.net/wiki/Controls

I have done, but when I type /copadd [myid] it says,

Error running call reference function for resource police: server/server.lua:14: attempt to index a nil value (global ‘MySQL’)
stack traceback:
server/server.lua:14: in function ‘addCop’
server/server.lua:239: in local ‘ref’
citizen:/scripting/lua/scheduler.lua:277: in function citizen:/scripting/lua/scheduler.lua:268
Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:39: Failed to execute thread: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/MessagePack.lua:830: in method ‘underflow’
citizen:/scripting/lua/MessagePack.lua:465: in field ‘any’
citizen:/scripting/lua/MessagePack.lua:860: in field ‘unpack’
citizen:/scripting/lua/scheduler.lua:338: in field ‘cmd’
server/main.lua:102: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:124: in function citizen:/scripting/lua/scheduler.lua:123
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:39: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:123: in function citizen:/scripting/lua/scheduler.lua:92
hitch warning: frame time of 272 milliseconds

You said you are using couchdb, aren’t you ? Then why do you let MySQL on config file ? Edit config/config_db.lua to fix

How exactly would I do that?

Install notepad++, open config/config_db.lua and read comments

Yeah I have done that I see mysql, but I don’t specifically which bit to remove.

https://github.com/Kyominii/Cops_FiveM/blob/master/police-fxserver/config/config_db.lua#L5

You just have to replace mysql-async by couchdb (read !)

So just change driver = from “mysql-async”, to “couchdb”,

Yes ! Quite easy isn’t it ?

Ok, thanks. Everything works but when I do /cuff it says, I’m not a police officer, should I do it with the police menu instead?

/cuff isn’t a Cops_FiveM command.
All features are available through the Police Menu

Ok thank you for your help, I have a question for you, have you seen on several servers, where they have police department and its blue next to their name, and for normal people it says Civillian and then their name in yellow. Do you know script that is?

Nope, but in 1.4, ranks will be visible on chat when you talk

1 Like

Dope, can’t wait for that bro.

1 Like

https://gyazo.com/2d963df4de71d83e33fd263bb3d92697

  1. Essential Mode V4
  2. ES_RP
  3. Reinstalled version ES_Admin
  4. I tried a lot.
  5. Gives me the error showed above!