Jump to content

black screen when teleporting


Recommended Posts

Posted

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

Posted

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

  • Like 1

Discord: its.tails

Posted

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)

  • Like 1

i'm ErroR !

Telegram : @MrGhazio & @FullOffeD 
Discord : ErroR#3727 

MTA [LUA] Scripter & Developer

We Are Arcenics !

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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