Skip to main content

ALLOCATE_SCRIPT_TO_RANDOM_PED

Game.AllocateScriptToRandomPedHash0x19DB19D8
Usage
Game.AllocateScriptToRandomPed(scriptName, modelHashKey, percentageChance, scenarioPedsOnly)

Associates a script brain with a certain ped model.

Parameters

  • scriptNamestringchar*
  • modelHashKeyintegerint
  • percentageChanceintegerint
  • scenarioPedsOnlybooleanbool

Returns

Nothing

Original declaration
// 0x19DB19D8
void ALLOCATE_SCRIPT_TO_RANDOM_PED(char* scriptName, int modelHashKey, int percentageChance, bool scenarioPedsOnly);