[DiscordArchive] how do i show a frame with a command?
[DiscordArchive] how do i show a frame with a command?
Archived author: Chaz • Posted: 2023-05-14T08:30:16.675000+00:00
Original source
how do i show a frame with a command?
Archived author: Chaz • Posted: 2023-05-14T08:32:30.033000+00:00
Original source
I want to open https://github.com/Foereaper/Eluna-AIO-StoreSystem with a command
```
local function OnCommand(event, player, msg, Type, lang)
if (msg == ".shop") then
if (player:IsInCombat() == neutre) then
player:SendAreaTriggerMessage("you are in combat")
else
player:
return false
end
end
end
```
Archived author: Anchy • Posted: 2023-05-14T08:40:08.658000+00:00
Original source
`MainFrame_Toggle()` I think
Archived author: Chaz • Posted: 2023-05-14T08:41:39.466000+00:00
Original source
so player:MainFrame_Toggle() ? <@228769085834395648>
Archived author: Anchy • Posted: 2023-05-14T08:43:24.736000+00:00
Original source
probably
Archived author: Anchy • Posted: 2023-05-14T08:43:34.368000+00:00
Original source
i dont use AIO but i would assume something along those lines
Archived author: Chaz • Posted: 2023-05-14T08:43:39.530000+00:00
Original source
kk
Archived author: Roboto • Posted: 2023-05-14T08:49:06.619000+00:00
Original source
You need to register a handler and then call that through AIO.
Client-side would look like this:
```lua
function StoreHandler.ToggleFrame(player)
MainFrame_Toggle()
end
```
Server-side would be
```lua
AIO.Handle(player, "STORE_CLIENT", "ToggleFrame")
```
Archived author: Chaz • Posted: 2023-05-14T08:51:49.450000+00:00
Original source
tyvm <@175631911450836993>
Archived author: Chaz • Posted: 2023-05-14T08:51:54.065000+00:00
Original source
i added it but get this