local sqlDatas = {
[\"host\"] = \"127.0.0.1\",
[\"user\"] = \"root\",
[\"password\"] = \"\",
[\"database\"] = \"database\",
}
local connection
addEventHandler(\"onResourceStart\", resourceRoot,
function()
connection = dbConnect(\"mysql\", \"dbname=\"..sqlDatas[\"database\"]..\";host=\"..sqlDatas[\"host\"]..\"\", sqlDatas[\"name\"], sqlDatas[\"password\"], \"autoreconnect=1\")
if not connection then
outputChatBox(\"Adatbázis: Sikertelen MySQL kapcsolódás!\")
connection = false
end
end)
function getConnection()
return connection
end