Mellnik Posted October 13, 2013 Share Posted October 13, 2013 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 Zango Posted October 13, 2013 Discord Moderators Share Posted October 13, 2013 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now