Custom NPC

It is possible to add custom NPCs to perform different events. For example, if you want to create an npc to attend users in the bank, or for any other event.

To do this add it in the CustomNPC section inside the config.lua following these parameters:

[1] = {
        ui = {
            dialog = "Welcome to Fleca, do you want to make any operation in your bank account? Maybe withdraw or deposit money?",
            title = "Bank",
            button1 = "Yes, I want to perform an operation",
            button2 = "No, maybe another time",
            useAudio = true
        },
        npc = {
            ped = "u_m_y_gunvend_01",
            location = vector4(148.18, -1041.63, 29.37, 342.36),
            animation = "WORLD_HUMAN_CLIPBOARD"
        },
        event = {
            type = "client",
            triggerevent = "qb-banking:openBankScreen",
            args = {}
        }
    }

Last updated