[HELP] C# Scripting and IntelliSense

I am getting acquainted with C# scripting and going through the documents. I followed all of the steps but some of the commands are not available.

I do have the reference set and the namespace ‘using static CitizenFX.Core.Native.API;’

Thanks

do you have

using CitizenFX.Core;

as well?

World.CreateVehicle and Game.PlayerPed are not natives they are apart of the CitizenFX.Core classes.

I do and thank you for your reply. I found the answer. I referenced the wrong CitizenFX.Core

c:\users"username"\AppData\Local\FiveM\FiveM Application Data\citizen\clr2\lib\mono\4.5\CitizenFX.Core.dll

is the correct one.

1 Like

There is a server and a client CitizenFX.Core.dll. One is located in your FiveM Client folder and there is one in your FiveM Server folder.

Glad you found out your issue. Have a good one.

You can also use the official NuGet packages so that you don’t have to reference them yourself :slight_smile:

https://www.nuget.org/profiles/CitizenFX

CitizenFx.Core.Client for client side

1 Like