natives.changeCarColour: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 8: Line 8:
|parameter2 = bool enable True to show the name and icon, false to hide
|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
|usage = Display or hide the player’s name and icon above their ped
|notes = Intended to be used when a player streams in; playerId must be a valid client index
|notes = playerId must be a valid client index
|return1 = void
|return1 = void
|exampleJS = addEventHandler("OnElementStreamIn", function(event, element) {
|exampleJS = natives.setDisplayPlayerNameAndIcon(localPlayer.id, true);
    natives.givePedFakeNetworkName(element, "Officer_John", 255, 255, 255, 255);
});
}}
}}
53

edits