Posts: 119
Threads: 10
Joined: Sep 2016
Reputation:
0
05.11.2017, 10:35
(
Last edited by Admireal; 05/11/2017 at 01:35 PM.
)
I am adding new skin models the AddPlayerClass but see the CJ skin in OnPlayerRequestClass
Posts: 1,180
Threads: 55
Joined: Apr 2005
Reputation:
0
Custom skins can only be used with SetPlayerSkin().
Posts: 119
Threads: 10
Joined: Sep 2016
Reputation:
0
Can I use the custom skins for NPC?
Posts: 1,276
Threads: 6
Joined: Aug 2014
Posts: 1,276
Threads: 6
Joined: Aug 2014
Quote:
Originally Posted by Kalcor
Maybe. I think most serious servers are using SetSpawnInfo/SetPlayerSkin. AddPlayerClass is a leftover from SA-MP 0.1.
Yeah, that works.
|
Do you know why in class selection if you use SetPlayerSkin with a custom model, it goes to a default off duty cop from 0.3.7 (I'm assuming it shows the base model index)?
(yes 25003 is valid)
Posts: 1,276
Threads: 6
Joined: Aug 2014
05.11.2017, 12:27
(
Last edited by Freshncool; 05/11/2017 at 04:47 PM.
)
Quote:
Originally Posted by Kalcor
I don't think custom skins are going to play well with the old class selection system. I might fix it before release. A more modern way to do skin selection is through model previews:
|
The weird thing is though, I can normally use a /skin command in selection and it'd work perfectly, but for some reason it does not like SetPlayerSkin w custom in OnPlayerRequestClass
using /skin
EDIT:
I fixed this by using a 50ms timer to set the player skin.