GetPlayerDog
The player’s dog.
Syntax
Section titled “Syntax”GetPlayerDog(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number - the dog’s entity id; nil when they have none
Example
Section titled “Example”-- /dog awaylocal dog = GetPlayerDog(pid)if dog then DestroyEntity(dog) endSee also
Section titled “See also”CreateDog · SetDogMode · the Dogs group of the index
