INSTALLATION
SCRIPT DOWNLOAD
HOW TO INSTALL RD ASSETDOWNLOADING 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 SERVERRUN RD-INTERACTIONS
TO ENSURE THE SCRIPT
RD-INTERACTIONSIS PROPERLY LOADED IN THESERVER.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 INSERVER.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:
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.,5000for 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 tofalseunless 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:
OTHERS
🔧 Using rd-interactions for Showing & Hiding Door Interactions
rd-interactions for Showing & Hiding Door InteractionsThere 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
rd-interactions Interaction SystemThis 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