private static void LoadJobObjective(object[] args) { var markerPosition = (Vector3)args[0]; var markerSize = Convert.ToSingle(args[1]); if (markerPosition == null) { return; } NextObjective?.Destroy(); NextObjective = new MissionMarker(markerPosition, markerSize); }
private static void CompleteObjective() { if (NextObjective == null) { return; } if (NextObjective.PlayerIsOnMarker) { NextObjective.Complete(); NextObjective = null; RAGE.Events.CallRemote("job_objective_completed"); } }