Skip to content

Commit

Permalink
feat(server) add modelhash to vehicle_model_info
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh committed Jan 3, 2024
1 parent a8de0d5 commit b8047ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/AltV.Net/Data/VehicleModelInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public enum VehicleModelType : byte
[StructLayout(LayoutKind.Sequential)]
internal readonly struct VehicleModelInfoInternal
{
private readonly uint ModelHash;
[MarshalAs(UnmanagedType.LPStr)]
private readonly string Title;

Expand Down Expand Up @@ -72,6 +73,7 @@ public VehicleModelInfo ToPublic()

return new VehicleModelInfo
{
ModelHash = ModelHash,
Title = Title,
Type = Type,
WheelsCount = WheelsCount,
Expand All @@ -95,6 +97,7 @@ public VehicleModelInfo ToPublic()

public struct VehicleModelInfo
{
public uint ModelHash;
public string Title;
public VehicleModelType Type;

Expand Down

0 comments on commit b8047ae

Please sign in to comment.