Var-Interact
- Standalone
Resource Description
- World-Anchored 3D Prompts
Display interactive 3D TextUI or DUI markers directly in the game world with customizable scale, icons, colors, and success/warning states.
- Hold-to-Interact System
Configurable hold keys, duration, and distance checks. Includes conditional validation via canInteract() and secure callback execution.
- Busy-State Protection
Prevents overlapping prompts and input spam by managing a busy state (LocalPlayer.state.TextUiBusy).
- Ready-to-Use PED Kit
Automatic PED spawning and despawning based on player distance, supporting animations, scenarios, and integrated ox_lib points.
- Optimized Distance Handling
Uses squared distance checks and ox_lib points for efficient range detection and low CPU impact.
- Clean Resource Lifecycle
Ensures proper cleanup of DUIs, PEDs, and points when the resource stops. No leaks or dangling entities.
- Controller & Keyboard Friendly
Interaction prompts use control IDs (default E/38) and optionally restrict to a single bind for stricter gameplay.