We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1cff67 commit d4e6815Copy full SHA for d4e6815
1 file changed
Server/mods/deathmatch/logic/CPedManager.cpp
@@ -12,6 +12,7 @@
12
#include "StdInc.h"
13
#include "CPedManager.h"
14
#include "CPed.h"
15
+#include "CPlayerManager.h"
16
#include "Utils.h"
17
18
CPedManager::CPedManager()
@@ -74,5 +75,7 @@ bool CPedManager::Exists(CPed* pPed)
74
75
76
bool CPedManager::IsValidModel(unsigned short usModel)
77
{
- return true;
78
+ // Peds created from maps/XML also end up here, so keep this aligned with the
79
+ // script-facing validator and reject unused GTA skin IDs before they can be synced.
80
+ return CPlayerManager::IsValidPlayerModel(usModel);
81
}
0 commit comments