Skip to content

Commit

Permalink
refactor(server): typo SetBage->SetBadge
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh authored Jan 18, 2024
1 parent 09c0b12 commit e1f17e9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions api/AltV.Net.Async/Elements/Entities/AsyncVehicle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1994,21 +1994,21 @@ public List<PlayerSeat> Passengers
}
}

public void SetBage(string textureDictionary, string texture, VehicleBadgePosition[] vehicleBadgePosition)
public void SetBadge(string textureDictionary, string texture, VehicleBadgePosition[] vehicleBadgePosition)
{
lock (Vehicle)
{
if (!AsyncContext.CheckIfExistsOrCachedNullable(Vehicle)) return;
Vehicle.SetBage(textureDictionary, texture, vehicleBadgePosition);
Vehicle.SetBadge(textureDictionary, texture, vehicleBadgePosition);
}
}

public void SetBage(uint textureDictionary, uint texture, VehicleBadgePosition[] vehicleBadgePosition)
public void SetBadge(uint textureDictionary, uint texture, VehicleBadgePosition[] vehicleBadgePosition)
{
lock (Vehicle)
{
if (!AsyncContext.CheckIfExistsOrCachedNullable(Vehicle)) return;
Vehicle.SetBage(textureDictionary, texture, vehicleBadgePosition);
Vehicle.SetBadge(textureDictionary, texture, vehicleBadgePosition);
}
}

Expand Down
4 changes: 2 additions & 2 deletions api/AltV.Net/Elements/Entities/IVehicle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ NumberPlateStyle GetNumberPlateStyleExt() =>
/// <param name="texture">The hash of texture</param>
/// <param name="vehicleBadgePosition">The array of badge position. Maximum is 4</param>
/// <exception cref="ArgumentOutOfRangeException">When badge postion is more the 4</exception>
void SetBage(string textureDictionary, string texture, VehicleBadgePosition[] vehicleBadgePosition);
void SetBadge(string textureDictionary, string texture, VehicleBadgePosition[] vehicleBadgePosition);

/// <summary>
/// Set badges to vehicle
Expand All @@ -872,6 +872,6 @@ NumberPlateStyle GetNumberPlateStyleExt() =>
/// <param name="texture">The hash of texture</param>
/// <param name="vehicleBadgePosition">The array of badge position. Maximum is 4</param>
/// <exception cref="ArgumentOutOfRangeException">When badge postion is more the 4</exception>
void SetBage(uint textureDictionary, uint texture, VehicleBadgePosition[] vehicleBadgePosition);
void SetBadge(uint textureDictionary, uint texture, VehicleBadgePosition[] vehicleBadgePosition);
}
}
6 changes: 3 additions & 3 deletions api/AltV.Net/Elements/Entities/Vehicle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2086,12 +2086,12 @@ public List<PlayerSeat> Passengers
}
}

public void SetBage(string textureDictionary, string texture, VehicleBadgePosition[] vehicleBadgePosition)
public void SetBadge(string textureDictionary, string texture, VehicleBadgePosition[] vehicleBadgePosition)
{
SetBage(Alt.Hash(textureDictionary), Alt.Hash(texture), vehicleBadgePosition);
SetBadge(Alt.Hash(textureDictionary), Alt.Hash(texture), vehicleBadgePosition);
}

public void SetBage(uint textureDictionary, uint texture, VehicleBadgePosition[] vehicleBadgePosition)
public void SetBadge(uint textureDictionary, uint texture, VehicleBadgePosition[] vehicleBadgePosition)
{
if (vehicleBadgePosition.Length > 4)
{
Expand Down

0 comments on commit e1f17e9

Please sign in to comment.