[Release-Archived] Cops FiveM

you have to be super admin to do it

@Kyominii I’ve seen this script on many servers, and it’s pretty damn good, but for some reason on my server it doesn’t work. I can’t see the blip when i go to a PD and in the config it says i require “skin customization” to be able to enable spawning as a ped on spawn. Could you help?

stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:760: in metamethod ‘__index’
@police/server/server.lua:20: in main chunk
Failed to load script server/server.lua.

can u help me with this one @Kyominii

does this work with eup?

Does anyone have a problem where if they cuff someone, they are not cuffed and can move around and when they drag them they get uncuffed

1 Like

how do i fix this Error loading script server/server.lua in resource police: citizen:/scripting/lua/scheduler.lua:762: No such export execute in resource ghmattimysql
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:762: in metamethod ‘__index’
@police/server/server.lua:20: in main chunk
Failed to load script server/server.lua.

When i try to add CopAdd or CopAddAdmin and my id tells me there is no such command. Can anyone help ?

EDIT : I got it to work but now it doens’t change the uniform, menu not working when i press F5, police resource doesn’t start at all, i have to restart it manually to show up.

same thing happens to me to

Tried everything nothing works, the police resource not even starting, the police table doens’t show up…so many problems with this version.

so this comes up and this is ingame

can anyone help me on adding cops i can’t even make myself a cop

Error loading script server/server.lua in resource police: citizen:/scripting/lua/scheduler.lua:762: No such export execute in resource ghmattimysql
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:762: in metamethod ‘__index’
@police/server/server.lua:20: in main chunk
Failed to load script server/server.lua.
Can someone help me with this?

I get that same error. I do not get the You are not authorized to use this command though.

I am getting this error, why does this happen?

it means that you have installed the source for ghmattimysql instead of the actual release
use this one https://github.com/GHMatti/ghmattimysql/releases/download/1.1.0/ghmattimysql.zip

1 Like

Now I am getting no error, but when I try to join “Couldn’t load resource ghmattimysql. :(” shows up.

{
“user”: “USER”,
“password”: “MY DATABASE PSW”,
“host”: “139.99.208.143”, IS this meant to be my IP???
“port”: 32054, and PORT next to IP??? like
“database”: “DATABASE NAME”,
“connectionLimit”: 32,
“dateStrings”: true
}
IP-Address

139.99.208.143:32054
is anyone else getting this error? :confused: im using zap hosting

at Protocol._enqueue (ghmattimysql.js:308:2850)
at Protocol.handshake (ghmattimysql.js:308:1096)
at PoolConnection.connect (ghmattimysql.js:140:2921)
at Pool.getConnection (ghmattimysql.js:260:1073)
at Pool.query (ghmattimysql.js:260:3806)
at Promise (ghmattimysql.js:278:1421)
at new Promise ()
at execute (ghmattimysql.js:278:1386)
at Object.global.exports [as callback] (ghmattimysql.js:278:1775)
at citizen:/scripting/v8/main.js:87:41e[0m
e[91mError: (node:12673) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 8)e[0m
Sending heartbeat to live-internal.fivem.net:30110

1 Like

im getting the same, please tell me if you fix it :slight_smile:

-Zev

1 Like

inside resources rename the folder ghmattimysql-master to ghmattimysql

I already did