[DiscordArchive] how do i show a frame with a command?
[DiscordArchive] how do i show a frame with a command?
Archived author: Foe • Posted: 2023-05-14T09:17:00.106000+00:00
Original source
The number represents the event, yes
Archived author: Chaz • Posted: 2023-05-14T09:17:23.610000+00:00
Original source
so 42 then
Archived author: Chaz • Posted: 2023-05-14T09:17:51.346000+00:00
Original source
same thing lol
Archived author: Foe • Posted: 2023-05-14T09:18:03.239000+00:00
Original source
Yes, and then you have to update your variables
Archived author: Foe • Posted: 2023-05-14T09:18:17.264000+00:00
Original source
To match the variables expected from the event
Archived author: Chaz • Posted: 2023-05-14T09:18:17.420000+00:00
Original source
ahh ok
Archived author: Chaz • Posted: 2023-05-14T09:19:10.563000+00:00
Original source
```
local function OnCommand(event, player, command, chatHandler)
if (msg == ".shop") then
AIO.Handle(player, "STORE_CLIENT", "ToggleFrame")
end
end
RegisterPlayerEvent(42, OnCommand)
```
Archived author: Foe • Posted: 2023-05-14T09:19:40.841000+00:00
Original source
Almost
Archived author: Chaz • Posted: 2023-05-14T09:20:39.143000+00:00
Original source
what am i missing
Archived author: Foe • Posted: 2023-05-14T09:21:02.077000+00:00
Original source
Check the console, it should give you error messages