Originally was made for CLEO by DK22Pac under the name NewOpcodes, so copyrights primarily belong to him. This project is a complete rewrite of NewOpcodes for MoonLoader with new features.
MoonAdditions is a Lua module for MoonLoader that adds bunch of useful scripting functions and gives new capabilities for mods developers.
API Includes:
- Vector, Quaternion and Matrix classes, including direct manipulation in game's memory
- Drawing text directly and via textdraws
- Drawing textures
- Drawing primitive 2D shapes
- Getting information of character bones
- Interaction with vehicle components, recoloring and retexturing
- Loading TXDs from a file and working with ones loaded by game
- Many other functions: drawing lighting, shadows, coronas, spotlights, changing entities transparency, getting sun color, size and position, getting all existing characters, vehicles and objects, creating projectiles, interaction with the entity's matrix, etc
For documentation check out the Wiki and examples for usage.
Download MoonAdditions.dll
from the latest release and copy it in your moonloader/lib
folder.
DK22Pac - NewOpcodes
FYP - MoonAdditions
Contributions are greatly appreciated. Please fork the repository and open a pull request.