Client

Exports for client context

Create Blip

Creates a map blip (icon or radius) that can be removed later.

  • Supports both sprite and radius blips

  • Automatically cleaned up on resource stop

Orchid.createBlip(settings, coords)
  • settings – table with:

{
    sprite? = number,    -- blip icon
    colour = number,     -- blip color
    scale? = number,     -- blip scale (default 0.8)
    name? = string,      -- blip label
    radius? = number     -- radius for circular blips
}
  • coordsvector3 position

Returns: Blip object with remove() method.

Example Usage
local blip = exports['orchid-bridge']:createBlip({
    sprite = 280,
    colour = 2,
    name = "Shop"
}, vector3(200.0, 300.0, 30.0))

blip:remove() -- manually remove when needed

Create Interactive Ped

Spawns an interactive NPC using your target system.

  • Spawns ped on player entering defined area, ensuring solid optimization

  • Supports scenarios to be played on ped

  • Automatically removed on exit or resource stop

  • No leftover entities

Orchid.createInteractivePed(ped, options)
  • ped – table:

{
    hash = string | number,    -- ped model
    coords = vector4,          -- position + heading
    scenario? = boolean        -- optional animation, default true
}
  • options – array of target interactions. Check out this page (it also applies even if you use this export with qb-target)

Returns: lib.points object managing the ped.

Example Usage
local pedConfig = {
    hash = "s_m_m_doctor_01",
    coords = vector4(200.0, 300.0, 30.0, 90.0)
}

local options = {
    {
        label = "Talk",
        onSelect = function(entity)
            print("Hello!")
        end
    }
}

exports['orchid-bridge']:createInteractivePed(pedConfig, options)

Last updated