entityTarget

Description

Adds an interactive target to a specific entity.

Parameters

  • entity (number): Entity ID to attach the target to.

  • options (table): Same as in ps.boxTarget.

Return Value

  • None

Example Use Case

local ped = CreatePed(...)

ps.entityTarget(ped, {
    {
        label = "Talk to NPC",
        icon = "fa-solid fa-comment",
        action = function()
            print("NPC dialogue started.")
        end
    }
})

Last updated