"API" does not contain a definition for "PlayerPedId" | C# scripting

I have a problem with creating my c# scripts, VS can’t bulid my project. I thik it’s a problem with redm library and now i don’t know how to deal with this problem, any ideas?

Server Artifact Version: 1787, but i tried with other artifacts, not only with redm, but with fivem.
Operating System:Windows
Error screenshot:

build output:

1>------ Build started: Project: Client, Configuration: Debug Any CPU ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2081,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "CitizenFX.Core", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
1>C:\Users\mati2\source\repos\RDR1Script\Client\Main.cs(20,35,20,46): error CS0117: 'API' does not contain a definition for 'PlayerPedId'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Use the client’s binary, also the portability-rdr3 stuff is really outdated!

so, what should i include to visual studio references. When i try include CitizenFX.Core form here: http://runtime.fivem.net/artifacts/fivem/build_server_windows/master/
it doesn’t work still.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.