PedClient

isPedMale

IS_PED_MALE0x6D9F5FAA7488BA46

The GTA V native IS_PED_MALE of the PED namespace, as LS:MP client scripts call it: the global function isPedMale, in JavaScript and in Lua.

SignatureJavaScript
isPedMale(ped: Ped): boolean
SignatureLua
isPedMale(ped: Ped): boolean

Usage

JavaScript
const result = isPedMale(ped);
Lua
local result = isPedMale(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Returns true/false if the ped is/isn't male.

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_MALE(Ped ped)
Hash
0x6D9F5FAA7488BA46

Open in the interactive natives reference