Export

วิธีการ Export มาใช้งาน

pcall(function ()
    exports['Cruz.TextUI-Plus']:init({
        Need = {
            Distance = 5, -- @ เป็นระยะห่าง ถ้าออกจากจุดที่ตั้งค่าให้แสดงจะทำการปิด TextUI ทันที
            Coords = GetEntityCoords(PlayerPedId()) -- @ ห้ามแก้ไขส่วนนี้เด็ดขาด
        },
        Data = {
            { type = 'icon', value = 'fad fa-info' },
            { type = 'text', value = 'กด' },
            { type = 'button', value = 'Shift' },
            { type = 'text', value = 'และ' },
            { type = 'button', value = 'E' },
            { type = 'text', value = 'เพื่อเปิดธนาคาร' },
            { type = 'image', value = 'Shop' },
        },
        ModifyIcon = { -- @ แก้ไขข้อมูล Icon
            IconColor = 'rgb(0, 174, 255)', -- @ สีของ Icon
            Filter = '#000' -- @ Glow ของ Icon
        },
        ModifyInterface = { -- @ พื้นหลังหลัก
            Background = 'rgb(24, 24, 24)', -- @ สีของพื้นหลังหลัก
            Fontcolor = '#fff', -- @ สีข้อความทั้งหมด
        },
        ModifyKey = { -- @ การตั้งค่าเดียวกับปุ่ม
            Background = 'rgb(24, 24, 24)', -- @ สีพื้นหลังของปุ่ม
            Fontcolor = 'rgb(0, 174, 255)', -- @ สีของข้อความ
            Radius = '5px', -- @ ความมนของปุ่ม
            Filter = '#000' -- @ Glow ของปุ่ม
        },
        ModifyImg = { -- @
            Background = 'rgb(24, 24, 24)', -- @ พื้นหลังข้องรูปภาพ
            Radius = '1vh', -- @ ความมนของกรอบรูป
            Border = '#000', -- @ สีขอบ
            Shadow = '#fff' -- @ Glow ของกรอบรูป
        },
        Position = 'bottomCenter' -- @ ตำแหน่งที่จะเอาไว้
    }, true) -- @ หาก true คือใช้งานใน loop | ถ้าเป็น false คือไม่ได้ใช้ใน loop
end)

ตำแหน่งของ TextUI Position topLeft, topCenter, topRight, bottomLeft, bottomRight, bottomCenter, center, centerLeft, centerRight

การวางของข้อความต่างๆ

Type : icon : string : ใช้ได้แค่ของ fontawesome เท่านั้น

Type : text : string : เป็นข้อความที่จะให้แสดง Type : button : string : ปุ่มที่ต้องการแสดง

Type : image: string : เป็นรูปภาพที่ต้องการให้แสดง

Last updated