---
title: "GetMyPos | open.mp"
description: "Dobij poziciju NPC-a"
canonical: https://omp.itsneufox.com/bs/docs/scripting/functions/GetMyPos
language: bs
---

# GetMyPos

## Deskripcija

Dobij poziciju NPC-a

| Ime | Deskripcija |
| --- | --- |
| &Float:x | Float za spremanje X koordinate, proslijeđen referencom. |
| &Float:y | Float za spremanje Y koordinate, proslijeđen referencom. |
| &Float:z | Float za spremanje Z koordinate, proslijeđen referencom. |

## Returns

Ova funkcija ne returna (ne vraća) nikakve specifične vrijednosti.

## Primjer

```c
new Float:x, Float:y, Float:z;
GetMyPos(x, y, z);
printf("Trenutno sam na %f, %f, %f!", x, y, z);
```

## Srodne Funkcije

-   [SetMyPos](https://omp.itsneufox.com/bs/docs/scripting/functions/SetMyPos): Postavite poziciju NPC-u.
