Skip to content

Usage

Page Type

VariableTypeDescription
titlestringThe title of the page
titleColorstringThe color of the page's title
subTitlestringThe subtitle of the page
bottomTextstringThe footer of the page
bottomTextColorstringThe colour of the page's footer
menuItemstable<{ icon: string, color: string, title: string, halfSize?: boolean, fontColor?: string}>[]What data fields to show on the scanner

Exports

Export NameParametersDescription
RegisterEntityInteraction(interactionKey: string, entity: number, data: Page[])Create a scanner interaction on the provided object entity with the unique ID provided
RegisterCoordsInteraction(interactionKey: string, coords: vector3, data: Page[])Create a scanner interaction at the provided coords with the unique ID provided
RefreshInteractionPages(interactionKey: string, data: Page[])Refreshes the pages on the already created interaction with that unique ID
UnregisterInteraction(interactionKey: string)Removes the interaction with the provided unique ID from the entity it is attached to

How it works

  1. Equip the Scanner weaopn from your inventory and start aiming it.
  2. When you aim it at an entity with registered interactions, it will display that on the device.
  3. Use your mouse buttons to switch between the pages and see the different content.