inside-scripts
Store
  • INFORMATION
    • inside-scripts
  • PAID SCRIPTS
    • 🔑 Vehicle Keys
      • Functions
      • Config
    • 🚗 Garage
      • Functions
      • Script Functionality Overview
      • Config
    • 🥦 Weed Laboratory
      • Config
    • 💊 Sell Drugs
      • Script Functionality Overview
      • Config
    • 🗯️ Dialog V1
      • Functions
      • Config
    • 🗯️ Dialog V2
      • Functions
      • Config
    • 📰 Interaction
      • Functions
      • Config
    • 🪧Notifications and Progress
      • Functions
      • Config
    • 🪛 Lock Picking
      • Config
  • FREE SCRIPTS
    • 🖥️ Bridge & Library
      • Compatibility
      • Usage & Installation
      • Functions
        • Bridge
          • Framework
            • Client
            • Server
          • Inventory
            • Server
          • Fuel
            • Client
          • Keys
            • Client
            • Server
          • Notification
            • Client
            • Server
          • Progress Bar
            • Client
          • Target
            • Client
        • Library
          • Callback
            • Client
            • Server
          • Entity
            • Client
            • Server
          • Blip
            • Client
          • Identifier
            • Server
          • Timezone
            • Server
          • Webhook
            • Server
          • Utility
            • Shared
Powered by GitBook
On this page
  • addEntity
  • Usage
  • Example
  • removeEntity
  • Usage
  • Example
  1. FREE SCRIPTS
  2. 🖥️ Bridge & Library
  3. Functions
  4. Bridge
  5. Target

Client

addEntity

Usage

bridge.target.addEntity(entity, data)
  • entity: number

  • data: object

    • hideSquare(optional): boolean

      • default: false

    • checkVisibility(optional): boolean

      • default: true

    • showInVehicle(optional): boolean

      • default: false

    • distance: float

    • squareDistance(optional): float

      • default: 3.0

    • offset(optional): object

      • text: object

        • x: float

          • default: 0.0

        • y: float

          • default: 0.0

        • z: float

          • default: 1.0

      • target: object

        • x: float

          • default: 0.0

        • y: float

          • default: 0.0

        • z: float

          • default: 0.0

    • options: array

      • name: string

      • label: string

      • icon: string

      • onSelect: function

      • key(optional): string

      • duration(optional): number

Example

bridge.target.addEntity(entity, {
    distance = 2.0,
    squareDistance = 5.0,
    options = {
        {
            name = "option1",
            label = "Example Option 1",
            icon = "fa-solid fa-hotdog",
            onSelect = function()
                print("Example Function")
            end
        }
    }
})
bridge.target.addEntity(entity, {
    distance = 2.0,
    squareDistance = 5.0,
    hideSquare = false,
    checkVisibility = false,
    showInVehicle = false,
    offset = {
        text = {x = 0.0, y = 0.0, z = 1.0},
        target = {x = 0.0, y = 0.0, z = 0.0},
    },
    options = {
        {
            name = "option1",
            label = "Example Option 1",
            icon = "fa-solid fa-hotdog",
            onSelect = function()
                print("Example Function")
            end
        },
        {
            name = "option2",
            label = "Example Option 2",
            icon = "fa-solid fa-hotdog",
            onSelect = function()
                print("Example Function")
            end
        }
    }
})

removeEntity

Usage

bridge.target.removeEntity(entity, option, invoker)
  • entity: number

  • option(optional): string

  • invoker(optional): string

Example

bridge.target.removeEntity(entity)
bridge.target.removeEntity(entity, "option1")

Last updated 7 months ago