velosipeds Posted July 11, 2023 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
Tails Posted July 12, 2023 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
FallenGod Posted July 12, 2023 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
Recommended Posts