21 lines
496 B
C#
21 lines
496 B
C#
using GTANetworkAPI;
|
|
using reallife_gamemode.Model;
|
|
using reallife_gamemode.Server.Entities;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace reallife_gamemode.Server.Extensions
|
|
{
|
|
public static class ClientExtension
|
|
{
|
|
public static User GetUser(this Client client)
|
|
{
|
|
using(DatabaseContext dbContext = new DatabaseContext())
|
|
{
|
|
return dbContext.Users.Find(client.Name);
|
|
}
|
|
}
|
|
}
|
|
}
|