Skip to content

GetPlayerDog

The player’s dog.

GetPlayerDog(pid)
Parameter Type
pid number the player

number - the dog’s entity id; nil when they have none

-- /dog away
local dog = GetPlayerDog(pid)
if dog then DestroyEntity(dog) end

CreateDog · SetDogMode · the Dogs group of the index