private void GetPlayerData(int source, List <object> args, string raw) { PlayerData data = ESX.GetPlayerData(); foreach (Account i in data.accounts) { ESX.ShowNotification($"{i.name}: {i.money}"); } if (data.loadout.Count > 0) { foreach (Nexd.ESX.Shared.Weapon i in data.loadout) { ESX.ShowNotification($"{i.name} {i.ammo}"); } } else { ESX.ShowNotification("Your loadout is empty"); } if (data.inventory.Count > 0) { foreach (InventoryItem i in data.inventory) { ESX.ShowNotification($"{i.name} {i.count}"); } } else { ESX.ShowNotification("Your inventory is empty"); } ESX.ShowNotification($"{data.coords.X} {data.coords.Y} {data.coords.Z} {data.heading}"); ESX.ShowNotification($"{data.job.name} Salary: {data.job.grade_salary}"); }