How would I go about converting the GTA:O arcade assets into FiveM?

I came across a GitHub repository by utkuali that recreates the “Degenatron” arcade game. After looking through the code, I understand where it’s pulling the textures and sprites from within the game files. However, what I’m wondering is whether there’s some sort of file I can reverse engineer or decompile to understand how the game itself works such as the game logic, what sprites are used where, and when animations or events are supposed to play or if I’d genuinely have to recreate the entire game logic from scratch.

utkuali’s “Degenatron” Converted to FiveM GitHub