πŸ›œInteraction Handlers

The VIP stash interaction supports different interaction systems, based on what your server uses.

In client/editable.lua, the function InteractionHandler() sets up how players open the VIP stash at the location defined by Config.VipStashCoords.

Supported interaction types

  • qb-target Adds a box zone using qb-target. When players are close, they see an option to open the VIP stash.

  • ox-target Adds a box zone using ox-target with a similar option to open the VIP stash.

  • codem-textui or Drawtext Shows a 3D text or text UI prompt when the player is near, instructing to press E to open the VIP stash.

How it works

  • The interaction type is set via Config.VipStashInteraction (qb-target, ox-target, codem-textui, or Drawtext).

  • The stash location uses Config.VipStashCoords.

  • Pressing the interaction key triggers the server event mg-vipsystem:openVipStash to open the stash.

Last updated