******************************************
* *
* AIBACKUP REMASTERED by MajorFivePD *
* *
******************************************
Credits to: Mooreiche | Mobius1 | TorstenDittmann
(His code did not received any update since 3 years ago, so I thought that maybe someone needs this resource but with the fixes and new possibilities.)
PATROL UNIT PREVIEW
AIR UNIT (NEW) - PREVIEW
DOWNLOAD HERE (Without Police Job Check)
DOWNLOAD NEW VERSION [PoliceJob]
Thanks to Manta for helping with the police job version!
Installation: drag āAIBackupRemasterā to your server resources folder and add to your server.cfg āensure AIBackupRemasterā
[Do not rename the folder and copy the exactly name into the server.cfg]
To call Patrol Unit Backup: /aib or ā+ā in your NUMPAD
To cancel both backups press ā-ā in your NUMPAD
To call Air Unit: /aib2
[You are only able to call one of them, if you called air unit, you canāt call patrol, and vice-versa]
[You are only able to call ONE unit, you canāt call more than 1 patrol or 1 air unit]
[Only able to call Air Unit via chat command]
[Controller Support in this resource disabled to avoid issues while using controller]
CHANGES | BUG FIXES | NEW FUNCTION:
-
KNOWN BUGS FIXED:
-
Fixed Relationship issue where nearby random npcs starts following you endless after you call or end the backup.
-
Fixed Relationship issue where the backup cop would try to enter your vehicle constantly, following you forever and never going away when they were cancelled.
-
Added new function so when you cancel the backup, the cop will get in their vehicle and drive away in the traffic.
-
Changed the backup so instead of going to your coords, the cop will follow you with lights/sirens on in a safe distance allowing pursuits to take place, and he will only leave the vehicle if you or him is being threatened/shot by enemies.
-
-
ADDED NEW BACKUP ā AIR UNIT (POLMAV)
Air Unit will follow you realistically at safe height (always will overcome and pilot safe to follow professionally) and itās able to pilot between skyscrapers/tall buildings and will use spotlight at night being fully immersive
CONFIGURATION:
- In the āvariablesā and āAddEventHandlerā section, you can ONLY change these values:
-- variables --
police = GetHashKey('police3') -- You can add any vehicle here, replace or addon.
policeman = GetHashKey("s_m_y_cop_01") -- You can add any ped here.
local mode = -1 -- 0 for ahead, -1 = behind , 1 = left, 2 = right, 3 = back left, 4 = back right
local speed = 50.0 -- Modify the backup maximum speed when following you.
local minDistance = 4.0 -- Default safe distance set by me, you can change it here.
local p7 = 0 -- Do not touch here
local noRoadsDistance = 0.0 -- Do not touch here
Credits to: Mooreiche | Mobius1 | TorstenDittmann
My Github: dsvipeer Ā· GitHub
My Profile: Profile - MajorFivePD - Cfx.re Community