Bridge is in a state of development and is not stable.
RAGE:MP to FiveM Bridge
Plugins

fs-compat

fs-compat

fs-compat is a server-side compatibility plugin that makes file system code behave more like it did in RAGE:MP.

What it fixes

FiveM resources do not always run with the working directory your old SDK code expects. fs-compat redirects process.cwd() to the resource path so common file writes, logs, and relative paths keep working.

Side

Server only

Loads automatically

Enabled by default

Disable name

fs-compat

Typical use case

You have existing code that writes logs, JSON files, temporary state, or generated files using paths based on process.cwd().

server/index.js
import fs from 'node:fs';
import path from 'node:path';

const logsPath = path.join(process.cwd(), 'logs', 'server.log');
fs.mkdirSync(path.dirname(logsPath), { recursive: true });
fs.appendFileSync(logsPath, 'Bridge started\n');

Disable it

your-gamemode/fxmanifest.lua
disable_plugin 'fs-compat'
ragemp-fivem-bridge/fxmanifest.lua
disable_plugin 'fs-compat'

Checklist

  • Use it when old RAGE:MP server code depends on process.cwd().
  • Disable it if your code already resolves every path through FiveM resource APIs.
  • Keep sensitive files out of public resources even when file writes work.

On this page