natives.givePedFakeNetworkName: Difference between revisions
Jump to navigation
Jump to search
ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.givePedFakeNetworkName |parameters = Ped ped, string name, int r, int g, int b, int a |parameter1 = Ped ped The ped to assign the fake name to |parameter2 = string name The fake network name to display |parameter3 = int r Red component (0–255) |parameter4 = int g Green component (0–255) |parameter5 = int b Blue component (0–255) |parameter6 = int a Alpha component (0–255) |usage = Assign...") |
(No difference)
|
Latest revision as of 22:35, 7 December 2025
Function Client Only ![]()
Online and Offline
Available since Client 1.0.0
void natives.givePedFakeNetworkName(Ped ped, string name, int r, int g, int b, int a)
The natives.givePedFakeNetworkName function is used to Assign a custom fake network name to a ped with a specified RGBA color.
Parameters
| 1) | Ped | ped | The ped to assign the fake name to. |
| 2) | string | name | The fake network name to display. |
| 3) | int | r | Red component (0–255). |
| 4) | int | g | Green component (0–255). |
| 5) | int | b | Blue component (0–255). |
| 6) | int | a | Alpha component (0–255). |
Return
| void | This function doesn't return a value. |
Notes
- - This native only takes effect if natives.displayPlayerNames is active for the player- Commonly used together to show custom names above streamed-in players- Color values allow styling of the displayed name (RGBA).
Examples
Example 1 - JavaScript:
natives.givePedFakeNetworkName(localPlayer.ped, "Officer_John", 255, 255, 255, 255);
Compatibility
There isn't any compatibility information for this function.
Related
Client Related
addNetworkHandler
connect
disconnect
gta.shutdownAndLaunchNetworkGame
isConnected
isConnecting
removeNetworkHandler