gta.createCivilian

(Redirected from createCivilian)

Function Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Server 1.0.0, Client 1.0.0

Civilian gta.createCivilian(int model, [ int pedType = -1 ])

The gta.createCivilian function is used to create a civilian.

Parameters

1) int model The model ID for the civilian.
2) int pedType Optional, defaults to –1. The ped type for the civilian.

Return

Civilian A handle to the civilian that was created.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

  • This function was previously named game.createCivilian in version 1.0.71.