private void JobExist(int source, List <object> args, string raw) { bool exist = ESX.DoesJobExist(args[0].ToString(), Convert.ToInt32(args[1])); xPlayer xPlayer = ESX.GetPlayerFromId(source); xPlayer.Raw.triggerEvent("chat:addMessage", new { color = new[] { 255, 0, 0 }, args = new[] { "[JobInfo]", $"{args[0]} ({args[1]}) {exist}" } }); }