• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

RevScripts how to show modal window in this !commands

Hyagosrs

Member
Joined
Mar 10, 2018
Messages
94
Solutions
1
Reaction score
10
this is my code, but how should it possible to show a modal windows instead of MESSAGE_EVENT_ADVANCE ??

Lua:
local commands = TalkAction("!commands")

function commands.onSay(player, words, param)   
    return player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "here is the information")
end

commands:register()
 
Solution
SOLVED:
Lua:
local commands = TalkAction("!commands")

function commands.onSay(player, words, param)  
    return player:showInfoModal("commands","here is the information")
end

commands:register()
 
SOLVED:
Lua:
local commands = TalkAction("!commands")

function commands.onSay(player, words, param)  
    return player:showInfoModal("commands","here is the information")
end

commands:register()
 
Solution
Back
Top