Maybe this will help:
Iâve done that.
i see the default GTA 5 loading screen for a second, is there a way to fix that ?
Yes there is, and itâs my fault it doesnât do that already actually.
TheIndra made this suggestion which fixes that issue, however, it appears that in the gist at the top of this page, I forgot to swap out the event, but updated the rest of the code, whereas on my local machine, I updated the code, and the event, and thought the issue was solved; my mistake.
Change onClientMapStart
to playerSpawned
and that should fix the issue. Iâll update the original post now.
Thanks now it work
Does this also work with servers wich use Kashacters?
The player doesnât spawn untill selected in the Kashacters menuâŚ
No idea, probably.
My loadscreen loads forever, any ideas?
Shouldnât do; run through the tutorial again.
Same for me, loadingscreen stays on top of my game even when my ped is already spawned.
Donât know what to tell you, it still works just fine for me.
it worked for me not but i found a solution remove cache files
Would it be possible to link this to onClientResourceStart
and if possible then would a small example be able to be given since I canât figure it out? Iâm having severe issues with spawnmanager currently so disabling it is my only option, leading this to not work for me.
On that particular event, I donât think so. If you canât use the one provided, I would suggest playerSpawned
, just swap them out in the code and you should be good to go.
playerSpawned
doesnât work if I donât have spawnmanager started, which is odd but spawnmanager is just giving me nothing but issues, so using that isnât really possible.
Got my events mixed up sorry, try using onClientMapStart
.
On a separate note, the resource really shouldnât be giving you issues as long as you havenât edited it. Try downloading a fresh copy:
https://github.com/citizenfx/cfx-server-data/tree/master/resources/[managers]/spawnmanager
I appreciate the thought and I have tried it, but I havenât edited it at all really, other than changing a value from true
to false
to stop force respawning on death to accommodate for ambulancejob. Issue with spawnmanager is that es_extended wonât load the playerâs last position if spawnmanager is started, itâs really odd and I havenât found anything regarding a fix yet.
Hmm, it seems that onClientMapStart
Returns an error
Havenât edited mapmanager at all, and even just replaced with the original latest files to be sure. Really damn odd. Even checked the script and I canât seem to find it calling to spawnmanager
Where did you add the code from this tutorial to?