set display name||doc135470

September 20, 2022

Format

 Entity:setShowName(txt) 
  • The class to which the function belongs:Entity

Description

Sets the name displayed on the top of the entity object


Parameters

Variable name type Description
txt string text content


Code Samples

on the client side of the objectmount script, set the name displayed on the top of the entity object

this:setShowName('Tom')