Usage
Page Type
| Variable | Type | Description |
|---|---|---|
title | string | The title of the page |
titleColor | string | The color of the page's title |
subTitle | string | The subtitle of the page |
bottomText | string | The footer of the page |
bottomTextColor | string | The colour of the page's footer |
menuItems | table<{ icon: string, color: string, title: string, halfSize?: boolean, fontColor?: string}>[] | What data fields to show on the scanner |
Exports
| Export Name | Parameters | Description |
|---|---|---|
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
- Equip the Scanner weaopn from your inventory and start aiming it.
- When you aim it at an entity with registered interactions, it will display that on the device.
- Use your mouse buttons to switch between the pages and see the different content.