frp_core
An experimental framework for RedM. Limited support and breaking changes guaranteed.
This resource is now in a stable (v1.0) release; breaking changes are unlikely. Documentation is kept updated.
Installation
- Download a release or build the source code
git clone https://github.com/faroeste-roleplay/frp_core.git - Install optional dependencies.
These resources aren't required but provide additional functionality.
Tunnel & Proxy System
The API utilizes a modified vRP-style Tunnel and Proxy system for inter-resource communication:
Tunnel: Provides two-way communication between server and clients with async support
Proxy: Enables function calls between different resources on the same side
Basic Usage
To enable the library inside of your resource just add @frp_lib/library/linker.lua as a shared_script in your fxmanifest.lua file.
Or if the library is the only shared script you use you can do:
server-side
client-side
Last updated