PedClient

canCreateRandomPed

CAN_CREATE_RANDOM_PED0x3E8349C08E4B82E4

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

SignatureJavaScript
canCreateRandomPed(p0: boolean): boolean
SignatureLua
canCreateRandomPed(p0: boolean): boolean

Usage

JavaScript
const result = canCreateRandomPed(p0);
Lua
local result = canCreateRandomPed(p0)

Parameters

ParameterTypeJavaScriptLua
p0BOOLbooleanboolean

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL CAN_CREATE_RANDOM_PED(BOOL p0)
Hash
0x3E8349C08E4B82E4

Open in the interactive natives reference