---
title: "GetPlayerInterior | open.mp"
description: "Haal het huidige interior van een speler op."
canonical: https://omp.itsneufox.com/nl/docs/scripting/functions/GetPlayerInterior
language: nl
---

# GetPlayerInterior

## Beschrijving

Geeft de huidige interior‑ID van de speler terug.

| Naam | Beschrijving |
| --- | --- |
| playerid | Speler waarvan je het interior wilt. |

## Retourneert

De interior‑ID waarin de speler zich bevindt.

## Voorbeeld

```c
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp(cmdtext, "/int", true))
    {
        new s[64];
        format(s, sizeof(s), "You are in interior %i", GetPlayerInterior(playerid));
        SendClientMessage(playerid, 0xFF8000FF, s);
        return 1;
    }
    return 0;
}
```

## Opmerkingen

Retourneert altijd interior 0 voor NPC's.

## Gerelateerd

-   [SetPlayerInterior](https://omp.itsneufox.com/nl/docs/scripting/functions/SetPlayerInterior)
-   [GetPlayerVirtualWorld](https://omp.itsneufox.com/nl/docs/scripting/functions/GetPlayerVirtualWorld)
