natives.setDisplayPlayerNameAndIcon

From GTA Connected
Revision as of 22:37, 7 December 2025 by ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setDisplayPlayerNameAndIcon |parameters = int playerId, bool enable |parameter1 = int playerId The player index to affect |parameter2 = bool enable True to show the name and icon, false to hide |usage = Display or hide the player’s name and icon above their ped |notes = - Requires natives.displayPlayerNames to be enabled globally - Often combined with natives.givePedFakeNetworkName to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

natives.setDisplayPlayerNameAndIcon

Signature: void natives.setDisplayPlayerNameAndIcon(int playerId, bool enable)

Usage: Display or hide the player’s name and icon above their ped

Parameters

int playerId The player index to affect
bool enable True to show the name and icon, false to hide

Return

void