Coords Menu

Commands, Exports & Events

Commands, Exports & Events for Coords Menu.

View in store

Usage

CommandDescription
/coordsOpens the menu

Inside the menu:

  • Vector2 / Vector3 / Vector4 – copies the shown coordinates.
  • Get Target Coords – aim and left-click a point. ESC goes back.
  • Get Multiple Targets – left-click to add points, Enter to finish, ESC to 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

EventSideDescription
lg_coords:client:openMenuclientOpens the menu (trigger from the server with TriggerClientEvent)
lg_coords:server:requestOpenserverAsks the server to open the menu – the permission check runs here

Last updated