Interact (Target)

If you're using supported interact resource you dont have to make any changes in this section.

You can override interact actions from no-base/configure/client/interact.lua

Types


Entry

Field
Type
Description

id

string

Unique id for entry

label

string

Label for entry

icon

string?

Font awesome icon name

event

string

Client event to trigger

parameters

any?

Parameters to pass with event

Distance

Field
Type
Description

radius

number?

Distance between entity and player

Options

Field
Type
Description

distance

Distance data

isEnabled

function(entity: number)?

Function to check is entity interactable

Examples


This is an example of how we handle qb-target. Since we support qb-target internally you don't need to make any changes if you use qb-target.

AddEntryByModel

Adds interaction to passed models.

Parameters

AddEntryBySphereZone

Adds interaction for sphere zone.

Parameters

Last updated