Skip to main content

Spawn Component

Component Available
ServerNo
ClientYes

This component handles spawning the player to the world, it also handles disabling spawnmanagers auto spawn.

Required Attributes


Server

  • None

Client

  • InitCamera: function
  • Init: function

Methods


Server

This component has no server methods.

Client

InitCamera

  • Parameters: None
  • Return: None
  • Description: The default implementation of this method does nothing, it serves as a placeholder to allow creating a stationary camera before spawnmanager spawns the players ped to the world.

Init

  • Parameters: None
  • Return: None
  • Description: Places the players ped at the specified spawn point

Events


Server

No server events are fired from this component.

Client

No client events are fired from this component.

Other Attributes


Client

  • SpawnPoint: list with x, y, z, h indexes for spawn location.