Begin tuning system
This commit is contained in:
6
Main.cs
6
Main.cs
@@ -4,6 +4,7 @@ using GTANetworkAPI;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using reallife_gamemode.Model;
|
||||
using reallife_gamemode.Server.Entities;
|
||||
using reallife_gamemode.Server.Managers;
|
||||
|
||||
/**
|
||||
* @overview Life of German Reallife - Main Class (Main.cs)
|
||||
@@ -25,6 +26,8 @@ namespace reallife_gamemode
|
||||
NAPI.Server.SetDefaultSpawnLocation(DEFAULT_SPAWN_POSITION, DEFAULT_SPAWN_HEADING);
|
||||
NAPI.Server.SetAutoSpawnOnConnect(false);
|
||||
|
||||
TuningManager.AddTuningGarage(new Vector3(-341, -134, 38.5), new Vector3(-334, -143, 41));
|
||||
|
||||
using (var context = new DatabaseContext())
|
||||
{
|
||||
context.Bans.FirstOrDefault();
|
||||
@@ -34,5 +37,8 @@ namespace reallife_gamemode
|
||||
context.SaveChanges();
|
||||
}
|
||||
}
|
||||
|
||||
[Command("dim")]
|
||||
public void dim(Client player) => player.SendChatMessage(player.Dimension.ToString());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user