Skip to content

Commit 5c88773

Browse files
committed
Initial RedM support, includes MINIMAL functionality
Still a lot of bugs and almost every feature is missing. Example of the current menu style: https://vespura.com/hi/i/2019-11-16_18-21_c4670_2619.png
1 parent ddde45a commit 5c88773

12 files changed

Lines changed: 1356 additions & 116 deletions

File tree

MenuAPI/Menu.cs

Lines changed: 225 additions & 50 deletions
Large diffs are not rendered by default.

MenuAPI/MenuAPI.csproj

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,33 @@
33
<PropertyGroup>
44
<TargetFramework>net452</TargetFramework>
55
<DebugType>embedded</DebugType>
6-
<TargetName>$(AssemblyName).net</TargetName>
6+
<TargetName>$(AssemblyName)</TargetName>
77
<Configurations>Release RedM;Release FiveM;Debug RedM;Debug FiveM</Configurations>
88
</PropertyGroup>
99

10-
<PropertyGroup
11-
Condition="'$(Configuration)' == 'Debug FiveM' Or '$(Configuration)' == 'Release FiveM'">
10+
<PropertyGroup Condition="'$(Configuration)' == 'Debug FiveM' Or '$(Configuration)' == 'Release FiveM'">
1211
<DefineConstants>FIVEM</DefineConstants>
1312
</PropertyGroup>
1413

15-
<PropertyGroup
16-
Condition="'$(Configuration)' == 'Debug RedM' Or '$(Configuration)' == 'Release RedM'">
14+
<PropertyGroup Condition="'$(Configuration)' == 'Debug RedM' Or '$(Configuration)' == 'Release RedM'">
1715
<DefineConstants>REDM</DefineConstants>
1816
</PropertyGroup>
1917

18+
<ItemGroup>
19+
<Compile Include="..\shared\RedM\Controls.cs" Link="Controls.cs" />
20+
</ItemGroup>
21+
2022
<ItemGroup>
2123
<Reference Include="Microsoft.CSharp" />
2224

23-
<PackageReference Include="CitizenFX.Core.Client" Version="1.0.1688" Condition="'$(Configuration)' == 'Release FiveM' Or '$(Configuration)' == 'Debug FiveM'" ExcludeAssets="runtime" />
25+
<PackageReference Include="CitizenFX.Core.Client" Version="1.0.1688" Condition="'$(Configuration)' == 'Release FiveM' Or '$(Configuration)' == 'Debug FiveM'">
26+
<ExcludeAssets>runtime</ExcludeAssets>
27+
</PackageReference>
2428

2529
<!-- currently hardcoded path as no nuget package for RedM exists yet -->
2630
<Reference Include="CitizenFX.Core.Client" Condition="'$(Configuration)' == 'Release RedM' Or '$(Configuration)' == 'Debug RedM'">
27-
<HintPath>..\..\..\..\citizen\clr2\lib\mono\4.5\citizenfx.core.dll</HintPath>
31+
<HintPath>..\dependencies\RedM\CitizenFX.Core.dll</HintPath>
32+
<Private>false</Private>
2833
</Reference>
2934
</ItemGroup>
3035

0 commit comments

Comments
 (0)