Skip to content

Commit

Permalink
Altv 641 (#346)
Browse files Browse the repository at this point in the history
* ALTV-641 - add IsOnVehicle() Getter

* ALTV-641 update sdk
  • Loading branch information
Doxoh authored Jan 16, 2025
1 parent 433e71c commit 19c0f05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/src/bindings/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,7 @@ extern V8Class v8Player("Player",
V8Helpers::SetMethod(isolate, tpl, "removeDecoration", &RemoveDecoration);
V8Helpers::SetMethod(isolate, tpl, "clearDecorations", &ClearDecorations);
V8Helpers::SetMethod(isolate, tpl, "getDecorations", &GetDecorations);
V8Helpers::SetAccessor<IPlayer, bool, &IPlayer::IsOnVehicle>(isolate, tpl, "isOnVehicle");

V8Helpers::SetAccessor<IPlayer, bool, &IPlayer::IsNetworkOwnershipDisabled, &IPlayer::SetNetworkOwnershipDisabled>(isolate, tpl, "netOwnershipDisabled");
});
2 changes: 1 addition & 1 deletion shared/deps/cpp-sdk
Submodule cpp-sdk updated 1 files
+2 −0 objects/IPlayer.h

0 comments on commit 19c0f05

Please sign in to comment.