Some functions won't work OnPlayerSpawn, spawning with CJ skin, warning when creating vehicle ingame
#1

I have few problems.

First problem is when I spawn vehicle (sometimes it works) I get warning and I can't spawn vehicle.



Second problem is that some functions won't call OnPlayerSpawn.

Another problem is that I spawn with CJ skin (obviously some functions are not calling as I said in previous sentence). The skin that I should get is a custom model.


All of this problem started from 0.3.8 R2

Anybody else have problem with OnPlayerSpawn?
Reply
#2

you have to use setplayerskin to get the custom model instead of setplayerspawninfo etc
Reply
#3

Quote:
Originally Posted by m4karow
View Post
you have to use setplayerskin to get the custom model instead of setplayerspawninfo etc
It's not just SetPlayerSkin/SetPlayerSpawnInfo problem, 20 other lines under onplayerspawn won't work with new version. OnPlayerSpawn isn't called.
Reply
#4

I have a similar problem, and I think they are badly added collisions of an object.
Reply
#5

Quote:
Originally Posted by ZaikerH
View Post
I have a similar problem, and I think they are badly added collisions of an object.
I don't have any custom models added.
Reply
#6

Someone?
Reply
#7

Could you please provide the "OnPlayerSpawn" codes?
Reply
#8

I think the problem is AddPlayerClass doesn't work with the new skin IDs (20000-29999) . If you try to spawn with a skin added with AddPlayerClass, and using one of the new IDs, OnPlayerSpawn won't be called. That's just what I'm guessing though?
Reply
#9

Quote:
Originally Posted by BeckzyBoi
View Post
I think the problem is AddPlayerClass doesn't work with the new skin IDs (20000-29999) . If you try to spawn with a skin added with AddPlayerClass, and using one of the new IDs, OnPlayerSpawn won't be called. That's just what I'm guessing though?
That fixed the problem. Thanks!

Is it smart to call setplayerskin function under onplayerspawn or?
Reply
#10

Quote:
Originally Posted by Saddin
View Post
That fixed the problem. Thanks!

Is it smart to call setplayerskin function under onplayerspawn or?
I've got no idea tbf, you can only try.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)