spawnPlayer

From GTA Connected
Jump to: navigation, search

Function Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

Server:
void spawnPlayer(Client client, Vec3 position, [ float zRotation = 0.0 ], [ int skin = 0 ], [ int interior = 0 ], [ int dimension = 0 ])
Client:
void spawnPlayer(Vec3 position, [ float zRotation = 0.0 ], [ int skin = 0 ], [ int interior = 0 ])

Description

The spawnPlayer function is used to spawn a player.

Parameters

Type Name Presence Default Value Description
Client client required n/a The client to spawn the player for. Server only.
Vec3 position required n/a The 3D position to spawn the player.
float zRotation optional 0.0 The Z rotation (heading) for the player.
int skin optional 0 The skin ID for the player.
int interior optional 0 The interior ID for the player.
int dimension optional 0 The dimension ID for the player. Server only.

Returns

Success Returns

Type Description
void This function doesn't return any values on success.

Failure Returns

Type Value
void n/a

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

Server Related

createPlayer
spawnPlayer

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


Client Related

createPlayer
gta.setPlayerControl
localPlayer
spawnPlayer

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