velosiped33 Posted July 11, 2023 Share Posted July 11, 2023 every time i teleport through map function on coordinates i get stuck in a black screen, until i kill myself. is that i am doing something wrong or is there some other issue. thanks Link to comment
Tails Posted July 12, 2023 Share Posted July 12, 2023 Hi, this is likely a problem with your spawn code. In your code add an event called onPlayerSpawn for server or onClientPlayerSpawn for the client side and use the function fadeCamera. Here is an example for the client side: addEventHandler('onClientPlayerSpawn', localPlayer, function() fadeCamera(true) end) See here for more details: https://wiki.multitheftauto.com/wiki/FadeCamera 1 Link to comment
FallenGod Posted July 12, 2023 Share Posted July 12, 2023 Hi , You Can Use This Code After Teleporting setCameraTarget(getLocalPlayer(),getLocalPlayer()) fadeCamera(true) i dont Know , i Hope Thats Code Can Help You ! (Sry For My Bad Speaking English :D) 1 Link to comment
velosiped33 Posted July 14, 2023 Author Share Posted July 14, 2023 thanks for the help, guys! it worked 1 Link to comment
Recommended Posts