RX Interact Installation
RX Interact is an interaction system for FiveM. Walk up to something and a small dot appears on it; get close and look at it, and the dot turns into the key with the action next to it. When a target has more than one action, scroll through them with the mouse wheel or the arrow keys, then hold the key.
It also brings on-screen key hints, text UI, menus, input forms, notifications, and two minigames (a safe and a starter cord), all in the same style. It stands in for qb-target, ox_target, qb-menu, qb-input, and parts of qb-core and ox_lib, so the scripts you already run keep working and simply take on the new look.
Requirements
| Requirement | Notes |
|---|---|
| Framework | None needed. ESX, QBCore, and Qbox are supported: with one of them running, the job, gang, and item checks on target options are read from the framework. Without a framework, those checks always pass. |
ox_lib | Not required. If your server runs it, RX Interact takes over its text UI, context menus, input and alert dialogs, and notifications. |
There is no SQL to import and nothing runs on the server side.
1. Place the resource
Extract rx_interact into your server’s resources directory.
2. Remove what it replaces
Take these resources out of your server, because RX Interact answers for them:
qb-targetandox_targetqb-menuqb-input
Keep your framework (es_extended, qb-core, or qbx_core) and ox_lib. RX Interact replaces only parts of them and needs them to keep running.
If one of the originals is still running, RX Interact leaves it alone and reports it in the F8 console. To keep an original on purpose, turn its entry off in Config.Bridge.
3. Add it to server.cfg
Put ensure rx_interact where your target resource used to be: after your framework and ox_lib, and before the scripts that use them.
ensure ox_lib
ensure qb-core # or es_extended / qbx_core
ensure rx_interact
# scripts that use qb-target, ox_target, qb-menu, qb-input...
ensure qb-shops
ensure qb-banking4. Restart the server
On start, the F8 console lists everything RX Interact is answering for. Nothing in your other scripts needs to change: they keep calling qb-target, ox_target, qb-menu, and qb-input as before.
5. Route qb-core notifications (QBCore only, optional)
QBCore.Functions.Notify is a function inside qb-core rather than an export, so it cannot be taken over from outside. To give qb-core notifications the RX Interact look, add three lines at the top of the function in qb-core/client/functions.lua:
function QBCore.Functions.Notify(text, texttype, length, icon)
if GetResourceState('rx_interact') == 'started' then
return exports.rx_interact:notify(text, texttype, length, icon)
end
-- the rest stays as it wasox_lib notifications need no change; they are taken over automatically.
Controls
| Key | Action |
|---|---|
| E (hold) | Use the selected action. The hold time is set by Config.Hold; some actions are a simple press. |
| Mouse wheel, arrow keys | Choose between several actions on the same target |
There is no eye key (Alt). Prompts appear as players get near, and the interact key uses them. Players can rebind the key under Settings > Key Bindings > FiveM. The default key is Config.Key.
Good to know
- If you restart
rx_interacton its own while the server is running, also restart the scripts that use DrawText or text UI. - A few scripts check
GetResourceState('ox_target')to decide which target to use. They may fall back to their qb-target code, which works just as well. config.luaand thelocalesfolder are open to edit.
Next: Configuration for the look, distances, and bridges, and Exports for adding RX Interact to your own scripts.