frp_core

An experimental framework for RedM. Limited support and breaking changes guaranteed.

Installation

  1. Install all resource dependencies.

  2. Download a release or build the source code

    git clone https://github.com/faroeste-roleplay/frp_core.git
  3. 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