OPX//77
opx_infinityclothing

Events

Last updated on

Network and local events of the clothing module.

opx:net:clothing:ask

Client → server. Send me the stores of my routing bucket. Asked at start and every POLL_MS.

TriggerServerEvent('opx:net:clothing:ask')

opx:net:clothing:sync

Server → client. The stores of the player's bucket. Also sent to everyone after a capture or removal.

RegisterNetEvent('opx:net:clothing:sync', function(payload) end)
  • payload: table — { spots = { { key, label, x, y, z, bucket }, … } }

opx:net:clothing:open

Client → server. The key was pressed. The server measures the player's distance to a store in their bucket (USE_RADIUS) and, if on one, calls appearance.AllowClothingSave. Nothing is sent back. Cooldown 1 s.

TriggerServerEvent('opx:net:clothing:open')

opx:on:clothing:decision

Client, local. Raised after every key press or Open call.

AddEventHandler('opx:on:clothing:decision', function(decision) end)
  • decision: table — { source, ok, error?, reason?, store?, citizenId? }
    • error: a locale key.
    • reason: the fitting room's own refusal (e.g. player_down, no_character, appearance_busy).

On this page