FiveM-Scripts / Cops_FiveM

A cops script for FiveM
https://forum.fivem.net/t/release-cops-fivem/17460
GNU Affero General Public License v3.0
70 stars 56 forks source link

Keep mysql-async support #142

Closed Sampleeeee closed 6 years ago

Sampleeeee commented 6 years ago

I think there should be a version of Cops_FiveM that supports mysql-async, for the people running on linux machines this resource no longer works because you added ghmattimysql, according to the author of the script "Linux has probably some issues with v8. So Linux users cannot come into the comfort of using this library yet"

ghermans commented 6 years ago

related to #138

Sampleeeee commented 6 years ago

Would it be possible to run an older version of the resource? It doesn't seem to work if I try to do one that supports mysql-async, no errors it just says I need to update the resource version. Did I install it wrong or do I need to run the new version for it to work

ghermans commented 6 years ago

Could you please verify if you still have the same issue with this the latest version https://github.com/FiveM-Scripts/Cops_FiveM/releases/tag/v1.4.4.4.1

Sampleeeee commented 6 years ago

It wouldn't work because I can't use ghmattimysql would it?

ghermans commented 6 years ago

i just did a fresh install on a vagrant box with ubuntu/trusty64

when starting the box i didn't get any errors.

Started resource sessionmanager
Started resource mapmanager
Started resource spawnmanager
Started gametype Freeroam
Started resource fivem
Started resource hardcap
Started resource rconlog
Started resource ghmattimysql
Started resource police
Authenticating server license key...
Server license key authentication succeeded. Welcome!
cfx> Started map fivem-map-hipster
Started resource fivem-map-hipster

Commands work fine

cfx> copadd 1
Adding record for player to the database

20181021023433_1

Verified going on duty and no issues either 20181021023510_1 20181021023518_1

Sampleeeee commented 6 years ago

Oh, ok, based off of the ghmattimysql forum post it doesn't work on linux machines, ill try it out

Sampleeeee commented 6 years ago

Yep it works, thanks :D