Skip to content

Motion-Scripts/motion_entityselector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Entity Inspector (motion_entityselector)

A lightweight Entity Inspector tool for FiveM that allows admins to scan, highlight, and inspect entities in-game using a simple mouse interaction.


🔐 Permissions

To use this resource, you must grant the following ACE permission:

add_ace group.admin motion_entityselector.use allow

Only players with this permission will be able to access the inspector.


🎮 Controls

Action Key
Scan Entity Hold Middle Mouse Button (MMB)
Open Inspector Panel Release MMB
Close Panel ESC

✨ Features

  • 🔍 Raycast-based entity detection
  • 📦 3D bounding box rendering
  • 🏷️ Floating entity labels
  • 📊 Detailed entity inspection panel
  • 🔄 Live data updates while panel is open
  • 🚗 Vehicle-specific stats (engine, body, fuel tank)
  • 🧍 Ped-specific stats (armor, player check)
  • 🌐 Network info (Net ID, owner)

🧠 How It Works

  1. Hold MMB to scan for an entity in front of you
  2. A bounding box and label will appear on the entity
  3. Release MMB to open the inspector panel
  4. View real-time data about the selected entity

📁 Installation

  1. Place the resource in your resources folder
  2. Add to your server.cfg:

ensure motion_entityselector

  1. Add the ACE permission:

add_ace group.admin motion_entityselector.use allow


⚙️ Requirements

  • FiveM server
  • NUI support enabled
  • Admin system using ACE permissions

🧾 Notes

  • Uses RegisterKeyMapping for proper MMB detection
  • Only works for players with the correct ACE permission
  • Automatically disables when resource stops

📌 Resource Info

  • Resource Name: motion_entityselector
  • Client File: client/main.lua
  • Permission: motion_entityselector.use

🛠️ Developer Notes

  • Built with safe pcall usage to prevent crashes from invalid entities
  • Handles streaming issues gracefully
  • Optimized scan loop (20 ticks/sec)

Enjoy inspecting entities with precision 🚀

About

A FiveM Entity Selector Script that lets you quickly identify props, vehicles, and peds in-game. Instantly displays model names and hashes, saving time and removing the need for manual searching.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors