♾️
InfinityPulse
🎮 Discord📺 Youtube🛒 Tebex
  • Introduction
  • RedM
    • 🌿Herbalist System
      • Installation
      • Commands
      • Herbalist Skills
    • ⭕Company Blips
      • Installation
      • Config
    • ⚔️Bandits Ambush
      • Installation
      • Config
    • 📖XP System
      • Installation
      • Types
      • Exports
      • UI Additions
  • 💬Alert Dialogue
    • Installation
    • Exort
  • FiveM
    • 🌟VIP System
      • Installation
      • Exports
    • 💱Money Laundering
      • Configuration
      • Server/Framework support
  • DATA TABLE
    • Export
  • 📦Crate Drop
    • Installation
    • Configuration
  • 💬3D Text UI
    • Installation
    • Configuration
    • Exports
  • 📺City Hall
    • Installation
    • Configuration
Powered by GitBook
On this page
  • IP Table Documentation
  • Overview
  • Table Configuration
  • Example Usage
  • Actions
  • Closing Behavior
  • Notes
Edit on GitHub
  1. DATA TABLE

Export

IP Table Documentation

Overview

This script opens an ip_table with a given set of data, actions, and an event handler for closing.

Table Configuration

Properties:

  • id: (string) The title identifier for the table.

  • head: (table) The headers of the table columns.

  • list: (table) A list of data entries.

  • onClose: (function) A function that executes when the table is closed.

  • actions: (table) A set of named actions that execute functions when a row is selected.

Example Usage

  exports.ip_table:open({
        id = "Title",
        head = { "Name", "VipLevel" },
        list = {
         {"RoyleWind","5"},
         {"SLNC","2"},
         {"XPHANTOP","1"},
        },
        onClose = function()
            print("Closed 🚪")
        end,
        actions = {
            ["Print"] = function(index, data) 
                print("Name: " .. data[1])
            end,
            ["Action 2"] = function(index, data) 
                print("Name: " .. data[1])
            end,
        }
    })

Actions

  • Print: Prints the Name field of the selected row.

  • Action 2: Prints the Name field of the selected row (duplicate function for customization).

Closing Behavior

When the table is closed, it prints Closed 🚪 in the console.

Notes

  • This script is designed for integration within an existing system using exports.ip_table.

  • Modify the actions section to add additional functionalities.

PreviousDATA TABLENextCrate Drop

Last updated 1 month ago