qb-unitnames

qb-unitnames is a FiveM resource made for QBCore framework, it uses qb-activeofficers design only, the script is made from scartch and fully optimized + they do not serve the same purpose. (could be converted if requested)
Showcase video
Description
What the package does is something that’s already widely used across role-play servers, but is probably manually assigned, and with no actual script to it : It automatically assigns a unit name based on the number of police officers on a police registered vehicle, and that vehicle name.
For example:
- Unit composed of 3 Officers in a regular police vehicle, would be assigned the name of: XRAY-01, the number is automatically assigned, next XRAY unit would be assigned the name of XRAY-02 for instance and so on.
Supported Unit Names:
-
Lincoln: Is the type of patrol composed of a single officer.
-
Adam: Is the type of patrol composed of two officers.
-
X-ray: Is the type of patrol composed of three officers.
-
Queen: Is the type of patrol composed of four officers.
-
Sam: Is the type of patrol composed of a supervisor, Lieutenant or Sergeant.
-
Mary: Is the type of patrol composed of a motorized unit.
-
David: Is the type of special response unit. (SWAT)
-
William: Is the type of unit composed of a Detective.
-
George: Gang Enforcement unit.
-
Eagle: Is the type of air unit.
Commands
All commands are police restricted
-
/units : Shows on/off patrol units.
-
/patrol : Driver only, automatically applied to the rest of LEO passengers.
-
/endpatrol : Can be used by anyone assigned to a unit, disbands the entire unit for all members & notifies them.
Config
Can be found under config.lua, you can change unit names, their descriptions and must change vehicle names according to your server. (e.g. Interceptor Units)
License
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | ~800 |
| Requirements | QBCore |
| Support | Yes |

