πΉAvailable Keys
Keys in CreateDialog
local Keys = {
["ESC"] = 322,
["F1"] = 288,
["F2"] = 289,
-- β¦ (other mappings) β¦
["E"] = 38,
["ENTER"] = 18,
["SPACE"] = 22,
["LEFTCTRL"] = 36,
-- etc.
}
exports['koja-dialogs']:CreateDialog({
id = "example-dialog",
npc = "a_m_m_skater_01",
coords = vector4(100.0, 200.0, 300.0 - 1, 90.0),
name = "NPC Name",
message = "Hey, press the key to talk!",
tag = "Example",
animations = {
{ type = "idle", dict = "missfam5_yoga", anim = "idle_a" },
{ type = "active", dict = "missheist_agency2ah," anim = "talk_loop" }
},
key = 'E', -- <-- Use the value 38 here
actions = {
{
label = "Start Conversation",
player_message = "Hello!",
onclick = {
message = "How can I help you?",
actions = {},
},
close = true
}
}
})
Last updated