Set3DTextScale: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Synchronize Lua API documentation
 
Complete Lua function catalog
 
Line 30: Line 30:
* The scale is validated by the server before replication.
* The scale is validated by the server before replication.


[[Category:Lua Functions]]
[[Category:Server Functions]]
[[Category:Server Functions]]
[[Category:World Functions]]
[[Category:World Functions]]

Latest revision as of 09:54, 15 August 2026

set3DTextScale

Changes the visual scale of a replicated world-space text label.

Syntax

bool set3DTextScale(string textId, number scale)

Parameters

Name Type Required Description
textId string yes The opaque identifier returned by create3DText.
scale number yes Text scale from 0.25 to 5.0.

Returns

Returns true when the label is owned by the current resource and the update is accepted; otherwise returns false.

Examples

Increase the size of an important location label:

set3DTextScale(locationLabel, 1.25)

Notes

  • Available only in server-side resource scripts.
  • The scale is validated by the server before replication.