Next Scripts
  • Introduction
  • PAID RESOURCES
    • 📦Job Creator
      • Installation
      • Configuration
        • Client Configuration
        • Server Configuration
      • Exports
        • Client Exports
        • Server Exports
      • Commands
      • FAQ
    • 🍂 Drug System
      • Installation
      • Configuration
    • 📢 Notify
      • Installation
      • Configuration
      • Exports
        • Client Exports
        • Server Exports
    • 🎇 Event Tablet
      • Installation
      • Configuration
  • FREE RESOURCES
    • 🍁 Npc Drug Sells
      • Installation
      • Configuration
    • 👆🏻 Targeting
      • Installation
      • Configuration
      • Client Exports
      • Examples
    • 💻 Dispatch
      • Installation
      • Client Exports
      • Server Exports
      • Commands
Powered by GitBook
On this page
  • StartTargeting
  • StopTargeting
  1. FREE RESOURCES
  2. 👆🏻 Targeting

Client Exports

StartTargeting

It starts the raycast targeting

exports.targeting:StartTargeting(data)

data: table

  • npc: boolean enable raycasting on npc's


An example with npc raycasting disabled

RegisterCommand("getId", function (source, args, raw)
    local id = exports.targeting:StartTargeting({
        npc = false
    })
    print(id)
end)

This is equivalent to:

RegisterCommand("getId", function (source, args, raw)
    local id = exports.targeting:StartTargeting({})
    print(id)
end)

StopTargeting

It ends the raycast targeting

Stexports.targeting:StopTargeting()
PreviousConfigurationNextExamples

Last updated 11 months ago