Skip to content

Commit

Permalink
Add IPlayer::ClearClothes
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh committed Oct 22, 2023
1 parent e5596af commit bc39445
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions c-api/entities/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ uint8_t Player_SetDlcClothes(alt::IPlayer* player, uint8_t component, uint16_t d
return player->SetDlcClothes(component, drawable, texture, palette, dlc);
}

uint8_t Player_ClearClothes(alt::IPlayer* player, uint8_t component)
{
return player->ClearClothes(component);
}

void Player_GetProps(alt::IPlayer* player, uint8_t component, prop_t& prop) {
auto props = player->GetProps(component);
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 @@ -118,6 +118,7 @@ EXPORT_SERVER void Player_GetClothes(alt::IPlayer* player, uint8_t component, cl
EXPORT_SERVER uint8_t Player_SetClothes(alt::IPlayer* player, uint8_t component, uint16_t drawable, uint8_t texture, uint8_t palette);
EXPORT_SERVER void Player_GetDlcClothes(alt::IPlayer* player, uint8_t component, dlccloth_t& cloth);
EXPORT_SERVER uint8_t Player_SetDlcClothes(alt::IPlayer* player, uint8_t component, uint16_t drawable, uint8_t texture, uint8_t palette, uint32_t dlc);
EXPORT_SERVER uint8_t Player_ClearClothes(alt::IPlayer* player, uint8_t component);

EXPORT_SERVER void Player_GetProps(alt::IPlayer* player, uint8_t component, prop_t& prop);
EXPORT_SERVER uint8_t Player_SetProps(alt::IPlayer* player, uint8_t component, uint16_t drawable, uint8_t texture);
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 = 13325244553859733034UL;
inline uint64_t capiHash = 3086495798003042324UL;
inline uint64_t capiHashes[] = {
0,
#ifdef ALT_CLIENT_API
Expand Down Expand Up @@ -1426,6 +1426,7 @@ inline uint64_t capiHashes[] = {
11189476182745634495UL,
9305362021789278268UL,
1935399752104807234UL,
992364219024894490UL,
1193224569935073604UL,
14293729102633233291UL,
2394928316223850939UL,
Expand Down Expand Up @@ -3172,6 +3173,7 @@ inline void* capiPointers[] = {
(void*) Player_AddDecoration,
(void*) Player_AddWeaponComponent,
(void*) Player_ClearBloodDamage,
(void*) Player_ClearClothes,
(void*) Player_ClearDecorations,
(void*) Player_ClearProps,
(void*) Player_ClearTasks,
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 bc39445

Please sign in to comment.