Coords Menu
Commands, Exports & Events
Commands, Exports & Events for Coords Menu.
Usage
| Command | Description |
|---|---|
/coords | Opens the menu |
Inside the menu:
- Vector2 / Vector3 / Vector4 – copies the shown coordinates.
- Get Target Coords – aim and left-click a point.
ESCgoes back. - Get Multiple Targets – left-click to add points,
Enterto finish,ESCto cancel.
Exports
Client:
lua
exports.lg_coords:OpenMenu() -- open the menu (no permission check)
exports.lg_coords:StartPicking(true) -- start picking (true = multiple points)
local c = exports.lg_coords:GetCoords() -- { x, y, z, h } of the local player
local busy = exports.lg_coords:IsPicking()Server:
lua
exports.lg_coords:OpenMenu(source) -- open the menu for a player
local allowed = exports.lg_coords:CanOpen(source)Events
| Event | Side | Description |
|---|---|---|
lg_coords:client:openMenu | client | Opens the menu (trigger from the server with TriggerClientEvent) |
lg_coords:server:requestOpen | server | Asks the server to open the menu – the permission check runs here |
Last updated