Saints Row 2 Function Reference

Global functions

These functions are assumed to be globally available to all scripts (they aren't defined in the available Lua files, or are defined in files that are known to be always loaded).

This list is assumed incomplete; additional functions could exist in the exe but not be used in the game scripts, and there's no definitive list of Lua files that are always loaded.

Function name Global Defined in Examples from patch (click blue number to expand)
fade_out true
    42
    filter_change_callback true
      1
      find_widest_text_element true 1 4
      finish true
        2
        finished_outro_selection true
          3
          flight_tutorial_stamina true
            10
            fn true
              1
              follower_make_independent true
                2
                follower_remain_in_car true
                  3
                  follower_set_can_abandon true
                    7
                    force_fire_do true
                      1
                      force_fire_target_do true
                        1
                        force_flap_player true
                          2
                          force_spawn_contacts true
                            4
                            force_throw_char_do true
                              1
                              force_throw_do true
                                1
                                format_cash true 1 27
                                format_cash_add_padding true 1
                                  format_clock true 1 2
                                  format_distance true 1 2
                                  format_time true 1 9
                                  func_name true
                                    2