Skip to content

Commit

Permalink
Add IPlayer RemoveHeadBlendData
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh committed Oct 21, 2023
1 parent 0fcb3f1 commit 5100978
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions c-api/entities/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,11 @@ void Player_SetHeadBlendData(alt::IPlayer* player, uint32_t shapeFirstID, uint32
player->SetHeadBlendData(shapeFirstID, shapeSecondID, shapeThirdID, skinFirstID, skinSecondID, skinThirdID, shapeMix, skinMix, thirdMix);
}

void Player_RemoveHeadBlendData(alt::IPlayer* player)
{
player->RemoveHeadBlendData();
}

void Player_GetHeadBlendData(alt::IPlayer* player, head_blend_data_t &headBlendData) {
auto playerHeadBlendData = player->GetHeadBlendData();
headBlendData.shapeFirstID = playerHeadBlendData.shapeFirstID;
Expand Down
1 change: 1 addition & 0 deletions c-api/entities/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ EXPORT_SERVER void Player_GetHeadBlendPaletteColor(alt::IPlayer* player, uint8_t
EXPORT_SERVER void Player_SetHeadBlendData(alt::IPlayer* player, uint32_t shapeFirstID, uint32_t shapeSecondID, uint32_t shapeThirdID,
uint32_t skinFirstID, uint32_t skinSecondID, uint32_t skinThirdID,
float shapeMix, float skinMix, float thirdMix);
EXPORT_SERVER void Player_RemoveHeadBlendData(alt::IPlayer* player);
EXPORT_SERVER void Player_GetHeadBlendData(alt::IPlayer* player, head_blend_data_t& headBlendData);

EXPORT_SERVER uint8_t Player_SetEyeColor(alt::IPlayer* player, uint16_t eyeColor);
Expand Down
4 changes: 3 additions & 1 deletion c-api/func_table.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "func_table.h"

inline uint64_t capiHash = 16677003916101455049UL;
inline uint64_t capiHash = 13325244553859733034UL;
inline uint64_t capiHashes[] = {
0,
#ifdef ALT_CLIENT_API
Expand Down Expand Up @@ -1489,6 +1489,7 @@ inline uint64_t capiHashes[] = {
2232062854990357196UL,
3139723963307924640UL,
1204109734587833282UL,
8805714842908729165UL,
12300710546613769705UL,
6739305111416325852UL,
937601034617427157UL,
Expand Down Expand Up @@ -3234,6 +3235,7 @@ inline void* capiPointers[] = {
(void*) Player_RemoveAllWeapons,
(void*) Player_RemoveDecoration,
(void*) Player_RemoveFaceFeature,
(void*) Player_RemoveHeadBlendData,
(void*) Player_RemoveHeadOverlay,
(void*) Player_RemoveWeapon,
(void*) Player_RemoveWeaponComponent,
Expand Down
2 changes: 1 addition & 1 deletion cpp-sdk
Submodule cpp-sdk updated 1 files
+1 −0 objects/IPlayer.h

0 comments on commit 5100978

Please sign in to comment.