Skip to content

Commit

Permalink
add iplayer::RemoveHeadBlendPaletteColor
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh committed Nov 9, 2023
1 parent fc55ff6 commit 2814bb7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions c-api/cache/CachedPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,8 @@ namespace cache
return _bloodDamageBase64;
}
void SetBloodDamageBase64(const std::string& _base64) override {}

void RemoveHeadBlendPaletteColor() override {}
#endif


Expand Down
4 changes: 4 additions & 0 deletions c-api/entities/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,10 @@ void Player_SetBloodDamageBase64(alt::IPlayer* player, const char* bloodDamage)
player->SetBloodDamageBase64(bloodDamage);
}

void Player_RemoveHeadBlendPaletteColor(alt::IPlayer* player)
{
player->RemoveHeadBlendPaletteColor();
}

#endif

Expand Down
2 changes: 2 additions & 0 deletions c-api/entities/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,5 @@ EXPORT_CLIENT const char* Player_GetTaskData(alt::IPlayer* player, int32_t& size

EXPORT_SERVER const char* Player_GetBloodDamageBase64(alt::IPlayer* player, int32_t& size);
EXPORT_SERVER void Player_SetBloodDamageBase64(alt::IPlayer* player, const char* bloodDamage);

EXPORT_SERVER void Player_RemoveHeadBlendPaletteColor(alt::IPlayer* player);
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 = 3086495798003042324UL;
inline uint64_t capiHash = 12441135083740807336UL;
inline uint64_t capiHashes[] = {
0,
#ifdef ALT_CLIENT_API
Expand Down Expand Up @@ -1491,6 +1491,7 @@ inline uint64_t capiHashes[] = {
3139723963307924640UL,
1204109734587833282UL,
8805714842908729165UL,
6835192118570564879UL,
12300710546613769705UL,
6739305111416325852UL,
937601034617427157UL,
Expand Down Expand Up @@ -3238,6 +3239,7 @@ inline void* capiPointers[] = {
(void*) Player_RemoveDecoration,
(void*) Player_RemoveFaceFeature,
(void*) Player_RemoveHeadBlendData,
(void*) Player_RemoveHeadBlendPaletteColor,
(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 2814bb7

Please sign in to comment.