[DiscordArchive] probably `004181B0 FrameLua_RegisterFunction` ?
[DiscordArchive] probably `004181B0 FrameLua_RegisterFunction` ?
Archived author: tester • Posted: 2024-12-02T17:53:19.810000+00:00
Original source
that was used for global registers though, not to a specific frame
ushcclosure(state, (lua_CFunction)(callback), 0);Archived author: Peacy • Posted: 2024-12-02T17:54:39.137000+00:00
Original source
Oh, interesting I'm able to do a global register with simply
```c++
Lua:
ushcclosure(state, (lua_CFunction)(callback), 0);
Lua::Setfield(state, LUA_GLOBALSINDEX, command);
```
This one in client seems to have extra fields like insert, rawset, etc
![[Image: image.png?ex=690c3837&is=690ae6b7&hm=e1e...7f560420c&]](https://cdn.discordapp.com/attachments/1086807686571642900/1313201783316938822/image.png?ex=690c3837&is=690ae6b7&hm=e1e48f7401d49e2a04c441a2c3d216e0b4d2113e1c9173ec0c0f97d7f560420c&)
Archived author: tester • Posted: 2024-12-02T17:55:03.312000+00:00
Original source
yeah this was registering send and write
![[Image: image.png?ex=690c3837&is=690ae6b7&hm=e1e...7f560420c&]](https://cdn.discordapp.com/attachments/1086807686571642900/1313201783316938822/image.png?ex=690c3837&is=690ae6b7&hm=e1e48f7401d49e2a04c441a2c3d216e0b4d2113e1c9173ec0c0f97d7f560420c&)
Archived author: Peacy • Posted: 2024-12-02T17:56:52.849000+00:00
Original source
Hmm so probably a different function hanlding frame specific registering
Archived author: tester • Posted: 2024-12-02T17:57:22.384000+00:00
Original source
id probably take a specific frame function and search its address, then find where it gets used and go up from ther
Archived author: Peacy • Posted: 2024-12-02T17:57:24.049000+00:00
Original source
Currently thinking this looks proming, used to register functions from frame specific lua events: 008167E0
Archived author: Peacy • Posted: 2024-12-02T17:57:54.763000+00:00
Original source
```
FrameScript__FillScriptMethodTable(a1, (int)&SetFillTexture, 14);
```
Archived author: tester • Posted: 2024-12-02T17:57:55.866000+00:00
Original source
yeah labeled FillScriptMethodTable for me, thats not horrible sounding
![[Image: image.png?ex=690c3925&is=690ae7a5&hm=e1b...89ac970a5&]](https://cdn.discordapp.com/attachments/1086807686571642900/1313202783301795890/image.png?ex=690c3925&is=690ae7a5&hm=e1b545d263bb8f4b3229af6657a53ebfbbb268b54bc97181733028c89ac970a5&)
Archived author: tester • Posted: 2024-12-02T17:59:01.743000+00:00
Original source
yeah seems to be the bottom of the stack on some reloads, so you are definitely in the right direction
![[Image: image.png?ex=690c3925&is=690ae7a5&hm=e1b...89ac970a5&]](https://cdn.discordapp.com/attachments/1086807686571642900/1313202783301795890/image.png?ex=690c3925&is=690ae7a5&hm=e1b545d263bb8f4b3229af6657a53ebfbbb268b54bc97181733028c89ac970a5&)
Archived author: Peacy • Posted: 2024-12-02T18:03:02.515000+00:00
Original source
excellent!