Update 07.12.2022
This commit is contained in:
19
C#/FiveM/Framework/Framework.Server/Server.cs
Normal file
19
C#/FiveM/Framework/Framework.Server/Server.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user