# VariantList callback

Function parameters needed for VariantListcallback

* `varlist` - VariantList table

## Example Script

```lua
AddCallback("VariantList", function(varlist)
    log("VariantList callback\n")
    for i=0, #varlist do
        log(("\t%d - "):format(i) .. varlist[i])
    end
end)
```

## Output

When SendPacketRaw is called your callback function will be executed

<pre class="language-bash"><code class="lang-bash">VariantList callback
<strong>        0 - OnPlayPositioned
</strong>        1 - audio/punch_locked.wav
        2 - nil
        3 - nil
        4 - nil
        5 - nil
        6 - nil
</code></pre>
