Smosh Posted July 6, 2020 Share Posted July 6, 2020 (edited) Hello everyone, I want to talk directly about the topic, I want to create a special spawn for those who have not completed the download before the map starts, they will start from spawn again after the download is complete. I would be very happy if you could help. By the way, if we give an example: [DM]SkraXx ft Bape - It G Ma Edited July 6, 2020 by Smosh Link to comment
Sisqo0 Posted July 6, 2020 Share Posted July 6, 2020 -- in login panel resource -- put in meta.xml <download_priority_group>1</download_priority_group> -- client function checkTransfer() if isTransferBoxActive() then setTimer(checkTransfer,2000,1) else triggerServerEvent("spawnplayer", resourceRoot,localPlayer,0,0,0) end end addEventHandler("onClientResourceStart",resourceRoot,checkTransfer) --Server function spawnplayer(player,x,y,z) spawnPlayer(player,x,y,z) end addEvent( "spawnplayer", true ) addEventHandler( "spawnplayer", resourceRoot, spawnplayer ) i think this can help you. 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