REFramework Lua API
⚪ Last updated 2024Preview

🔍 Analysis
- 👍 2.9% endorsement rate — high engagement, a strong quality signal
- 🏆 #21 of 30 Miscellaneous mods in this game by downloads
📋 About This Mod
Lua wrapper for REFramework API methods, allowing for code autocomplete (IntelliSense), inline documentation, and detailed error messages.
About
This is a beta release and doesn't yet include the full REFramework API.
This is a Lua wrapper generated from the REFramework C++ code along with the HTML documentation to create a simple Lua library. The library wraps the REFramework APIs to provide full IntelliSense, strong typing, documentation, and detailed error messages for your mods.
-
[]draw
[]imgui
[
]json[]reframework
[]types (type definitions)
It also includes a few useful utility functions that commonly come up in mod development.
-
[]write_valuetype
[]find_index
[]merge_tables
[]table_contains
[]generate_statics
[]save_config
[]load_config
[]vec2_tostring
[]vec3_tostring
[]vec4_tostring
[]get_components
[]get_component
[]get_transform
[]get_fields_by_type
[]get_fields
Editors
This should work in any editor that supports the Lua language server - so something like VS Code or Neovim with a Lua plugin/extension.
You may need to open the whole autorun folder in your editor so it will see all the files and autocomplete correctly.
Installation
Just extract and copy this API along with REFramework into the game install directory. Then you can require and use it in your script. If you release a mod using this API, just mark it as a requirement.
local api = require("REFrameworkAPI")
local vec = api.types. Vector2f:new(1. 0, 2. 0)
api.sdk.hook(
api.sdk.find_type_definition("app. ItemManager"):get_method("getStorageWeight"),
function(args)
function(rtval)
return rtval
-
[]write_valuetype
📊 Mod Details
- Game
- Residentevil7 Mods
- Author
- rthomasv3
- Version
- v0.9.2
- Downloads
- 688
- Endorsements
- 20
- Category
- Miscellaneous
- Created
- 4/12/2024
- Updated
- 4/12/2024
🔧 How to Install Resident Evil 7 Mods
Install via a mod manager (Vortex or Mod Organizer 2). Most mods drop into the game folder.
📖 Full step-by-step install guide for Resident Evil 7 →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Resident Evil 7 commands, item IDs, and more.
Keep browsing — more Resident Evil 7 mods await