server-beta
server-beta copied to clipboard
[BUG]: SetSpawnInfo bug if I use AddSimpleModel
Description
I use this before SpawnPlayer
. The player spawns with the specified skin in SA-MP but with the CJ skin in OMP
SetSpawnInfo(playerid, DEFAULT_TEAM, CharacterSkin[playerid], CharacterLastX[playerid], CharacterLastY[playerid], CharacterLastZ[playerid], CharacterLastA[playerid], 0, 0, 0, 0, 0, 0);
EDIT: I use a custom model for a textdraw, I noticed that if I remove it from artconfig.txt it works just fine
How to re-produce this bug
EDIT: AddSimpleModel(-1, 19379, -1000, "td.dff", "id.txd");
in artconfig.txt
TogglePlayerSpectating(playerid, true)
in OnPlayerConnect
SetSpawnInfo
TogglePlayerSpectating(playerid, false)
SpawnPlayer
Relevant log output
n/a
open.mp server version
Build 9
Operating system or distribution
windows 10
Contact information
discord rave#9806
Additional information
n/a
Set mode to 4