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/Extensions/PlayerExtensions.cs
2023-07-31 21:20:56 +02:00

14 lines
401 B
C#

using System;
using CitizenFX.Core;
using Framework.Server.Handlers;
using Framework.Shared.Models;
namespace Framework.Server.Extensions {
public static class PlayerExtensions {
public static int ServerId(this Player player) => Convert.ToInt32(player.Handle);
public static PlayerData GetPlayerData(this Player player) => JoinHandler.PlayerDatas[player.ServerId()];
}
}