
Client-side interaction prompt system for FiveM with zero dependencies
FX-Interactions is a prompt layer that other scripts register interactions on. Point it at a coordinate, entity, model or vehicle set, and it draws a prompt when the player is close enough, reads the key input, and reports which option was chosen. It replaces both target systems and DrawText3D with no dependencies — not ox_lib, not a framework, not a database.
All registration, distance selection and key presses happen client-side with no server packets. The resource acting on a selection performs its own validation. The only server-side file is a startup update notice.
The design prioritises idle cost: three loops run at different frequencies, all dropping to a long wait when nothing is in range. The NUI only receives messages when state changes, and per-frame work only occurs while a prompt is visible.