SpawnPlayer

From GTA Network Wiki
Jump to: navigation, search

SpawnPlayer
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Spawns the player at a position with a heading.

Syntax

void NAPI.Player.SpawnPlayer(Client player, Vector3 position, float heading = 0f);

Required Arguments

  • player: parameter input should be in Client type.
  • position: parameter input should be in Vector3 type.

Optional Arguments

  • heading: parameter input should be in float type. (Default is 0f)


Usage example(s)

Example Description

NAPI.Player.SpawnPlayer(player, new Vector3());

Changelog

Version Description
0.3.0.3 Release.

References