Description

Handles players being able to describe themselves.

Functions

impulse.Description.DBCache(id, teamid, noerror)

Internal

This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.

View source »

Loads the description from the database and caches it for local use.

Parameters

  • id int

    The owners main database ID.

  • teamid int

    The id of the team the description is used on.

  • noerror boolean default: false

    If true, disables the error if no description is found.

impulse.Description.DBSet(id, teamid, desc)

Internal

This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.

View source »

Sets the players description for a team on the database.

Parameters

  • id int

    The owners main database ID.

  • teamid int

    The id of the team the description is used on.

  • desc string

    The description to use.

Player:SetDescription(rpdesc, saveOnDb, onTeam)

View source »

Updates a players description, only updates the specific team unless otherwise specified.

Parameters

  • rpdesc string

    The description to update to.

  • saveOnDb boolean default: true

    Should we save this to the database.

  • onTeam int optional

    The team to have the description for, defaults to active team.

Player:UseSavedDescription(teamID)

Internal

This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.

View source »

Updates the players description to their DB one.

Parameters

  • teamID