Document setting initial context value

This commit is contained in:
luk3yx 2022-12-06 20:34:36 +13:00
parent 3e16f91ac7
commit 7cb1c1c235

View File

@ -75,6 +75,10 @@ end)
-- Note that `player` is a player object and not a player name.
my_gui:show(player)
-- You can provide an initial value for `ctx` by adding a second parameter to
-- show(). In the below example, `ctx.value` will be "test".
my_gui:show(player, {value = "test"})
-- Close the form
my_gui:close(player)