Skip to content

Instantly share code, notes, and snippets.

@fre-sch
Created February 5, 2021 14:22
Show Gist options
  • Save fre-sch/85ad630e6d114466d33a770496f46c08 to your computer and use it in GitHub Desktop.
Save fre-sch/85ad630e6d114466d33a770496f46c08 to your computer and use it in GitHub Desktop.
Cyberpunk 2077 - Showing some (debug) information in redscripts
let evt = new NotifyShardRead();
evt.title = "Title for modal";
evt.text = "Text for modal;
/* NotifyShardRead has other properties that can be left unset */
let gi: GameInstance = player.GetGame(); /* any GameObject provides GetGame() -> GameInstance */
GameInstance.GetUISystem(gi).QueueEvent(evt);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment