server-beta icon indicating copy to clipboard operation
server-beta copied to clipboard

[BUG]: SetSpawnInfo bug if I use AddSimpleModel

Open ravesamp opened this issue 2 years ago • 2 comments

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

ravesamp avatar Sep 10 '22 15:09 ravesamp

Set mode to 4

Hual avatar Oct 12 '21 08:10 Hual