Skip to content

Commit

Permalink
feat(client): Add ReloadVehiclePhysics
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh committed May 29, 2024
1 parent 711ce58 commit f7b7111
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions c-api/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2159,6 +2159,11 @@ uint64_t Core_GetServerTime(alt::ICore* core)
{
return core->GetServerTime();
}

uint8_t Core_ReloadVehiclePhysics(alt::ICore* core, uint32_t modelHash)
{
return core->ReloadVehiclePhysics(modelHash);
}
#endif

CAPI_END()
4 changes: 3 additions & 1 deletion c-api/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -430,4 +430,6 @@ EXPORT_CLIENT void Core_RemoveVoiceFilter(alt::ICore* core, uint32_t playerRemod
EXPORT_CLIENT alt::IAudioFilter* Core_GetVoiceFilter(alt::ICore* core, uint32_t playerRemodeId);
EXPORT_CLIENT void Core_UpdateClipContext(alt::ICore* core, const char* keys[], const char* values[], uint64_t size);

EXPORT_CLIENT uint64_t Core_GetServerTime(alt::ICore* core);
EXPORT_CLIENT uint64_t Core_GetServerTime(alt::ICore* core);

EXPORT_CLIENT uint8_t Core_ReloadVehiclePhysics(alt::ICore* core, uint32_t modelHash);
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 = 78812385462098472UL;
inline uint64_t capiHash = 4464148992254491289UL;
inline uint64_t capiHashes[] = {
0,
#ifdef ALT_CLIENT_API
Expand Down Expand Up @@ -211,6 +211,7 @@ inline uint64_t capiHashes[] = {
11543552066785919265UL,
15255809094076439747UL,
84574382701044016UL,
6341556497973967320UL,
2950682702415179672UL,
3186817815537256556UL,
4203146524234440953UL,
Expand Down Expand Up @@ -1992,6 +1993,7 @@ inline void* capiPointers[] = {
(void*) Core_OverrideFocusEntity,
(void*) Core_OverrideFocusPosition,
(void*) Core_RegisterFont,
(void*) Core_ReloadVehiclePhysics,
(void*) Core_RemoveGXTText,
(void*) Core_RemoveIpl,
(void*) Core_RemoveVoiceFilter,
Expand Down
2 changes: 1 addition & 1 deletion cpp-sdk
Submodule cpp-sdk updated 1 files
+1 −0 ICore.h

0 comments on commit f7b7111

Please sign in to comment.