gta.setZonePedInfo

Function Client Only icon-iii.png icon-vc.png Online and Offline

Available since Client 1.0.0

void gta.setZonePedInfo(string zone, bool day, int pedDensity, int gangDensity1, int gangDensity2, int gangDensity3, int gangDensity4, int gangDensity5, int gangDensity6, int gangDensity7, int gangDensity8VCOnly, int gangDensity9VCOnly, int copDensity)

The gta.setZonePedInfo function is used to set info for a ped zone.

Parameters

1) string zone The name of the zone to set info for.
2) bool day Whether the new zone info applies to day or night.
3) int pedDensity The density of pedestrians for the ped zone.
4) int gangDensity1 The density of gang members of gang type 1 for the ped zone.
5) int gangDensity2 The density of gang members of gang type 2 for the ped zone.
6) int gangDensity3 The density of gang members of gang type 3 for the ped zone.
7) int gangDensity4 The density of gang members of gang type 4 for the ped zone.
8) int gangDensity5 The density of gang members of gang type 5 for the ped zone.
9) int gangDensity6 The density of gang members of gang type 6 for the ped zone.
10) int gangDensity7 The density of gang members of gang type 7 for the ped zone.
11) int gangDensity8VCOnly This parameter only applies to GTA VC, and should not even occupy a parameter slot for GTA III. The density of gang members of gang type 8 for the ped zone.
12) int gangDensity9VCOnly This parameter only applies to GTA VC, and should not even occupy a parameter slot for GTA III. The density of gang members of gang type 9 for the ped zone.
13) int copDensity The density of cops for the ped zone. Please note, on GTA III this is parameter 11, not parameter 13.

Return

void This function doesn't return a value.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Client Related

      getPedCount
        getPeds
      gta.clearThreatForPedType
        gta.createPed
      gta.forceRandomPedType
      gta.pedDensity
      gta.setThreatForPedType
    gta.setZonePedInfo
  gta.tommyFatness

      ped.addAnimation
      ped.affectedByGravity
  ped.alpha
        ped.armour
      ped.bleeding
      ped.blendAnimation
      ped.boundingCentre
      ped.boundingMax
      ped.boundingMin
      ped.boundingRadius
    ped.buyIceCream
    ped.canBeKnockedOffBike
    ped.canExitVehicle
      ped.centerOfMass
  ped.changeBodyPart
        ped.children
      ped.clearAnimations
        ped.clearExistsFor
      ped.clearObjective
  ped.clearPointGunAt
      ped.clearThreatSearch
        ped.clearWeapons
      ped.collisionBoxCount
      ped.collisionBoxes
      ped.collisionLineCount
      ped.collisionLines
      ped.collisionPower
      ped.collisionsEnabled
      ped.collisionSphereCount
      ped.collisionSpheres
      ped.collisionVertexCount
      ped.collisionVertices
      ped.contactEntity
      ped.contactEntityOffset
      ped.crouching
      ped.crouchingTime
        ped.dimension
      ped.distanceFromCentreOfMassToBaseOfModel
  ped.dropObject
    ped.duck
        ped.enterVehicle
        ped.existsFor
        ped.exitVehicle
      ped.getComponentOffset
      ped.getComponentPosition
        ped.getData
    ped.getNearestDoorPosition
    ped.getNearestPassengerDoorPosition
    ped.getPositionToOpenVehicleDoor
        ped.getRotation
      ped.getWeaponAmmunition
      ped.getWeaponClipAmmunition
      ped.getWeaponSlotAmmunition
      ped.getWeaponSlotClipAmmunition
  ped.giveHelmet
        ped.giveWeapon
    ped.hailTaxi
        ped.heading
        ped.health
  ped.health
    ped.heedThreats
  ped.holdObject
        ped.id
    ped.instantVehicleExit
    ped.instantVehicleJack
      ped.interior
        ped.invincible
      ped.inWater
        ped.isCreatedFor
      ped.isEnteringVehicle
      ped.isExitingVehicle
        ped.isInVehicle
  ped.island
        ped.isLocal
      ped.isOnScreen
        ped.isOwner
        ped.isSyncer
        ped.isType
      ped.jumping
    ped.lookAt
      ped.markAsNoLongerNeeded
      ped.mass
        ped.matrix
      ped.maxArmour
      ped.maxHealth
      ped.maxStamina
      ped.model
        ped.modelIndex
  ped.money
        ped.name
        ped.netFlags
  ped.objective
      ped.onScreen
        ped.parent
      ped.pedType
      ped.pointGunAt
  ped.pointGunAtPosition
        ped.position
        ped.removeAllData
    ped.removeBodyPart
        ped.removeData
        ped.removeFromVehicle
  ped.removeHelmet
  ped.removeNametag
        ped.resource
    ped.resurrect
    ped.roomToBeVehicleJacked
        ped.rotation
        ped.runTo
    ped.say
      ped.seat
        ped.setData
        ped.setExistsFor
  ped.setNametag
    ped.setPedStats
      ped.setProofs
        ped.setRotation
  ped.setSeek
        ped.setSyncer
      ped.setThreatSearch
  ped.setWaitState
    ped.setWanderPath
      ped.setWeaponAmmunition
      ped.setWeaponClipAmmunition
      ped.setWeaponSlotAmmunition
      ped.setWeaponSlotClipAmmunition
      ped.skin
      ped.sprintTo
      ped.stamina
      ped.staminaDuration
  ped.state
      ped.status
      ped.stayInSamePlace
        ped.streamInDistance
        ped.streamOutDistance
        ped.syncer
        ped.syncerId
        ped.turnVelocity
        ped.type
      ped.upperTorsoRotation
        ped.vehicle
        ped.velocity
      ped.visible
  ped.waitState
      ped.walkStyle
        ped.walkTo
        ped.warpIntoVehicle
        ped.weapon
      ped.weapons
      ped.weaponSlot
      ped.weaponSlots
      ped.weaponState