Donut Team is a labor of love, built and maintained by a small group of passionate developers. We invest our own time and resources to offer our tools, mods, and web services completely free of charge.

We don't run ads, and we will never sell your data - period.

If you've enjoyed anything we've created, please consider supporting our work with a one-time or monthly donation via our Ko-fi page . Every contribution helps us continue building great experiences for the community.

Dismiss
  • Modding Tools
  • Simpsons Hit & Run Multiplayer Server
  • Lua API Reference
  • Data Structures

PlayerCharacter

Available since Version 1.0.

The PlayerCharacter return type represents a player's character in Simpsons Hit & Run Multiplayer Server mods. It is returned by certain functions that retrieve player character data from the server.

Variables

Variable Name Type Description
HasRadarIcon boolean If true, the player is visible on the radar.
HasFullScreenMapIcon boolean If true, the player is visible on the full screen map.
HasNameTag boolean If true, the player's name tag is visible above their character.

Methods

Function Name Description
PlayerCharacter:GetPosition Gets the player's character's current position in the level. This is nil if the player is not currently in a level.