Jump to content

Player join theory


Mellnik

Recommended Posts

As I am pretty new here I dont understand the mechanics yet. I am wondering what the steps are to perform a proper connect and spawn of a player.

Is this way correct?

1. Player joins and downloads all resources.

2. Player registers.

3. Player spawns.

The thing is, how do I spawn a player to remove the black screen at the beginning?

Link to comment
  • Discord Moderators

As the scripting introduction explains, using spawnPlayer and fadeCamera.

The clientside is only available when all resources are downloaded and they're started.

As such the bottom resource in mtaserver.conf to start automatically, "onClientResourceStart" in this resource is one way to assess your first point.

If you wish to spawn the player before this, as mentioned above, serverside functions spawnPlayer and fadeCamera can be used.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...