Create a new issue here (on GitHub) in the Issues tab with the appropriate label regarding your issue. This way, we can easily manage and solve issues quickly.
Important: Do not use World.GetNextPositionOnSidewalk()
, because it causes issues.
To request a new feature, either create a pull request or create a new issue with the feature request label.
Before you start making your callouts, it's recommended to take a look at how to write your first script in FiveM as this API is basically nothing more, but a wrapper to make it easier to write callouts with the reduced chance of doing something error prone (With extended features).
- Download the DefaultCallout.cs file (or any example).
- Open the file and start making your new callout.
- Type the following command in cmd (cs compiler) to compile your code.: (Assuming that you have the references in the same directory)
Note: .net.dll must be the assembly name. (For detailed instructions, visit the official command line building csc)
csc -target:library CalloutName.cs -reference:CalloutAPI.net.dll -reference:CitizenFX.Core.dll -out:CalloutName.net.dll
- Create a new C# Class Library project and make sure the target framework version is 4.5.2.
- Go to Project > Properties > Change the assembly name to .net
- Add CalloutAPI.dll as a reference.
- Add CitizenFX.Core.dll as a reference.
- Derive Callout class (For detailed instructions on how to create your first FiveM script, click here)
For documentation, visit the "wiki" tab.