ghmattimysql
ghmattimysql is a resource for your FiveM server to communicate with a mysql database
Jak to działa
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
inserver.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 ) beforestart ghmattimysql
!
Download plugin
The FiveM download mirror is hosted by github. We will redirect you once you click on it.