open.mp forum
[Server] Custom Models Error in open.mp - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Support (https://forum.open.mp/forumdisplay.php?fid=12)
--- Thread: [Server] Custom Models Error in open.mp (/showthread.php?tid=2462)



Custom Models Error in open.mp - og.vuky - 2023-10-03

Hello everyone, I have a small situation here. I'm creating a textdraw using a custom images and it works fine when I run the script with 0.3DL server but it doesn't work when I run it with open.mp server (custom textdraw is not showing in-game).

Also, whenever I run script with open.mp server I get this message in console:
Code:
[Info] [artwork:info] Loading artconfig.txt
[Error] [artwork:error] Model -2001 is already in use

While 0.3DL reads it right:
Code:
[artwork:crc] intro.dff CRC = 0xD7D58371
[artwork:crc] intro.txd CRC = 0xEDF7C701

I gotta say that model is the only model I'm using so there's no way it's already in use. Does anyone know what can be causing this problem?


RE: Custom Models Error in open.mp - og.vuky - 2023-10-06

I’m sorry for double posting but I managed to fix it so I’ll post solution here in case someone else encounters the same problem.

After creating PlayerTextDraw in OnPlayerConnect callback, I was showing them to player under the same callback. Every normal textdraw (default samp) was shown except custom one so I moved PlayerTextDrawShow under OnPlayerRequestClass and now even custom one is loading.

Somehow this removed even the error stating that model is already in use.

This can be locked.