Create3DTextLabel
From SA-MP Wiki
Revision as of 10:57, 20 September 2009; view current revision
←Older revision | Newer revision→
←Older revision | Newer revision→
Create3DTextLabel
Warning: This is a new function working since SA-MP 0.3. It won't work in previous versions.
Creates a 3D Text Label at a specific location in the world
.
Parameters:(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS)
| text[] | The initial text string. |
| color | The text Color |
| x | X-Coordinate |
| y | Y-Coordinate |
| z | Z-Coordinate |
| DrawDistance | The distance from where you are able to see the 3D Text Label |
| VirtualWorld | The virtual world in which you are able to see the 3D Text |
| testLOS | 0/1 Test the line-of-sight so this text can't be seen through objects |
| Returns | The ID of the newly created 3D Text Label |
Example:
public OnGameModeInit() { Create3DTextLabel("I'm at the coordinates:\n30.0,40.0,50.0",0x008080FF,30.0,40.0,50.0,40.0,0); return 1; }
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- Delete3DTextLabel: Destroys a 3D Text Label.
- Attach3DTextLabelToPlayer: Attaches a 3D Text Label to a specific player.
- Attach3DTextLabelToVehicle: Attaches a 3D Text Label to a specific vehicle.
- Update3DTextLabelText: Changes a 3D Text Label.
- CreatePlayer3DTextLabel: Creates a 3D Text Label for a specific player.
- DeletePlayer3DTextLabel: Destroys a 3D Text Label for a specific player.
- UpdatePlayer3DTextLabelText: Changes a 3D Text Label for a specific player.
