Skip to content

Commit

Permalink
server: Add Player.bloodDamageBase64
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Oct 19, 2023
1 parent 6edc5f0 commit 63691ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/src/classes/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,7 @@ extern js::Class playerClass("Player", &sharedPlayerClass, nullptr, [](js::Class
tpl.Property("sendNames", &SendNamesGetter, &SendNamesSetter);
tpl.Property("streamedEntities", StreamedEntitiesGetter);
tpl.Property<&alt::IPlayer::IsNetworkOwnershipDisabled, &alt::IPlayer::SetNetworkOwnershipDisabled>("netOwnershipDisabled");
tpl.Property<&alt::IPlayer::GetBloodDamageBase64, &alt::IPlayer::SetBloodDamageBase64>("bloodDamageBase64");

tpl.Method("emit", &Emit);
tpl.Method("emitUnreliable", &EmitUnreliable);
Expand Down
1 change: 1 addition & 0 deletions types/server/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ declare module "@altv/server" {

readonly cloudAuthHash: string;
netOwnershipDisabled: boolean;
bloodDamageBase64: string;

emit<E extends keyof altShared.Events.CustomServerToPlayerEvent>(event: E, ...args: Parameters<altShared.Events.CustomServerToPlayerEvent[E]>): void;
emit<E extends string>(event: Exclude<E, keyof altShared.Events.CustomServerToPlayerEvent>, ...args: unknown[]): void;
Expand Down
2 changes: 1 addition & 1 deletion types/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@altv/server",
"version": "0.0.3",
"version": "0.0.4",
"description": "This package contains the type definitions for the alt:V JS module v2 server types",
"types": "index.d.ts",
"files": [
Expand Down

0 comments on commit 63691ad

Please sign in to comment.