Archived
Private
Public Access
1
0

Update 29.10.2022

This commit is contained in:
2022-10-29 18:17:27 +02:00
parent 2a1d18cb9d
commit 494fb2d8c5
355 changed files with 408588 additions and 155997 deletions

View File

@@ -0,0 +1,72 @@
namespace Nexd.ESX.Client
{
using System.Collections.Generic;
public static partial class ESX
{
public static partial class UI
{
public class MenuData
{
public dynamic Raw;
public MenuData(dynamic data) => Raw = data;
public MenuData()
{
Raw = new System.Dynamic.ExpandoObject();
Raw.title = new System.Dynamic.ExpandoObject();
Raw.align = new System.Dynamic.ExpandoObject();
Raw.elements = new System.Dynamic.ExpandoObject();
Raw.elements.head = new System.Dynamic.ExpandoObject();
Raw.elements.rows = new System.Dynamic.ExpandoObject();
}
public List<MenuElement> elements
{
get
{
List<MenuElement> temp = new List<MenuElement>();
foreach (var i in Raw.elements)
temp.Add(new MenuElement(i));
return temp;
}
set => Raw.elements = value;
}
public MenuElement current => new MenuElement(Raw.current);
public string title
{
get => Raw.title;
set => Raw.title = value;
}
public string align
{
get => Raw.align;
set => Raw.align = value;
}
public string[] head
{
get => Raw.elements.head;
set => Raw.elements.head = value;
}
public dynamic rows
{
get => Raw.elements.rows;
set => Raw.elements.rows = value;
}
public string type {
get => Raw.type;
set => Raw.type = value;
}
}
}
}
}

View File

@@ -0,0 +1,66 @@
namespace Nexd.ESX.Client
{
public static partial class ESX
{
public static partial class UI
{
public class MenuElement
{
public dynamic Raw;
public MenuElement(dynamic data) => Raw = data;
public MenuElement(dynamic label, dynamic value, dynamic customdata = null, string type = "default")
{
Raw = new System.Dynamic.ExpandoObject();
Raw.label = label;
Raw.value = value;
Raw.type = type;
custom = customdata;
}
public MenuElement()
{
Raw = new System.Dynamic.ExpandoObject();
Raw.label = new System.Dynamic.ExpandoObject();
Raw.value = new System.Dynamic.ExpandoObject();
Raw.name = new System.Dynamic.ExpandoObject();
Raw.options = new System.Dynamic.ExpandoObject();
Raw.type = "default";
custom = new System.Dynamic.ExpandoObject();
}
public dynamic label
{
get => Raw.label;
set => Raw.label = value;
}
public dynamic name {
get => Raw.name;
set => Raw.name = value;
}
public dynamic value
{
get => Raw.value;
set => Raw.value = value;
}
public dynamic options {
get => Raw.options;
set => Raw.options = value;
}
public string type
{
get => Raw.type;
set => Raw.type = value;
}
public dynamic custom { get; set; }
}
}
}
}

View File

@@ -0,0 +1,67 @@
namespace Nexd.ESX.Client
{
using System.Collections.Generic;
using CitizenFX.Core;
using Nexd.ESX.Shared;
public class PlayerData
{
public dynamic Raw;
public PlayerData() { }
public PlayerData(dynamic data) => Raw = data;
public Job job => new Job(Raw.job);
public Vector3 coords => new Vector3((float)Raw.coords.x, (float)Raw.coords.y, (float)Raw.coords.z);
public double heading => Raw.coords.heading;
public double maxWeight => Raw.maxWeight;
public List<Shared.Weapon> loadout
{
get
{
List<Shared.Weapon> temp = new List<Shared.Weapon>();
var loadout = Raw.loadout;
foreach (var i in loadout)
{
temp.Add(new Shared.Weapon(i));
}
return temp;
}
}
public Account[] accounts
{
get
{
Account[] accounts = new Account[3];
var raw = Raw.accounts;
for (int i = 0; i < 3; i++)
accounts[i] = new Account(raw[i]);
return accounts;
}
}
public List<InventoryItem> inventory
{
get
{
List<InventoryItem> inventory = new List<InventoryItem>();
var rawdata = Raw.inventory;
foreach (var i in rawdata)
{
inventory.Add(new InventoryItem(i));
}
return inventory;
}
}
}
}

View File

@@ -0,0 +1,334 @@
using System;
using System.Collections.Generic;
using System.Dynamic;
using CitizenFX.Core;
namespace Nexd.ESX.Client {
public class VehicleProperties {
private dynamic Raw;
public VehicleProperties() {
Raw = new ExpandoObject();
}
public VehicleProperties(dynamic data) => Raw = data;
public dynamic GetRaw() => Raw;
public int model {
get => Convert.ToInt32(Raw.model);
set => Raw.model = Convert.ToInt32(value);
}
public string plate {
get => Raw.plate;
set => Raw.plate = value;
}
public int plateIndex {
get => Raw.plateIndex;
set => Raw.plateIndex = value;
}
public double bodyHealth {
get => Raw.bodyHealth;
set => Raw.bodyHealth = value;
}
public double engineHealth {
get => Raw.engineHealth;
set => Raw.engineHealth = value;
}
public double tankHealth {
get => Raw.tankHealth;
set => Raw.tankHealth = value;
}
public double fuelLevel {
get => Raw.fuelLevel;
set => Raw.fuelLevel = value;
}
public double dirtLevel {
get => Raw.dirtLevel;
set => Raw.dirtLevel = value;
}
public VehicleColor color1 {
get => (VehicleColor)Raw.color1;
set => Raw.color1 = (int)value;
}
public VehicleColor color2 {
get => (VehicleColor)Raw.color2;
set => Raw.color2 = (int)value;
}
public VehicleColor pearlescentColor {
get => (VehicleColor)Raw.pearlescentColor;
set => Raw.pearlescentColor = (int)value;
}
public VehicleColor wheelColor {
get => (VehicleColor)Raw.wheelColor;
set => Raw.wheelColor = (int)value;
}
public VehicleWheelType wheels {
get => (VehicleWheelType)Raw.wheels;
set => Raw.wheels = (int)value;
}
public VehicleWindowTint windowTint {
get => (VehicleWindowTint)Raw.windowTint;
set => Raw.windowTint = (int)value;
}
public List<bool> neonEnabled {
get => Raw.neonEnabled;
set => Raw.neonEnabled = value;
}
public List<int> neonColor {
get => Raw.neonColor;
set => Raw.neonColor = value;
}
public List<object> extras {
get => Raw.extras;
set => Raw.extras = value;
}
public dynamic tyreSmokeColor {
get => Raw.tyreSmokeColor;
set => Raw.tyreSmokeColor = value;
}
public int modSpoilers {
get => Raw.modSpoilers;
set => Raw.modSpoilers = value;
}
public int modFrontBumper {
get => Raw.modFrontBumper;
set => Raw.modFrontBumper = value;
}
public int modRearBumper {
get => Raw.modRearBumper;
set => Raw.modRearBumper = value;
}
public int modSideSkirt {
get => Raw.modSideSkirt;
set => Raw.modSideSkirt = value;
}
public int modExhaust {
get => Raw.modExhaust;
set => Raw.modExhaust = value;
}
public int modFrame {
get => Raw.modFrame;
set => Raw.modFrame = value;
}
public int modGrille {
get => Raw.modGrille;
set => Raw.modGrille = value;
}
public int modHood {
get => Raw.modHood;
set => Raw.modHood = value;
}
public int modFender {
get => Raw.modFender;
set => Raw.modFender = value;
}
public int modRightFender {
get => Raw.modRightFender;
set => Raw.modRightFender = value;
}
public int modRoof {
get => Raw.modRoof;
set => Raw.modRoof = value;
}
public int modEngine {
get => Raw.modEngine;
set => Raw.modEngine = value;
}
public int modBrakes {
get => Raw.modBrakes;
set => Raw.modBrakes = value;
}
public int modTransmission {
get => Raw.modTransmission;
set => Raw.modTransmission = value;
}
public int modHorns {
get => Raw.modHorns;
set => Raw.modHorns = value;
}
public int modSuspension {
get => Raw.modSuspension;
set => Raw.modSuspension = value;
}
public int modArmor {
get => Raw.modArmor;
set => Raw.modArmor = value;
}
public int modTurbo {
get => Raw.modTurbo;
set => Raw.modTurbo = value;
}
public bool modSmokeEnabled {
get => Raw.modSmokeEnabled;
set => Raw.modSmokeEnabled = value;
}
public bool modXenon {
get => Raw.modXenon;
set => Raw.modXenon = value;
}
public int modFrontWheels {
get => Raw.modFrontWheels;
set => Raw.modFrontWheels = value;
}
public int modBackWheels {
get => Raw.modBackWheels;
set => Raw.modBackWheels = value;
}
public int modPlateHolder {
get => Raw.modPlateHolder;
set => Raw.modPlateHolder = value;
}
public int modVanityPlate {
get => Raw.modVanityPlate;
set => Raw.modVanityPlate = value;
}
public int modTrimA {
get => Raw.modTrimA;
set => Raw.modTrimA = value;
}
public int modOrnaments {
get => Raw.modOrnaments;
set => Raw.modOrnaments = value;
}
public int modDashboard {
get => Raw.modDashboard;
set => Raw.modDashboard = value;
}
public int modDial {
get => Raw.modDial;
set => Raw.modDial = value;
}
public int modDoorSpeaker {
get => Raw.modDoorSpeaker;
set => Raw.modDoorSpeaker = value;
}
public int modSeats {
get => Raw.modSeats;
set => Raw.modSeats = value;
}
public int modSteeringWheel {
get => Raw.modSteeringWheel;
set => Raw.modSteeringWheel = value;
}
public int modShifterLeavers {
get => Raw.modShifterLeavers;
set => Raw.modShifterLeavers = value;
}
public int modAPlate {
get => Raw.modAPlate;
set => Raw.modAPlate = value;
}
public int modSpeakers {
get => Raw.modSpeakers;
set => Raw.modSpeakers = value;
}
public int modTrunk {
get => Raw.modTrunk;
set => Raw.modTrunk = value;
}
public int modHydrolic {
get => Raw.modHydrolic;
set => Raw.modHydrolic = value;
}
public int modEngineBlock {
get => Raw.modEngineBlock;
set => Raw.modEngineBlock = value;
}
public int modAirFilter {
get => Raw.modAirFilter;
set => Raw.modAirFilter = value;
}
public int modStruts {
get => Raw.modStruts;
set => Raw.modStruts = value;
}
public int modArchCover {
get => Raw.modArchCover;
set => Raw.modArchCover = value;
}
public int modAerials {
get => Raw.modAerials;
set => Raw.modAerials = value;
}
public int modTrimB {
get => Raw.modTrimB;
set => Raw.modTrimB = value;
}
public int modTank {
get => Raw.modTank;
set => Raw.modTank = value;
}
/*public int modWindows
{
get => Raw.modWindows;
set => Raw.modWindows = value;
}*/
public int modLivery {
get => Raw.modLivery;
set => Raw.modLivery = value;
}
}
}