createCivilian

From GTA Connected
Jump to: navigation, search

Function Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

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

Description

The createCivilian function is used to create a civilian.

Parameters

Type Name Presence Default Value Description
int model required n/a The model ID for the civilian.
int pedType optional –1 The ped type for the civilian.

Returns

Success Returns

Type Description
Civilian A handle to the civilian that was created.

Failure Returns

Type Value
null n/a

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.

Related

Server Related

createCivilian

civilian.children
civilian.dimension
civilian.getData
civilian.getRotation
civilian.heading
civilian.health
civilian.id
civilian.interior
civilian.isType
civilian.matrix
civilian.modelIndex
civilian.name
civilian.onAllDimensions
civilian.parent
civilian.position
civilian.removeAllData
civilian.removeData
civilian.resource
civilian.setData
civilian.setRotation
civilian.setSyncer
civilian.syncer
civilian.type
civilian.vehicle
civilian.warpIntoVehicle


Client Related

createCivilian

civilian.alpha
civilian.armour
civilian.boundingCentre
civilian.boundingMax
civilian.boundingMin
civilian.boundingRadius
civilian.buyIceCream
civilian.canBeKnockedOffBike
civilian.centerOfMass
civilian.children
civilian.clearObjective
civilian.clearThreatSearch
civilian.clearWeapons
civilian.collisionPower
civilian.collisionsEnabled
civilian.crouching
civilian.dimension
civilian.distanceFromCentreOfMassToBaseOfModel
civilian.duck
civilian.enterVehicle
civilian.exitVehicle
civilian.getData
civilian.getRotation
civilian.giveWeapon
civilian.hailTaxi
civilian.heading
civilian.health
civilian.heedThreats
civilian.id
civilian.interior
civilian.invincible
civilian.isInVehicle
civilian.isLocal
civilian.isOnScreen
civilian.isSyncer
civilian.isType
civilian.jumping
civilian.lookAt
civilian.markAsNoLongerNeeded
civilian.mass
civilian.matrix
civilian.maxStamina
civilian.modelIndex
civilian.name
civilian.parent
civilian.pointGunAt
civilian.position
civilian.removeAllData
civilian.removeBodyPart
civilian.removeData
civilian.removeFromVehicle
civilian.resurrect
civilian.runTo
civilian.say
civilian.setData
civilian.setPedStats
civilian.setProofs
civilian.setRotation
civilian.setThreatSearch
civilian.setWanderPath
civilian.skin
civilian.sprintTo
civilian.stamina
civilian.staminaDuration
civilian.status
civilian.stayInSamePlace
civilian.syncer
civilian.turnVelocity
civilian.type
civilian.upperTorsoRotation
civilian.vehicle
civilian.velocity
civilian.walkStyle
civilian.walkTo
civilian.warpIntoVehicle
civilian.weapon