andrius Posted September 12, 2019 Share Posted September 12, 2019 Hello. When I connect, player is not spawned, camera doesnt faded and so on. I do all these things by script, but is it possible to "unspawn" player after I use "spawnPlayer" ? Link to comment
Moderators IIYAMA Posted September 12, 2019 Moderators Share Posted September 12, 2019 (edited) 4 hours ago, andrius said: unspawn Fade the camera to black. https://wiki.multitheftauto.com/wiki/FadeCamera Move the player out of the area. 0, 0, -10 https://wiki.multitheftauto.com/wiki/SetElementPosition And if the resource you use allows it, a dead player is a good default. (Be aware that you might have to modify the resource killmessages, to not show any death messages when a player despawns) https://wiki.multitheftauto.com/wiki/KillPed De-attach the camera to another position. Recommend far away from the player. 0, 0, 10000 This will make sure no unwanted player events will be triggered. https://wiki.multitheftauto.com/wiki/SetCameraMatrix Edited September 12, 2019 by IIYAMA 1 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