strCrop - Total-RP/Total-RP-3 GitHub Wiki

Crops text to a given size

TRP3_API.utils.str.crop(text, size)

Arguments

  • text: string
  • size: integer

Returns

  • croppedText with "..." at the end if it is too long to fit within size
⚠️ **GitHub.com Fallback** ⚠️