delete vehicle trailer on vdestroy
This commit is contained in:
@@ -954,6 +954,7 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
}
|
}
|
||||||
|
|
||||||
VehicleManager.DeleteVehicle(targetVeh);
|
VehicleManager.DeleteVehicle(targetVeh);
|
||||||
|
targetVeh.Trailer?.Delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command("vlivery", "~m~Benutzung: ~s~/vlivery [Livery]")]
|
[Command("vlivery", "~m~Benutzung: ~s~/vlivery [Livery]")]
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
};
|
};
|
||||||
|
|
||||||
string faction = u.FactionLeader ? u.Faction.Name : null;
|
string faction = u.FactionLeader ? u.Faction.Name : null;
|
||||||
string group = u.Group?.Name ?? null;
|
string group = u.Group != null && u.GroupRank >= GroupRank.MANAGER ? u.Group.Name : null;
|
||||||
bool factionInvite = player.HasData("accept_faction_invite");
|
bool factionInvite = player.HasData("accept_faction_invite");
|
||||||
bool groupInvite = player.HasData("accept_group_invite");
|
bool groupInvite = player.HasData("accept_group_invite");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user