natives.givePedFakeNetworkName
Jump to navigation
Jump to search
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