> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Give territory points

> Add points to a faction in a territory from an external script.

Adds points to a faction in a territory from an external script.

```lua Export theme={null}
exports["drugs_creator"]:giveTerritoryPoints(territory, job, amount)
```

### Parameters

| Name        | Data Type | Description                                                                 |
| ----------- | --------- | --------------------------------------------------------------------------- |
| `territory` | string    | Territory name, or `"*"` to target all territories                          |
| `job`       | string    | Job/gang name to give points to, or `"*"` to target all configured factions |
| `amount`    | integer   | Number of points to add (must be > 0)                                       |

## Example

```lua theme={null}
-- Give 2 points to "ballas" in "RANCHO"
exports["drugs_creator"]:giveTerritoryPoints("RANCHO", "ballas", 2)

-- Give 3 points to all factions in all territories
exports["drugs_creator"]:giveTerritoryPoints("*", "*", 3)
```


## Related topics

- [Territories](/drugs-creator/server/territories/index.md)
- [Reset territory points](/drugs-creator/server/territories/reset-territory-points.md)
- [Remove territory points](/drugs-creator/server/territories/remove-territory-points.md)
- [Server](/drugs-creator/server/index.md)
