# C_PlayerInfo (PlayerLocationInfo): World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/PlayerLocationInfo

## Functions

### C_PlayerInfo.GUIDIsPlayer

```lua
isPlayer = C_PlayerInfo.GUIDIsPlayer(guid)
```

Arguments:
- `guid`: WOWGUID

Returns:
- `isPlayer`: bool

### C_PlayerInfo.GetClass

```lua
className, classFilename, classID = C_PlayerInfo.GetClass(playerLocation)
```

Arguments:
- `playerLocation`: PlayerLocation

Returns:
- `className`: cstring, may be nil
- `classFilename`: cstring, may be nil
- `classID`: number, may be nil

### C_PlayerInfo.GetName

```lua
name = C_PlayerInfo.GetName(playerLocation)
```

May return nothing.

Arguments:
- `playerLocation`: PlayerLocation

Returns:
- `name`: string

### C_PlayerInfo.GetRace

```lua
raceID = C_PlayerInfo.GetRace(playerLocation)
```

Arguments:
- `playerLocation`: PlayerLocation

Returns:
- `raceID`: number, may be nil

### C_PlayerInfo.GetSex

```lua
sex = C_PlayerInfo.GetSex(playerLocation)
```

Arguments:
- `playerLocation`: PlayerLocation

Returns:
- `sex`: UnitSex, may be nil

### C_PlayerInfo.IsConnected

```lua
isConnected = C_PlayerInfo.IsConnected([playerLocation])
```

Arguments:
- `playerLocation`: PlayerLocation, may be nil

Returns:
- `isConnected`: bool, may be nil

### C_PlayerInfo.UnitIsSameServer

```lua
unitIsSameServer = C_PlayerInfo.UnitIsSameServer(playerLocation)
```

Arguments:
- `playerLocation`: PlayerLocation

Returns:
- `unitIsSameServer`: bool

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
