Skip to content

Commit

Permalink
Merge pull request #805 from adib-yg/patch-1
Browse files Browse the repository at this point in the history
return modelid in GetPlayerObjectMaterial
  • Loading branch information
Hual authored Dec 9, 2023
2 parents 66d854f + 1a2d2a8 commit ceede73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Server/Components/Pawn/Scripting/Object/PlayerNatives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ SCRIPT_API(GetPlayerObjectMaterial, bool(IPlayer& player, IPlayerObject& object,
bool result = object.getMaterialData(materialIndex, data);
if (result)
{
modelid = data->model;
textureLibrary = data->textOrTXD;
textureName = data->fontOrTexture;
materialColour = data->materialColour.ARGB();
Expand Down

0 comments on commit ceede73

Please sign in to comment.