Skip to main content
Client exports for integrating NEX Anim Pos with other resources — menus, emote scripts, admin tools. Resource name is nex_animpos. Both exports are client-side.

Client exports

ExportReturnsUse case
CheckSit()booleantrue while the player is in positioning mode.
DisableCommands(disabled)Temporarily pause (true) or resume (false) the positioning session.

CheckSit()

Returns true while the local player has an active positioning session (including while the position is confirmed but not yet exited).
if exports.nex_animpos:CheckSit() then
    -- e.g. block your emote menu from starting an animation mid-positioning
end

DisableCommands(disabled)

Pauses or resumes an active session without ending it. Pausing drops the scripted camera, releases NUI focus, and hides the panel; resuming brings everything back exactly where it was. Use it when another resource needs the screen or the mouse — a phone, a menu, an inventory.
-- Your menu opens:
exports.nex_animpos:DisableCommands(true)

-- Your menu closes:
exports.nex_animpos:DisableCommands(false)
If the player wasn’t positioning, calling DisableCommands is harmless — resuming only re-opens the editor when a session is actually active.