I am probably just doing something super simple, wrong but these are the errors I’m getting. I’d really appreciate being pointed in the right direction. (I haven’t made any changes to the code, I was just building this to make sure I got no errors before editing)
system
2
Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.
Please note that most of the support is provided by the FiveM community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.
To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.
Thanks for keeping these forums tidy!

Run prebuild.cmd and make sure it succeeds. It might be you need MSYS2 in your PATH during this process.
Is this the correct output for prebuild?
Ah, that’s indeed odd - it hasn’t fetched natives_global 
I believe I followed the docs correctly, aside from the fact I’m pulling from my (unchanged) fork. Would that be the issue?
If the 2 warnings about reference paths on startup of visual studio is normal, then I fixed the issue by running prebuild twice.
Vespura
8
iirc, you ineed need to have MSYS2. That’s what fixed my prebuild issues when the natives wouldn’t build iirc. Either that or making sure visual studio is closed when doing prebuild, because having the solution open while doing prebuild will not work correctly either.
what fixed it for me, was running prebuild twice. I have had MSYS2 installed and added to the path the whole time.
1 Like
I’m not sure if the issue I’m now having has to do with the previous, or is a new one. After opening and building (not changing anything) CitizenMP.sln in visual studio, I try and run it and get 2 errors, the first being Could not find component cache storage file (components.json). which I solved by just throwing one from a normal client into the folder (is that supposed to happen?)
The second error being Could not load component citizen-resources-core.dll - Windows error code 126. which is what i’m stuck on now.
CitizenFX.log (731 Bytes)
c612d5c3-6882-447f-8686-1343d457882f.dmp (130.5 KB)
Making a build output runnable is a bit of an odd process currently, check out what build.ps1 does to this extent.
ohh, okay… Is there any documentation on using that, aside from reading through it?
plumbum
13
It is currently unknown whether or not build.ps1 will work outside of a CI environment. Executing the steps manually is recommended.
a little confused by what steps you mean?
(I assume you don’t mean just using the msbuild command that is in there, correct?)
would you be able to tell me if this is everything from that file that I generally need to properly build it? (aside from editing it to fit my context)
msbuild /p:preferredtoolarchitecture=x64 /p:configuration=release /v:q /fl /m:4 $BuildPath\CitizenMP.sln
# prepare caches
New-Item -ItemType Directory -Force $WorkDir\caches | Out-Null
New-Item -ItemType Directory -Force $WorkDir\caches\fivereborn | Out-Null
Set-Location $WorkDir\caches
# create cache folders
# copy output files
Push-Location $WorkDir\ext\ui-build
.\build.cmd
if ($?) {
New-Item -ItemType Directory -Force $WorkDir\caches\fivereborn\citizen\ui\ | Out-Null
Copy-Item -Force -Recurse $WorkDir\ext\ui-build\data\* $WorkDir\caches\fivereborn\citizen\ui\
}
Pop-Location
Copy-Item -Force -Recurse $WorkDir\vendor\cef\Release\*.dll $WorkDir\caches\fivereborn\bin\
Copy-Item -Force -Recurse $WorkDir\vendor\cef\Release\*.bin $WorkDir\caches\fivereborn\bin\
New-Item -ItemType Directory -Force $WorkDir\caches\fivereborn\bin\cef
Copy-Item -Force -Recurse $WorkDir\vendor\cef\Resources\icudtl.dat $WorkDir\caches\fivereborn\bin\
Copy-Item -Force -Recurse $WorkDir\vendor\cef\Resources\*.pak $WorkDir\caches\fivereborn\bin\cef\
Copy-Item -Force -Recurse $WorkDir\vendor\cef\Resources\locales\en-US.pak $WorkDir\caches\fivereborn\bin\cef\
Copy-Item -Force -Recurse $WorkDir\data\shared\* $WorkDir\caches\fivereborn\
Copy-Item -Force -Recurse $WorkDir\data\client\* $WorkDir\caches\fivereborn\
Copy-Item -Force $BinRoot\five\release\*.dll $WorkDir\caches\fivereborn\
Copy-Item -Force $BinRoot\five\release\*.com $WorkDir\caches\fivereborn\
Copy-Item -Force -Recurse $BinRoot\five\release\citizen\* $WorkDir\caches\fivereborn\citizen\
system
Closed
16
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.