downINSTALLATION

SCRIPT DOWNLOAD

HOW TO INSTALL RD ASSETchevron-right

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 UPDATE MY SERVERchevron-right

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

chevron-rightQBCOREhashtag

📍 FOR QBCORE USERS

Setup Instructions 🔹 DrawText Setup

qbcore/client/drawtext.lua

🔹 Notify Setup

qbcore/client/functions.lua

New Function:

chevron-rightESXhashtag

✅ FOR ESX – Notification Function (Line 156)

✅ FOR ESX – TextUI Setup (Line 160)

chevron-rightOTHERShashtag

🔔 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

chevron-rightQB-DOORLOCKhashtag

✅ 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:

chevron-rightOX-DOORLOCKhashtag

✅ With this:

chevron-rightOTHERShashtag

🔧 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

chevron-rightHOW TO USEhashtag

📌 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