Utils API - Total-RP/Total-RP-3 GitHub Wiki
TRP3 Utilities API found here
local utils = TRP3_API.utils
Functions
Logging
local logger = TRP3_API.utils.log
Messaging
local messaging = TRP3_API.utils.message
Tables
local tables = TRP3_API.utils.table
Strings
local stringUtils = TRP3_API.utils.str
- match
- generateID
- unitInfoToID
- unitIDtoInfo
- companionIDtoInfo
- getUnitID
- getUnitDataFromGUIDDirect
- getUnitDataFromGUID
- getUnitNPCID
- getGuildName
- getGuildRank
- getRace
- getClass
- getFaction
- texture
- icon
- getIconTexture
- color
- emptyToNil
- nilToEmpty
- buildZoneText
- safeMatch
- sanitize
- crop
- convertSpecialChars
GUID
local guidUtils = TRP3_API.utils.guid
- GUID_TYPES - constants
- getUnitType
- isAPlayerGUID
Math
local mathUtils = TRP3_API.utils.math