MiscClient

setPlayerIsInAnimalForm

SET_PLAYER_IS_IN_ANIMAL_FORM0x4EBB7E87AA0DBED4

The GTA V native SET_PLAYER_IS_IN_ANIMAL_FORM of the MISC namespace, as LS:MP client scripts call it: the global function setPlayerIsInAnimalForm, in JavaScript and in Lua.

SignatureJavaScript
setPlayerIsInAnimalForm(toggle: boolean): void
SignatureLua
setPlayerIsInAnimalForm(toggle: boolean)

Usage

JavaScript
setPlayerIsInAnimalForm(toggle);
Lua
setPlayerIsInAnimalForm(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

If toggle is true, the ped's head is shown in the pause menu
If toggle is false, the ped's head is not shown in the pause menu

Reference

Namespace
Misc MISC
In the game
void SET_PLAYER_IS_IN_ANIMAL_FORM(BOOL toggle)
Hash
0x4EBB7E87AA0DBED4
Formerly
_SHOW_PED_IN_PAUSE_MENU _SET_PLAYER_IS_IN_ANIMAL_FORM

Open in the interactive natives reference