ghmattimysql
ghmattimysql is a resource for your FiveM server to communicate with a mysql database
How it works
With ghmattimysql you can access a database like MySQL or MariaDB. Just install the resource.
These to lines will be written beforeÂ
start es_extended
 inÂserver.cfg
.
start ghmattimysql
These lines will be deleted fromÂ
vrp/base.lua
:
MySQL.debug = config.debug
-- open MySQL connection
MySQL.createConnection("vRP", config.db.host,config.db.user,config.db.password,config.db.database)
InÂ
ghmattimysql/config.json
 you will configure with your db details:
{
"user": "root",
"password": "",
"host": "localhost",
"port": "3306",
"database": "vrp"
}
If you have this error:
[ERROR] CONNECT ETIMEDOUT
Set start toÂ
STREAM
 type resources ( cars, skins, mappings ) beforeÂstart ghmattimysql
!
Download plugin
The FiveM download mirror is hosted by github. We will redirect you once you click on it.