Click or drag to resize

IWorldServiceCreatePlayerObject Method

Creates a player object in the world.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
PlayerObject CreatePlayerObject(
	EntityId player,
	int modelId,
	Vector3 position,
	Vector3 rotation,
	float drawDistance
)

Parameters

player
Type: SampSharp.EntitiesEntityId
The player.
modelId
Type: SystemInt32
The model ID.
position
Type: SampSharp.Entities.SAMPVector3
The position.
rotation
Type: SampSharp.Entities.SAMPVector3
The rotation.
drawDistance
Type: SystemSingle
The draw distance.

Return Value

Type: PlayerObject
The created player object.
See Also