Configuration
Things that can be set in the options.
TriggerClient = "testclient" -- TriggerEvent("testclient")
TriggerArgs = {"item1", "item2"} -- TriggerEvent("testclient", {"item1", "item2"})
TriggerArgs = "item1" -- TriggerEvent("testclient", "item1")
TriggerServer = "testserver" -- TriggerServerEvent("testserver")
TriggerArgs = {"item1", "item2"} -- TriggerServerEvent("testserver", {"item1", "item2"})
TriggerArgs = "item1" -- TriggerServerEvent("testserver", "item1")
{
pedModel = "u_m_m_bankman",
pedPosition = vec(149.28, -1042.12, 28.36),
pedHeading = 337.95248413086,
animation = { -- If you don't want this ped to have animation running turn it off --[[]].
dictionary = "anim@mp_player_intselfiethumbs_up",
name = "idle_a"
},
title = "Banker",
name = "Josh",
dialog = "Hello, how can i help you?",
textUI = "To talk with Josh", -- you can use for TextUI Enabled = false, "Press ~INPUT_CONTEXT~ to talk with Josh"
closeText = "Bye.", -- bottom close button text
camOffset = vector3(0.0, 0.0, 0.0),
camRotation = vector3(0.0, 0.0, 0.0),
distance = 2.0, -- Minimal distance to interaction with ped
options = { -- at most you can use 6 buttons
{
Label = "I want to see my bank account.",
TriggerClient = "vms_bank:openBank", -- TriggerClientEvent()
TriggerArgs = {"bank", "business"} -- Trigger args for like in table {}
},
{
Label = "I want to see my bank account.",
TriggerServer = "vms_bank:openBank", -- TriggerServerEvent()
TriggerArgs = "bank", -- Trigger arg for like in sigle ""
},
{
Label = "I want to see my bank account.",
TriggerClient = "vms_bank:openBank",
--TriggerArgs = "",
},
{
Label = "I want to see my bank account.",
TriggerServer = "vms_bank:openBank",
--TriggerArgs = "",
},
{
Label = "",
TriggerClient = "",
},
{
Label = "",
TriggerServer = "",
}
},
},
Last updated