Skip to content

Wasm runtime #2901

@CrosRoad95

Description

@CrosRoad95

Is your feature request related to a problem? Please describe.

This feature open doors to tons of features. You all may be familiar with wasm in browsers.
https://webassembly.org/

Describe the solution you'd like

Add wasm support for mta, an api would be simillar to that in browsers "load wasm", "get exports", "execute export" ect.

Describe alternatives you've considered

No response

Additional context

i have already made simplest possible proof of concept using:
https://github.com/bytecodealliance/wasm-micro-runtime - adds extra 10 seconds of compilation

write code at:
https://mbebenita.github.io/WasmExplorer/
example:
image

run it in mta:
image
https://github.com/CrosRoad95/mtasa-blue/blob/980c3743c07886b7ea24f07356ff9e2bea27e90e/Server/mods/deathmatch/CServer.cpp#L326-L345

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions