1. Don’t ever use Function.Call if there’s a native function already
  2. The CitizenFX.Core methods/classes are just helper methods/classes around the existing API. See https://github.com/citizenfx/fivem/tree/master/code/client/clrcore/External for a full list.

As you can see, these classes just wrap around natives, so it’s up to you what you want to use. Personally I prefer using the CitizenFX.Core helper classes as much as possible unless I require some custom logic.

Examples:

API.PlayerPedId() == Game.PlayerPed.Handle
API.SetEntityCoords(myPed, x, y, z, etc...) == Game.PlayerPed.Position = new Vector3(x,y,z)

1 Like