Installation

SCRIPT DOWNLOAD

🔐 Logging in to the CFX Portal & Downloading Assets

Before you begin, you must log in to the official CFX portal. This is required to download any assets you've been granted access to.

📥 Downloading Your Asset

Once logged in:

  1. Go to the "Granted Assets" section. This is where all your purchased or granted resources are listed.

  2. Locate for rd-interactions.

  3. Click the "Download" button next to the asset.

⚠️ You can download the asset as many times as you need — whether it's the first time or when updates are released in the future.

🛠️ Troubleshooting Issues

If you experience any issues while starting or using the asset, be sure to check the asset's official CFX page. Common issues and solutions are often documented there, which can help resolve your problem quickly.

DOWNLOADING DEPENDENCIES

The dependencies for this asset are mandatory, so please follow the dependency guide completely and use all required files.

When downloading a dependency, ensure the file is properly unzipped and does not include "-main" at the end of its name. If it does, please remove it.

UPDATE ARTIFACT AND GAMEBUILD

How to Properly Update Artifacts and Gamebuild for Your Server

Updating to the latest artifacts and gamebuild is essential for maintaining a stable and optimized server. This ensures that you're not only running the latest features but also avoiding common server issues caused by outdated versions. Follow the steps below to properly update your server.

Step 1: Update Artifacts

Artifacts are essential components that keep your server running smoothly. To update to the latest version of the artifacts:

  1. Completely Replace Your Current Artifacts It's important to fully replace your current artifacts folder with the latest version. This ensures you're not using outdated files that could cause compatibility issues.

  2. Download the Latest Artifacts for Your Operating System You need to download the appropriate artifacts based on your server’s operating system. Use the official links below:

    Make sure to download the correct version (32-bit or 64-bit) based on your system.

Step 2: Update Gamebuild

Using the latest gamebuild is crucial for taking advantage of new features, bug fixes, and ensuring compatibility with newer mods and scripts. Outdated gamebuilds can lead to errors and instability.

  1. Edit the server.cfg File To update the gamebuild, you need to specify the version in the server configuration. Open the server.cfg file located in your server directory and add the following line:

    • Note: The number 3258 is an example. You should always use the latest gamebuild number, which you can find from the official update logs or documentation.

  2. Save and Restart Your Server After updating the server.cfg file, save your changes and restart your server for the updates to take effect.

Complete Guide

For a more detailed step-by-step guide on how to update your server, including troubleshooting tips and further instructions.

RUN RD-INTERACTIONS

To ensure the script rd-interactions is properly loaded in the server.cfg, you need to add a line to the configuration file that starts the script when the server runs. This is typically done by adding the following line at the appropriate section in server.cfg:

INTEGRATION IN QBCORE, ESX AND OTHER FRAMEWORKS

QBCORE

📍 FOR QBCORE USERS

Setup Instructions 🔹 DrawText Setup

qbcore/client/drawtext.lua

🔹 Notify Setup

qbcore/client/functions.lua

New Function:

ESX

✅ FOR ESX – Notification Function (Line 156)

✅ FOR ESX – TextUI Setup (Line 160)

OTHERS

🔔 Notify UI

This shows a styled notification message on the screen.

Syntax:

Parameters:

  • "RD NOTIFY": This stays as is – it defines the UI type.

  • text: The message you want to display.

  • length: Duration in milliseconds (e.g., 5000 for 5 seconds).

  • ttype: Type of notification style (examples: "info", "error", "success").

Example:


📝 Text UI

This is used to show a text prompt, often at the bottom left (like "Press E to interact").

Show Text UI:

Parameters:

  • text: The message to display (e.g., "Open the door").

  • "left": Position on screen ("left" or "right").

  • "E": Key to show as hint (any string).

  • false: Usually set to false unless using some special condition.

Example:

Hide Text UI:

This will remove the TextUI from the screen.

DOORLOCK

QB-DOORLOCK

✅ With this:

📄 File: qb-doorlock/client/main.lua 🔢 Line: 103

🔧 Replace this code:

✅ With this:

📄 File: qb-doorlock/client/main.lua 🔢 Line: 823

🔧 Replace this code:

✅ With this:

OX-DOORLOCK

✅ With this:

OTHERS

🔧 Using rd-interactions for Showing & Hiding Door Interactions

There are two interaction types available in the rd-interactions system:

  • "interact"Displays the interaction prompt (visible to the player).

  • "interact_off"Hides or removes the interaction prompt.


To SHOW the interaction

Use this to make an interaction prompt appear at a specific location:

  • coords: The 3D vector location of the door or object.

  • "interact": The interaction type that shows the prompt.


🚫 To HIDE the interaction

Use this to turn off or remove any current interaction prompt:

Or you can also pass "interact_off" to remove a specific type if needed:

3D TEXTUI

HOW TO USE

📌 rd-interactions Interaction System

This guide explains how to use the rd-interactions interaction exports to create world-based interactions in your resource.


✨ CreateInteraction

This export registers a world-based interaction at specific coordinates. When a player gets close, they’ll see options to interact with.

✅ Syntax

🧩 Example 2 – Multi-Option Interaction

This interaction point gives players three options:

  • Equip a pistol

  • Trigger a client notification

  • Trigger a server-wide broadcast message

❌ RemoveInteraction 💬 Command Example

/testremove name2

📝 Notes

coords should be a vec3.

interactDst defines the trigger radius, while distance defines the render radius.

Use action, event, or serverEvent to define behavior.

The name field must be unique per interaction.

Last updated