👾 Paid🚀 OtherTalk⚙️ Configurations

Configuration

shared/sh_talk.lua
SHTalk = {}
 
-- Locale
SHTalk.SetLocale = 'en'
SHTalk.Locale = {
    ['en'] = {
        -- Notify
        ['NotHaveMoney'] = "You not enough money",
        ['PurchasedItems'] = "You purchase items for: $",
        ['NotInventorySpace'] = "You not have space in your inventory",
        ['NotInventorySpaceAndPurchased'] = "You not have space in your inventory for all items and purchase items for: ",
 
        -- UI
        ['MenuTotalPrice'] = "Total price: $",
        ['MenuRep'] = "REP",
        ['MenuExit'] = "EXIT",
        ['MenuEsc'] = "ESC",
    },
}
 
SHTalk.EnableTarget = false -- If this is a true you using qb-target/ox_target/other target, if this is false you use interaction! Check bd-talk/wrapper/client/cl_main.lua
SHTalk.InventoryImageLink = "https://cfx-nui-qb-inventory/html/images/" -- Your inventory image directory directory link! For ox_inventory: "https://cfx-nui-ox_inventory/web/images/"
SHTalk.CloseShopOnSuccessPurchase = true -- This close talk shop on buy items and you have successfully purchase items
 
SHTalk.Talkings = {
    {
        Model = "ig_benny", -- Ped model
        EnablePed = true, -- Enable/Disable ped
        Coords = vector4(148.08, -610.06, 47.08, 344.76), -- Conversation coords
        TargetLabel = "Open Talking", -- Target label
        TargetIcon = "fa-solid fa-message", -- Target icon
        TalkInfo = {
            FirstName = 'Bobby', -- Npc first name
            LastName = "Boo", -- Npc last name
            Rep = "druglern", -- This is metadata name
            JobType = "Drug Lern", -- You job type
            Type = "Talk", -- Talk type is Talk !!!
            Description = "Hi dude, what do you want to learn?", -- First npc message if you open talk
            Buttons = {
                {
                    Text = "How to plant weed", -- Button label
                    Args = { -- Button args
                        PlayerRespond = "I want to learn how to make weed plantations.", -- Player respond if you click on button
                        NpcRespond = "For that you need to follow these steps.", -- Npc respond if you click on button
                        Buttons = { -- Buttons, this change button values, you can make infinity conversations
                            {
                                Text = "Weed Shop",
                                Event = "bd-talk:[Client]:AddWeedShopWaypoint",
                                Args = {
                                    PlayerRespond = "Where is the weed shop?",
                                    NpcRespond = "The shop is located somewhere in Sandy Shores.",
                                    Close = false
                                },
                            },
                            {
                                Text = "Weed Seeds",
                                Event = "bd-talk:[Client]:AddWeedSeedsWaypoint",
                                Args = {
                                    PlayerRespond = "Where can i get weed seeds?",
                                    NpcRespond = "You should find them somewhere in the weed fiels.",
                                    Close = false
                                }
                            }
                        }
                    }
                },
                {
                    Text = "How to sell weed",
                    Args = {
                        PlayerRespond = "How do I sell to citizens?",
                        NpcRespond = "You need to find the main drug dealer.",
                        Buttons = {
                            {
                                Text = "Шhere is he?",
                                Event = "bd-talk:[Client]:AddDrugDealerBossBlips",
                                Args = {
                                    PlayerRespond = "How do и find it?",
                                    NpcRespond = "I will give you some locations, you should check them and you might find it!",
                                    Close = false
                                },
                            }
                        }
                    }
                }
            }
        },
    },
    {
        Model = "ig_benny",
        EnablePed = true,
        Coords = vector4(130.53, -606.15, 45.75, 9.78),
        TargetLabel = "Open Talking",
        TalkInfo = {
            FirstName = "Jony",
            LastName = "Marash",
            Rep = "drugsales", -- This is metadata name
            Type = "Shop",  -- Talk type is Shop !!!
            Shop = {
                {
                    Name = "water", -- Item name
                    Label = "Water", -- Item label
                    Price = 500, -- Item price
                    Image = "water.png" -- Item image name in your inventory folder
                },
                {
                    Name = "sandwich",
                    Label = "Sandwich",
                    Price = 650,
                    Image = "sandwich.png"
                },
            },
            PayButtons = {
                {
                    Label = "Pay Via Cash", -- Pay option label
                    Account = "cash" -- Pay option account
                },
                {
                    Label = "Pay Via Bank",
                    Account = "bank"
                },
            }
        },
    },
}