GTA V Mod Integration Guide

Contents
Getting Started
1. Add a reference in Visual Studio:
Adding a reference in Visual Studio
2. Browse and select the mod dll file from the SDK directory (select the SHVDN version appropriate for your script):
Selecting the dll file
3. Getting an integer from the mod:
UI.ShowSubtitle(FiniteCops.Main.GetCopNumber().ToString());
4. The result:
Gameplay with subtitle
Finite Cops v1.2.0
bool
FiniteCops.Main.
IsDispatchEnabled
();
Determine whether dispatch is enabled.
int
FiniteCops.Main.
GetCopNumber
();
Get the current cop number. This is the number of cops to clear to disable dispatch.
int
FiniteCops.Main.
GetCopNumberMin
();
Get the minimum cop number, determined by the config.
int
FiniteCops.Main.
GetCopNumberMax
();
Get the maximum cop number, determined by the config and current wanted level.
bool
FiniteCops.Main.
IsPedTracked
(
Ped
ped
);
Determine whether a ped is tracked as a cop.
void
FiniteCops.Main.
SetCopNumber
(
int
copNumber
);
Set the cop number. Less than or equal to 0 disables dispatch. Use GetCopNumber() to obtain the current cop number for arithmetic purposes.
void
FiniteCops.Main.
TrackCustomPed
(
Ped
ped
);
Add a ped to be tracked as a cop. Use IsPedTracked() to determine whether the ped is already tracked.