Skip to content

Instantly share code, notes, and snippets.

@thers
Created February 4, 2017 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thers/e6def29f67ca1738a0815f4ba23af3bb to your computer and use it in GitHub Desktop.
Save thers/e6def29f67ca1738a0815f4ba23af3bb to your computer and use it in GitHub Desktop.
var missionMarker = new Scaleform("mp_mission_name_freemode");
if (missionMarker.IsLoaded == false) {
Debug.WriteLine("SF not loaded");
return;
}
var name = "Unique name";
var type = "Some cool mission type";
var playerInfo = "Player info";
var percentage = "";
var debugValue = "";
var isRockstartVerified = true;
var playersRequired = 4;
var RP = 999;
var cash = 9999;
var time = "";
missionMarker.CallFunction(
"SET_MISSION_INFO",
name, type, playerInfo,
percentage, debugValue, isRockstartVerified,
playersRequired, RP, cash, time
);
missionMarker.Render3D(
Game.PlayerPed.GetOffsetPosition(new Vector3(0, 2f, 0)),
-Game.PlayerPed.Rotation,
new Vector3(1f)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment