DrawCharInfo

From Nutscript Developer Wiki
Jump to navigation Jump to search
   GM:DrawCharInfo(client, character, info)

Description[edit]

This function draws the character's information.

Arguments[edit]

  • Player client
  • Character character
  • Table info

Return Values[edit]

return none

Examples[edit]

function PLUGIN:DrawCharInfo(client, character, info)
   local faction = character:getFaction() -- Gets ID of the character faction
   local faction_color = nut.faction.indices[faction].color --Gets faction color
    
        info[#info + 1] = { nut.faction.indices[faction].name,faction_color} --Adds character faction with color under the character name
 end