# llGetParcelMaxPrims

*LSL function*

```lsl
integer integer llGetParcelMaxPrims(vector pos, integer sim_wide);
```

- `vector pos`: Position vector in region coordinates (the Z component is ignored).
- `integer sim_wide`: Boolean. If TRUE, returns the combined land impact limit for all parcels owned by the parcel owner in the region; if FALSE, returns only the limit for the specified parcel.

- Returns: `integer`
- Energy: 10

Returns an integer representing the maximum combined land impact (prim limit) allowed for objects on the parcel at pos, determined either for the single parcel or sim-wide based on sim_wide.

Returns an [integer](https://wiki.secondlife.com/wiki/integer) that is the maximum combined [land impact](http://community.secondlife.com/t5/English-Knowledge-Base/Calculating-land-impact/ta-p/974163) allowed for objects on the parcel at **pos**.

```lsl title="How to use" frame="terminal"
integer result = llGetParcelMaxPrims(ZERO_VECTOR, 0);
```

## Specification

If **sim_wide** is...

- then the return is the maximum land impact supported by the parcel.
- *not* then the return is the total land impact supported by all land in the region owned by the parcel owner.

## Caveats

- If there is an Object Bonus for the region, the value returned may be more than the region's total limit.

## Examples

<details open>
<summary>Example 1</summary>

```lsl
default
{
    touch_start(integer total_number)
    {
        llSay(0, "The total land impact of objects rezzed on this parcel is "
             +(string)llGetParcelPrimCount(llGetPos(), PARCEL_COUNT_TOTAL, FALSE) +", of "
             +(string)llGetParcelMaxPrims(llGetPos(), FALSE) + " allowed.");
    }
}
```

</details>

## See also

### Functions

- [llGetParcelPrimCount](/functions/llGetParcelPrimCount/)

---

*Source: [LlGetParcelMaxPrims](https://wiki.secondlife.com/wiki/LlGetParcelMaxPrims) on the Second Life Wiki. Content from the Second Life Wiki articles LlGetParcelMaxPrims (revision 1204810, 2016-11-01), Template:LSL Function/boolean (revision 1185613, 2013-12-24) and Template:LSL Function/position (revision 1169387, 2012-06-18), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llGetParcelMaxPrims/
