Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ProjectBackup/C#/FiveM/Framework/Framework.Server/Server.cs
2022-12-07 15:35:41 +01:00

19 lines
762 B
C#

using System;
using CitizenFX.Core;
using Framework.Server.Handlers;
namespace Framework.Server {
public class Server : ServerScript {
public Server() {
MySql.Initialize("Server=213.136.89.237;Database=FiveM;Uid=FiveM;Pwd=uTwjt1nGX3nf.LHR;");
MySql.CreateTables(
"CREATE TABLE IF NOT EXISTS players (owner VARCHAR(100), charId VARCHAR(100), sex BOOLEAN, height INT(3), firstName VARCHAR(60), lastName VARCHAR(60), birth VARCHAR(10), skin LONGTEXT)"
);
EventHandlers["playerJoining"] += new Action<Player>(JoinHandler.OnPlayerJoining);
EventHandlers["server:spawn:register"] += new Action<Player, dynamic>(JoinHandler.OnRegister);
}
}
}