# GetBuild

`pl:GetBuild( )`

## ▸ Parameters

&#x20;      None

## ▸ Description

&#x20;        Returns player's build state\
&#x20;                **true**   : player in build mode\
&#x20;                **false** : player in pvp mode

## ▸ Example

{% tabs %}
{% tab title="Example 1" %}

```lua
local function check_build( pl )

    local bBuild = pl:GetBuild( )
    
    if bBuild then
        print( 'player in build mode' )
    else
        print( 'player in pvp mode' )
    end
    
end
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://builderx.rlib.io/developers/functions/getbuild.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
