Skip to main content

player_console

Function player_console 

Source
pub unsafe fn player_console(player: *mut IPlayer) -> *mut IPlayerConsoleData
Expand description

The player’s IPlayerConsoleData, or null when the component providing it is not loaded.

Found by walking the player’s extension map for PLAYER_CONSOLE_UID — the virtual getExtension does not consult that map. IExtension is IPlayerConsoleData’s first base, so the extension pointer is the interface pointer.

§Safety

player must be a live IPlayer.