Skip to content

Callout class

Daniel K edited this page Mar 27, 2020 · 8 revisions

If you want to create a new callout, you must derive from the Callout class. Never derive from BaseScript from CitizenFX.Core as the callout manager (which is is a plugin loader) would not load your callout correctly (or not even try) and gives you more chance to generate errors.

By not deriving from BaseScript, you won't have full access to everything (e.g., TriggerServerEvent, TriggerEvent is not usable yet), but that's just enough to make almost every callout that you'd like.

Instead, we've made wrapper methods to enable the most important methods, such as the Tick event and many more.

Clone this wiki locally