AudioClient

setPedGender

SET_PED_GENDER0xA5342D390CDA41D6

The GTA V native SET_PED_GENDER of the AUDIO namespace, as LS:MP client scripts call it: the global function setPedGender, in JavaScript and in Lua.

SignatureJavaScript
setPedGender(ped: Ped, p1: boolean): void
SignatureLua
setPedGender(ped: Ped, p1: boolean)

Usage

JavaScript
setPedGender(ped, p1);
Lua
setPedGender(ped, p1)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
p1BOOLbooleanboolean

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.

BOOL p1: 0 = Female; 1 = Male

Reference

Namespace
Audio AUDIO
In the game
void SET_PED_GENDER(Ped ped, BOOL p1)
Hash
0xA5342D390CDA41D6
Formerly
_SET_PED_AUDIO_GENDER

Open in the interactive natives reference