Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nextscripts-5m authored Feb 26, 2024
1 parent 74e0176 commit e265476
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,33 @@ I didn't find many resources on the forum or on GitHub that would allow you to d
📃 [Documentation](https://next-script-tm.gitbook.io/next-scripts/free-resources/targeting)
---
For the installation read the docs!

---

# Usage

```lua
exports.targeting:StartTargeting(data)
```
data: `table`
* npc: `boolean` enable raycasting on npc's

---

> An example with npc raycasting disabled
```lua
RegisterCommand("getId", function (source, args, raw)
local id = exports.targeting:StartTargeting({
npc = false
})
print(id)
end)
```

> This is equivalent to:
```lua
RegisterCommand("getId", function (source, args, raw)
local id = exports.targeting:StartTargeting({})
print(id)
end)
```

0 comments on commit e265476

Please sign in to comment.