Refunds

Handles processing refunds from server crashes.

Functions

impulse.Refunds.Add(steamid, item)

Internal

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

View source »

Creates a new refund entry.

Parameters

  • steamid string

    The SteamID 32 of the player.

  • item string

    The item to refund.

impulse.Refunds.Clean()

Internal

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

View source »

Clears any old (more than 24 hours old) refunds.

impulse.Refunds.Remove(steamid, item)

Internal

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

View source »

Removes a specific refund entry.

Parameters

  • steamid string

    The SteamID 32 of the player.

  • item string

    The item to refund.

impulse.Refunds.RemoveAll(steamid)

Internal

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

View source »

Removes all refund entries.

Parameters

  • steamid string

    The SteamID 32 of the player.