open.mp forum
[Pawn] Any way to show custom models in class selection? - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] Any way to show custom models in class selection? (/showthread.php?tid=1751)



Any way to show custom models in class selection? - RoBy41 - 2021-03-10

So I added Sweet, Ryder and Big Smoke in a class selection for Grove Street Families. I decided to replace their models with their beta versions (mods), so I did that. But if I replace their ids in the AddPlayerClass (for example Sweet which is 271, with the id of the new model), when I go on the server, in the class selection Sweet shows up as CJ instead of the custom model.

As a temporary fix, I decided to add the vanilla skins (Sweet, Ryder, BS) in the class selection and make it switch the player's skin from Sweet to BETA Sweet upon spawning for example, but I want it to be visible in the class selection too.

So is there any way to fix this? I think most of you will tell me to use mSelection or something like that, but I think it's hard to remake the whole class selection or at least very time consuming.