Jump to content

[WIP] FRBA - First Response Base Addon


Recommended Posts

First Response Base Addon is a WIP mod that is intended to serve as a dependency for other mods to use.

It will help players by:

 - Providing centralized tools (breathalyzer, radar gun, ALPR, court system) that any mod can hook into. This is to try and prevent duplicate features being present in your game.

 - Provide an easy to use settings menu, allowing keybinds and mod settings to be changed on the fly, instead of with a text editor and ini files.

 

It will help developers by:

 - Providing a simple to use Keybinds API

 - Providing a simple to use Settings API

 - Checking for Updates to your mod

 - Adding the ability to add documentation in-game

 

It is still very much WIP, and the first release won't contain all the tools listed above. I am focusing first on the Keybinds and Settings APIs. 

Getting a basic keybind setup with FRBA is simple
 

Keybind yell = new Keybind(Keys.X);
yell.location = KeybindLocation.OnFoot;
yell.SinglePress += Yell;
yell.HeldPress += YellLoud;
mod.Keybinds.Register("YELL", "Yell", yell);

That small amount of code will call the `Yell` function on a short press or `YellLoud` on a long press. The player can open up this menu and change the keybind, and it gets applied instantly. No reloading needed.

 

I have attached two images showing the current very WIP interface. This project will be made open source on GitHub once the first release is ready, and development will continue from there.

 

Let me know any thoughts, comments, ideas or anything else related to this WIP project.

20190225065222_1.jpg

20190225065226_1.jpg

Edited by SynixeBrett

👍

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...