Skip to content

Commit 0705b92

Browse files
committed
Merge branch 'rc' into release
2 parents ce4d268 + 512be52 commit 0705b92

File tree

6 files changed

+13
-2
lines changed

6 files changed

+13
-2
lines changed

c-api/cache/CachedPlayer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ namespace cache
435435
void SetHeadBlendData(uint32_t shapeFirstID, uint32_t shapeSecondID, uint32_t shapeThirdID, uint32_t skinFirstID, uint32_t skinSecondID, uint32_t skinThirdID, float shapeMix,
436436
float skinMix, float thirdMix) override {}
437437

438+
void RemoveHeadBlendData() override {}
439+
438440
alt::HeadBlendData _headBlendData;
439441
alt::HeadBlendData GetHeadBlendData() const override {
440442
return _headBlendData;

c-api/core.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ EXPORT_SHARED alt::MValueConst* Core_CreateMValueFunction(alt::ICore* core, Cust
5151
EXPORT_SHARED uint64_t Core_GetMValueSize(alt::ICore* core, alt::MValueConst* args);
5252
EXPORT_SHARED uint64_t Core_GetMValueArgsSize(alt::ICore* core, alt::MValueConst* args[], int size);
5353

54+
5455
EXPORT_SHARED alt::IPlayer** Core_GetPlayers(alt::ICore* core, uint64_t& size);
5556
EXPORT_SHARED alt::IVehicle** Core_GetVehicles(alt::ICore* core, uint64_t& size);
5657
EXPORT_SHARED alt::IPed** Core_GetPeds(alt::ICore* core, uint64_t& size);

c-api/entities/player.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,11 @@ void Player_SetHeadBlendData(alt::IPlayer* player, uint32_t shapeFirstID, uint32
520520
player->SetHeadBlendData(shapeFirstID, shapeSecondID, shapeThirdID, skinFirstID, skinSecondID, skinThirdID, shapeMix, skinMix, thirdMix);
521521
}
522522

523+
void Player_RemoveHeadBlendData(alt::IPlayer* player)
524+
{
525+
player->RemoveHeadBlendData();
526+
}
527+
523528
void Player_GetHeadBlendData(alt::IPlayer* player, head_blend_data_t &headBlendData) {
524529
auto playerHeadBlendData = player->GetHeadBlendData();
525530
headBlendData.shapeFirstID = playerHeadBlendData.shapeFirstID;

c-api/entities/player.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ EXPORT_SERVER void Player_GetHeadBlendPaletteColor(alt::IPlayer* player, uint8_t
152152
EXPORT_SERVER void Player_SetHeadBlendData(alt::IPlayer* player, uint32_t shapeFirstID, uint32_t shapeSecondID, uint32_t shapeThirdID,
153153
uint32_t skinFirstID, uint32_t skinSecondID, uint32_t skinThirdID,
154154
float shapeMix, float skinMix, float thirdMix);
155+
EXPORT_SERVER void Player_RemoveHeadBlendData(alt::IPlayer* player);
155156
EXPORT_SERVER void Player_GetHeadBlendData(alt::IPlayer* player, head_blend_data_t& headBlendData);
156157

157158
EXPORT_SERVER uint8_t Player_SetEyeColor(alt::IPlayer* player, uint16_t eyeColor);

c-api/func_table.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "func_table.h"
22

3-
inline uint64_t capiHash = 16677003916101455049UL;
3+
inline uint64_t capiHash = 13325244553859733034UL;
44
inline uint64_t capiHashes[] = {
55
0,
66
#ifdef ALT_CLIENT_API
@@ -1489,6 +1489,7 @@ inline uint64_t capiHashes[] = {
14891489
2232062854990357196UL,
14901490
3139723963307924640UL,
14911491
1204109734587833282UL,
1492+
8805714842908729165UL,
14921493
12300710546613769705UL,
14931494
6739305111416325852UL,
14941495
937601034617427157UL,
@@ -3234,6 +3235,7 @@ inline void* capiPointers[] = {
32343235
(void*) Player_RemoveAllWeapons,
32353236
(void*) Player_RemoveDecoration,
32363237
(void*) Player_RemoveFaceFeature,
3238+
(void*) Player_RemoveHeadBlendData,
32373239
(void*) Player_RemoveHeadOverlay,
32383240
(void*) Player_RemoveWeapon,
32393241
(void*) Player_RemoveWeaponComponent,

cpp-sdk

0 commit comments

Comments
 (0)