Lib.addInteractionCoords

it is used to add interactions on given coordinates, for ox_target and qb-target it uses the zone box in a given place

Lib.addInteractionCoords(name, coords, {
    distance = 2.0,  
    options = {
        {
            name = "",
            icon = "",
            label = ""
            onSelect = function()
            end,
        }
    },
})
  • name: string

  • coords: vector3

  • data: table

    • distance: number

    • squareDistance: number or nil (optional for is_interaction)

    • boxLength: number or nil (optional for ox_target and qb-target)

    • boxWidth: number or nil (optional for ox_target and qb-target)

    • boxHeight: number or nil (optional for ox_target and qb-target)

    • boxHeading: number or nil (optional for ox_target and qb-target)

    • debugPoly: bolleanor nil (optional for ox_target and qb-target)

    • hideSquare: boolean or nil (optional for is_interaction)

    • checkVisibility: boolean or nil (optional for is_interaction)

    • showInVehicle: boolean or nil (optional for is_interaction)

    • offset: table or nil (optional for is_interaction)

      • text: table

      • target: table

    • options: table

      • option: indexed table

        • name: string

        • icon: string

        • label: string

        • key: string or nil (optional for is_interaction)

        • duration: number or nil (optional for is_interaction)

        • onSelect: function

Last updated