Move Job Infos Interaktionsmenü in eigenes Menü
This commit is contained in:
@@ -152,7 +152,6 @@ namespace ReallifeGamemode.Server.Events
|
||||
factionRank = u.GetFactionRank().RankName,
|
||||
group = u.Group?.Name ?? "Keine",
|
||||
groupRank = u.GroupRank.GetName(),
|
||||
job = JobManager.GetJob(u.JobId ?? 0)?.Name ?? "Keiner",
|
||||
paycheck,
|
||||
licenses,
|
||||
vehicles,
|
||||
@@ -162,6 +161,14 @@ namespace ReallifeGamemode.Server.Events
|
||||
userWarn = u.warn,
|
||||
};
|
||||
|
||||
var jobData = new
|
||||
{
|
||||
job = JobManager.GetJob(u.JobId ?? 0)?.Name ?? "Keiner",
|
||||
busskill = u.BusSkill,
|
||||
pilotskill = u.PilotSkill,
|
||||
wage = u.Wage,
|
||||
};
|
||||
|
||||
string faction = u.Faction?.Name ?? "Zivilist";
|
||||
string factionleader = u.FactionLeader ? u.Faction.Name : null;
|
||||
string group = u.Group != null ? u.Group.Name : null;
|
||||
@@ -187,7 +194,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
pay_amount = player.GetData<int>("pay_amount");
|
||||
}
|
||||
|
||||
player.TriggerEvent("SERVER:InteractionMenu_OpenMenu", JsonConvert.SerializeObject(accountData), factionleader, faction, group, factionInvite, groupInvite, ticket_boolean, ticket_amount, pay_amount, house);
|
||||
player.TriggerEvent("SERVER:InteractionMenu_OpenMenu", JsonConvert.SerializeObject(accountData), factionleader, JsonConvert.SerializeObject(jobData), faction, group, factionInvite, groupInvite, ticket_boolean, ticket_amount, pay_amount, house);
|
||||
}
|
||||
|
||||
[RemoteEvent("keyPress:E")]
|
||||
|
||||
Reference in New Issue
Block a user