Skip to content

A wrapper for creating callouts (for FivePD)

Notifications You must be signed in to change notification settings

TheCipher01/FivePD-API

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reporting errors

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.

Requesting new features

To request a new feature, either create a pull request or create a new issue with the feature request label.

Get started

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).

Creating a new callout using the example and cmd compiler
  1. Download the DefaultCallout.cs file (or any example).
  2. Open the file and start making your new callout.
  3. 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
From scratch in Visual Studio
  1. Create a new C# Class Library project and make sure the target framework version is 4.5.2.
  2. Go to Project > Properties > Change the assembly name to .net
  3. Add CalloutAPI.dll as a reference.
  4. Add CitizenFX.Core.dll as a reference.
  5. Derive Callout class (For detailed instructions on how to create your first FiveM script, click here)

For documentation, visit the "wiki" tab.

Fields and properties

Methods and events

CalloutPropertiesAttribute

About

A wrapper for creating callouts (for FivePD)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%