Function based GTALua2 (uses game functions instead of natives)
This copy of GTALua2 is an attempt of making Lua modding independent of natives, so when a new game version is released, the Lua mods won't stop working until a new native list is released. All that is needed is compute a new set of function offsets using the provided PHP script.
GTALuaF code holds function frames which are used to call the internal game functions. Lua files offsets.lua and engine.lua hold the game function addresses and the actual function calls.
The PHP script needs to be run using a 64 bits PHP.
This is still a proof of concept, but seems to be working fine.
Collaboration in creating more function addresses is very welcome.
Discord channel: https://discord.gg/CjcstmA