# NPC:SetMyPos

### From SA-MP Wiki

**Description:**

Set the position of the NPC.

**Parameters:**

(Float:x, Float:y, Float:z)

Float:x | The X coordinate to put the NPC at. |

Float:y | The Y coordinate to put the NPC at. |

Float:z | The Z coordinate to put the NPC at. |

**Return Values:**

This function does not return any specific values.

**Example Usage:**

SetMyPos(0.0, 0.0, 3.0);

[edit]

### **Related Functions**

The following functions may be useful, as they are related to this function in one way or another.

- NPC:GetMyPos: Get the NPC's current position.

- NPC:GetDistanceFromMeToPoint: Get the distance between the NPC and a point.