PlayPedScenario

From GT-MP
Jump to: navigation, search
PlayPedScenario
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

Makes the specified ped play the specified scenario. See Ped Scenarios.

Syntax

In C#
Server-Side Function

API.playPedScenario(NetHandle ped, string scenario);

Required Arguments

  • ped: parameter input should be in NetHandle type.
  • scenario: parameter input should be in string type.

Usage example(s)

In C#
Server-Side Function

API.playPedScenario(NetHandle ped, string scenario);

References