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 issue: World.GetNextPositionOnSidewalk()
FiveM Source code sets that to Vector3.Zero if it couldn't find a good position around the area you specified (works within like 20-30ft of the player). (Source)
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 one of the examples.
- 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 from the FivePD download as a reference.
- Add CitizenFX.Core.dll from your FiveM client as a reference. (
<client-root>\citizen\clr2\lib\mono\4.5\CitizenFX.Core.dll
) - Derive Callout class
(For detailed instructions on how to create your first FiveM script, click here)
For documentation, visit the official FivePD documentation website.
If you wish to upgrade your old callouts, click here
We have an Offical FivePD API Discord Server which you can visit HERE.
If you wish to view videos on creating callouts using this API you can find a playlist of videos HERE.