OnUnload

This callback is called when your script is about to get unloaded.

Example:

Most basic stuff will be cleaned for you like: Fonts, Images, SimObjects, etc...

function OnUnload()
{
    // Your cleanup code...
}

Last updated