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 serverAVETI MAI JOS SI O FILMARE CUM SA FACETI ASTA DOAR CA IP UL DIFERA https://drive.google.com/file/d/1ST4Ucg9gcM3jPCNizI8JSkrqboWp94Hv/view?usp=sharing