init dialogue and progressbar bananza
Added dialogue system initial upload. Some modifications needed but good default. Standardized input and output for progressbar. Accepts ox and qb (progressbar)
This commit is contained in:
1 parent
df5dd4ffa4
commit
58782dfcd0
24 files changed
+12762
-89
No files matched your search
@@ -0,0 +1,34 @@
|
||||
|
||||
|
||||
|
||||
--- Open a dialogue with the player
|
||||
--- @param name string
|
||||
--- @param dialogue string
|
||||
--- @param options table example = {{ id = string, label = string}}
|
||||
function OpenDialogue(name, dialogue, options)
|
||||
SendNUIMessage({
|
||||
type = "open",
|
||||
text = dialogue,
|
||||
name = name,
|
||||
options = options
|
||||
})
|
||||
end
|
||||
|
||||
RegisterCommand("dialogue", function()
|
||||
OpenDialogue( "Akmed" , "Hello how are you doing my friend?", {
|
||||
{
|
||||
label = "Trade with me",
|
||||
id = 'something',
|
||||
},
|
||||
{
|
||||
label = "Goodbye",
|
||||
id = 'someotherthing',
|
||||
}
|
||||
}
|
||||
)
|
||||
end)
|
||||
|
||||
|
||||
-- { label: 'Hello there! this is some long text that i am Dialogueing', id: '1' },
|
||||
-- { label: 'Trade with me', id: '2' },
|
||||
-- { label: 'Goodbye', id: '3' }
|
||||
Reference in new issue
Block a user