πZoneCues
ZoneCues is a FiveM script designed for immersive roleplay. It allows players to place ambient notifications in the game world that trigger when another player enters a defined radius around a player.
π Features
π Create roleplay-based cues (e.g. "You smell cannabis")
π Attach cues to:
Yourself
Vehicles
Objects
Static world positions
π― ox_target integration for intuitive third-eye target selection
π Preview radius with live marker during cue placement
π Manage active cues via a modern, stylish NUI menu
π Automatic timeout if no selection is made
π Cues attached to players are removed if they leave the server
π§± Installation
Follow instructions in Getting Started
Ensure that the dependancies are started BEFORE this resource in server.cfg
π¦ Dependancies
πΉοΈ Usage
Open the Menu
Use the command:
Creating a Cue
Enter your message (e.g. "You smell cannabis").
Set the radius (1-50 meters).
Choose an attachment type:
Self β attaches to you
Vehicle/Object β requires selection with third eye
Static β places it where you stand
If Vehicle/Object is chosen, click Select Target and use the third eye to select your target.
A radius marker will preview the area before finalizing.
Click Create to place the cue.
Managing Cues
Your active zones appear in the bottom panel
Edit or remove cues at any time
π‘Tips & Notes
Only the creator sees their own cues in the management panel
Notifications display using a clean, modern UI overlay
The menu auto-closes when selecting a target, and auto-reopens once selected
If no target is selected within 30 seconds, the process is cancelled with a notification
Cues follow vehicles and objects if they move (via network ID tracking)
π€ Exports
ZoneCues provides several server-side exports for interacting with zones programmatically from other resources:
addZone(data: table) β number
addZone(data: table) β numberAdds a new zone and returns its unique ID.
Example:
Data Parameters:
message
string
The message shown when entering the zone
radius
number
Radius (in meters) of the zone
attach
string
"static", "vehicle", "object", "self"
coords
vector3
Required if using "static"
netId
number
Required if using "vehicle" or "object"
removeZone(id: number) β boolean
removeZone(id: number) β booleanRemoves a zone by its ID.
Example:
getAllZones() β table
getAllZones() β tableReturns a table of all currently active zones.
Example:
βοΈ Configuration
Located in config.lua:
Last updated
