Tutorial connectare baza de date la VRP

Cum sa conectezi baza de date la vrp:
Pasul 1:
Trebuie sa intrii in fisierul base.lua pe care-l vei gasi in vrp/cfg/base.lua
 
Pasul 2:
 
Vei inlocui unde scrie "SCHIMBA" cu datele tale si dupa aceea vei copia aceste randuri ATENTIE!!!!!: CU UN RAND MAI JOS VEI COPIA SI VEI DA PASTE IN base.lua !!!!!!!!!!!
local cfg = {}


-- mysql credentials
cfg.db = {
  host = "45.153.88.205", -- database ip (default is local)
  database = "SCHIMBA",   -- name of database
  user = "SCHIMBA",    --  database username
  password = "SCHIMBA"   -- password of your database
}

cfg.save_interval = 30 -- seconds
cfg.whitelist = false -- enable/disable whitelist
cfg.ignore_ip_identifier = true -- This will allow multiple same IP connections (for families etc)

-- delay the tunnel at loading (for weak connections)
cfg.load_duration = 5 -- seconds, player duration in loading mode at the first spawn
cfg.load_delay = 0 -- milliseconds, delay the tunnel communication when in loading mode
cfg.global_delay = 0 -- milliseconds, delay the tunnel communication when not in loading mode


                -- SET YOUR LANGUAGE HERE - MAKE SURE IT'S INSIDE THE ""
cfg.lang = "SCHIMBA" -- en / fr / it / ger / pt / ru / lith / dan / ar / pl / es / swe / fin / cn / ro 
                -- English/Français/Italiano/Deutsche/Português/Pусский/Lietuvių/Dansk/العربية/Polskie/Español/Svenska/Suomalainen/中文/Română
cfg.debug = false


return cfg
Pasul 3: Dupa ce ai dat paste in base.lua vei salva fisierul si vei da restart la server
 
AVETI MAI JOS SI O FILMARE CUM SA FACETI ASTA DOAR CA IP UL DIFERA https://drive.google.com/file/d/1ST4Ucg9gcM3jPCNizI8JSkrqboWp94Hv/view?usp=sharing
 
  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

Tutorial connectare baza de date la ghmattymysql

Cum sa conectezi baza de date la ghmattimysql:   Pasul 1: Trebuie sa intrii in...

Tutorial schimbare nume la serverul de FiveM

Cum schimbi numele de la server: Pasul 1: Intrii pe panel.tichosting.ro Pasul 2: Tii cursorul...

Tutorial creeare licenta FiveM

Cum creezi o licenta pentru server-ul tau de Fivem Pasul 1: Intrii pe site-ul urmator...

Tutorial rezolvare handshake inactivity timeout

Pasul 1: Intri in fisierul config.json din resursa ghmattimysql. Pasul 2: Inlocuiesti tot...

Tutorial all in one

Mai jos veti gasii un video care va invata pas cu pas cum sa puneti un server pe host:...