Info
- Deploy bait-car trackers on automobiles and place them in locations where they are susceptible to theft. The bait-car can be operated from a remote location, enabling the toggling of the engine, securing the doors to prevent the suspects from entering or exiting the vehicle, and observing the interior of the vehicle through a concealed camera. The system is fully SERVER synchronized with a comprehensive configuration file, which enables integration with various frameworks.
Features
- Incredibly extensive configuration file allowing great control over the resource and its functionality
- QBcore, ESX, OR Standalone (Framework Independent)!
- Ability to use different permission systems: Ace permissions, Discord roles, command, QBCore jobs, custom or no authentication at all!
- Ability to choose between NativeUI menu, ESX menu, QBCore menu, or add your custom menu yourself (RageUI Menu Update Coming Soon)
- Ability to choose from different notification systems: GTAV, VCore-Noti, OkOkNotify, T-Notify, skeexsNotify, Infinity Notify, B-Notify, Atom Notify, Mythic Notify, QBCore, ESX, or add your custom notification calls! If you donât know how, make a request and Iâll add it in for you!
- Everything is Server-Synced! all online LEO officers are able to view and control the bait-cars
- an Infinite number of bait-cars possible! Or restrict the number via the config on a server bases and/or a player bases
- Easy-to-use menu for controlling the bait-cars with keybinds and remapping
- COMPLETE REWRITE OF first attempt, more safely and efficiently written
- Included languages: English, *Spanish, *French, *Dutch, *Russian, *Bulgarian, *German : (*AI Generated) (Hungarian, Italian, Polish, Swedish Updates Coming Soon)
- Translatable language file, easy to change language file add your own if needed
Menu Options
- Set Vehicle As Bait-Car : Toggleâs the current vehicle that youâre in as a bait-car. If the current vehicle is set as a bait-car already, it will remove it as a bait-car
- Toggle Engine : Toggleâs the selected bait-cars engine on / off
- Toggle Vehicle Locked : Toggleâs the vehicleâs doors locking them trapping all people inside and preventing anyone from entering from the outside
- Toggle DashCam : Peek inside the bait-car vehicle
- Toggle Notification : Toggle a notification to appear when suspects enter the bait-car (client only)
- Toggle Blip : Toggle the bait-car blip to turn it on or off (client only)
- Bait-Car Selector : Select the bait-car you want to control
Requirements
NOTE: not all of these requirements are required, only install the resources that you need. If you are using QBCore or ESX frameworks then you will not need any Discord Permission resources or NativeUI for the menu - unless you want to use those options!
If you are confused about which files you need, please refer to the Installation Guide and Customization Guide found below!
For Discord Permissions
-
[discordroles] : Discord permission checking
-
[hqly_perms] : wrapper for discordroles
OR alternatively,
- [Badger Discord API] : Discord permission checking with built-in caching negating the need for the combination of hqly_perms and discordroles resources together.
For NativeUI Menu
- [NativeUI] : Menu API.
For QBCore
- [QBCore Framework] : QBCore framework
For ESX
- [ESX Framework] : ESX framework
Supported Notification Frameworks
[OkOkNotify] | [VCore-Noti] | [T-Notify] | [skeexsNotify] | [Infinity Notify] | [B-Notify] | [Atom-Notify] |
[Mythic Notify] | ||||||
[QBCore] | Built-in QBCore notification system | |||||
[ESX] | Built-in ESX notification system |
Installation Guide
Standalone (Framework Independent)
- make sure you have NativeUI installed and running
- install
hqly_baitcar_v2
into yourresources
folder - edit
fxmanifest.lua
and uncomment line #25:'@NativeUI/NativeUI.lua',
- edit
config.lua
- change
menuType
tonativeui
- change
notificationFramework
togtav
- change
permissionType
to eitherace
,command
, ornone
- change
itemFrameWork
tonone
- ensure
requireItem
is set tofalse
- Follow the specific permissions framework guide found below
QBCore
- make sure you have QBCore installed and running
- install
hqly_baitcar_v2
into yourresources
folder - edit
fxmanifest.lua
and comment line #25:'@NativeUI/NativeUI.lua',
- edit
config.lua
- change
menuType
toqbcore
- change
notificationFramework
toqbcore
- change
permissionType
to eitherqbcore
,ace
,command
, ornone
- change
itemFrameWork
toqbcore
- ensure
requireItem
is set tofalse
- edit
allowedRoles
and put any job names you wish to be able to open the menu
If you wish to require an item to use with the bait-car:
- install
baitcar.png
intoqb-inventory/html/images
- edit
config.lua
- ensure
requireItem
is set totrue
- item name is:
baitcar_tracker
ESX
- make sure you have ESX installed and running
- install
hqly_baitcar_v2
into yourresources
folder - edit
fxmanifest.lua
and comment line #25:'@NativeUI/NativeUI.lua',
- edit
config.lua
- change
menuType
toesx
- change
notificationFramework
toesx
- change
permissionType
to eitheresx
,ace
,command
, ornone
- change
itemFrameWork
toesx
- ensure
requireItem
is set tofalse
- edit
allowedRoles
and put any job names you wish to be able to open the menu
If you wish to require an item to use with the bait-car:
- run
hqly_baitcar.sql
on your SQL server, replacing DBNAME with the database associated with your ESX server - edit
config.lua
- ensure
requireItem
is set totrue
- item name is:
baitcar_tracker
Permissions Framework Guides
Ace Permissions
- edit
config.lua
- change
permissionType
toace
- in your
server.cfg
add the appropriate ace permissions.
- IE: add_ace group.police command.baitcar allow (make sure the command matches the command you have set in the config)
Discord Permissions
- install & configure
discordroles
andhqly_perms
: refer to Requirements section found above - edit
config.lua
- change
permissionType
todiscord
- place any desired Discord role IDs into
allowedRoles
Discord BADGER Permissions
- install & configure
badger_discord_api
- edit
config.lua
- change
permissionType
todiscord-badger
- place any desired Discord role IDs into
allowedRoles
Command Permissions
- edit
config.lua
- change
permissionType
tocommand
- change
commandPassword
to your own password
- authenticate in-game via
/bc_onduty <password>
(if you didnt change the default onDuty command)
QBCore Permissions
- install & configure
QBCore
- edit
config.lua
- change
permissionType
toqbcore
- edit
allowedRoles
to include any job roles names you wish to be able to open the menu
ESX Permissions
- install & configure
ESX
- edit
config.lua
- change
permissionType
toesx
- edit
allowedRoles
to include any job roles names you wish to be able to open the menu
No Permissions
- edit
config.lua
- change
permissionType
tonone
ADVANCED
Custom Permissions
- edit
config.lua
- change
permissionType
tocustom
- find function
canAccessMenu
inclient/auth.lua
- find line:
elseif config.permissionType == 'custom' then
and add your verification call there, return true if can access menu
Notification Framework Guides
GTAV
- edit
config.lua
- change
notificationFramework
togtav
OkOkNotify
- install & configure OkOkNotify
- edit
config.lua
- change
notificationFramework
tookok
VCore-Noti
- install & configure VCore-Noti
- edit
config.lua
- change
notificationFramework
tovcore
T-Notify
- install & configure T-Notify
- edit
config.lua
- change
notificationFramework
totnotify
B-Notify
- install & configure B-Notify
- edit
config.lua
- change
notificationFramework
tobnotify
Infinity Notify
- install & configure Infinity Notify
- edit
config.lua
- change
notificationFramework
toinfinity
Atom-Notify
- install & configure Atom-Notify
- edit
config.lua
- change
notificationFramework
toatom
skeexsNotify
- install & configure skeexsNotify
- edit
config.lua
- change
notificationFramework
toskeexs
Mythic Notify
- install & configure Mythic Notify
- edit
config.lua
- change
notificationFramework
tomythic
QBCore
- install & configure QBCore
- edit
config.lua
- change
notificationFramework
toqbcore
ESX
- install & configure ESX
- edit
config.lua
- change
notificationFramework
toesx
ADVANCED
Custom Notifications
- edit
config.lua
- change
notificationFramework
tocustom
- find function
doNotification
inconfig.lua
- find first instance of
if config.notificationFramework == 'custom' then
and add your success notification call under hat line using variablemsg
as the message text - find second instance of
if config.notificationFramework == 'custom' then
and add your error notification call under that line using variablemsg
as the message text
Config File Explained
NOTE: if an option is left blank, that means that you can change it to anything!
Configuration | Explanation | Options |
---|---|---|
menuType | Will determine the menu framework type to use | nativeui, qbcore, esx |
commandPassword | Will authenticate the player WITH the onduty command | |
notificationFramework | Notification framework that will be used to notify the player | gtav, vcore, okok, qbcore, esx, atom, bnotify, infinity, skeexs, tnotify, mythic, custom |
permissionType | Permission system to use to authenticate roles/jobs | discord, ace, none, qbcore, esx, command, custom |
allowedRoles | The job names or Discord role IDs that can open the menu | |
dashCamAnimationActive | If true will play an animation when looking through the dashcam of a bait-car | true/false |
dashCamAnimationDict | ADVANCED CONFIG: Animation dictionary and animation to use when player views a dashcam | |
dashCamTabletProp | ADVANCED CONFIG: Prop that is spawned and attached to player when viewing a dashcam | |
maxNumberOfBaitCars | Max number of server bait-cars, 0 = infinite | 0 - 9999999 |
maxPlayerBaitCars | Max number of player set bait-cars, 0 = infinite | 0 - 9999999 |
requireItem | If true will require an item in inventory to use the bait-car (QBCore and ESX only) | true/false |
consumeItemOnUse | If true will remove the item from player inventory when installing a bait-car tracker (QBCore and ESX only) | true/false |
itemFrameWork | Item framework system to use for inventory | qbcore, esx, none |
commands.openMenu | Command used to open the Bait-Car menu | |
commands.onDuty | Command used to authenticate player with command based permissions | |
enableKeybinds | Enable or disable keyboard and controller keybinds to open the menu | true/false |
keybinds.keyboard | Keybind to open the menu on keyboard. Leave blank to disable keybind for keyboard | Default QWERTY Controls or ââ |
keybinds.controller | Keybind to open the menu on controller. Leave blank to disable keybind for controller | Xbox Controller Controls or ââ |
menuLocation | X, Y location of the menu. Only for NativeUI | vec2(0-1500, 0-1000) |
blipSprite | Blip sprite ID to use to mark bait-cars. Blip sprite IDs can be found here | 0-826 |
blipColour | Blip sprite colour ID to use to mark bait-cars. Blip sprite colour IDs can be found here | 0-85 |
debugMode | Spit debug info into console | true/false |
Commands (How to OPEN the menu)
Note: commands are modifiable through the config
Command | Use Case |
---|---|
/baitcar |
opens the menu |
/bc_onduty |
if permission type is set to command, this will be the command used to authenicate via the password. IE: /bc_onduty <password> |
Preview
Video:
NOTE: this is a an older video, but the functionality is more or less the same.
Images:
ESX Menu Images
- ESX Menu:
- ESX Menu - Selecting Bait-Car
NativeUI Menu Images
- NativeUI Menu: (NOTE: Menu Banner will be the default
commonmenu.ytd
texture)
- NativeUI Menu - Selecting Bait-Car: (NOTE: Menu Banner will be the default
commonmenu.ytd
texture)
Get It Here!
Available for purchase on my Tebex store for $9.99 USD! (Escrowed)
Or
Available for purchase on my Tebex Store for $49.99 USD! (Source)
Support & Other Work
Donât hesitate to report any issues, offer any constructive criticism, or leave a suggestion!
If you have an idea youâd love to see come to life, donât be afraid to get in touch!
Check out my other work:
[Player Worlds] | [X-Priorities] | [Play-Time] | [Ground]
Code is accessible | Yes & No |
Subscription-based | No |
Lines (approximately) | ~1494 |
Requirements | Refer to Requirement Section Above |
Support | Yes |