This repository contains two projects, CornyFlakezPlugin
and CornyFlakezPlugin2
, which are plugins for LSPDFR and RPH.
Download the latest release and copy all files into your root GTA V directory.
You may also compile the plugin from source locally. First, clone the repository:
git clone [email protected]:kguzek/CornyFlakezPlugin.git
Then, compile the project.
To do this there is an included build script for Windows which assumes your game is installed in the default location
(C:\Program Files\Rockstar Games\Grand Theft Auto V
).
cd CornyFlakezPlugin
.\Build-Plugins.ps1
Otherwise, you may do this step manually. You can open the Build-Plugins.ps1
file with a text editor and see what it does.
The main steps are running dotnet build
and copying the build output into the appropriate plugin folders, as well as copying the referenced system DLLs to the root game folder.
This is an LSPDFR plugin which adds new callouts and loadout functionality.
The the plugin's file directory is in Plugins/LSPDFR/CornyFlakezPlugin
. Here, there is a configuration file called settings.ini
.
It contains basic settings which slightly affect the plugin's functionality and may be changed freely.
The supported callsign format is Division-Unit-Beat, where Unit is a code word from the LAPD phonetic alphabet.
Loadouts can be defined in WeaponLoadouts.xml
in the plugin directory: Plugins/LSPDFR/CornyFlakezPlugin
. These will be applied when the user goes on duty.
When using the LSPDFR "Flash badge" action near the front of a vehicle, the occupants leave the vehicle allowing you to commandeer it. You can activate the built-in action by using the interaction menu or by pressing the GTA V Action key (default: caps lock) when your action is set to "Flash badge". This feature only works when you are within a certain distance of the front of the closest vehicle to you and when that vehicle has at least one occupant.
Currently, there are two added callouts in CornyFlakezPlugin.
This is a basic vehicle pursuit which practically doesn't differ from the built-in pursuit. It was made while learning the basics of RPH plugin development.
This is a linear callout which involves escorting a VIP from a start location (currently only City Hall) to the LSIA. I am planning on adding more events to it (random attacks on VIP etc.) but currently each playthrough will be the same.
This is a debug plugin for RagePluginHook (it does not require LSPDFR) that I created to ease the develpoment of CornyFlakezPlugin. It has two menus activated by two keybinds.
This menu can be opened by pressing ]
. It contains options pertaining to spawning peds and vehicles, as well as emulating LSPDFR callouts.
The callout emulator is particularly useful as it means you can update the callout code and test it without reloading LSPDFR.
This menu also contains a Reload plugin
option, which further helps with development when testing new versions.
This menu can be opened by pressing [
and it contains information regarding peds and vehicles belonging to the active callouts.