Emergency Vehicle Creator

EVC (24€)

Place equipements, sirens and emergency lights on any vehicle.
This is a script, lights/objects/vehicles are not included unless mentioned otherwise

Video available here
You can test our scripts for free here

Features

:white_check_mark: Place equipements, sirens and emergency lights on ANY vehicle
:white_check_mark: Multiple siren tones
:white_check_mark: Custom siren range
:white_check_mark: Option to force lights to be on before siren can be activated
:white_check_mark: Lights and equipements can be placed anywhere on the vehicle
:white_check_mark: Lights and equipements position and rotation can be saved to a file and automatically loaded when a vehicle spawns
:white_check_mark: Uses StateBags (no events are sent to the server/client unless when saving a configuration)
:white_check_mark: Mirror a light or object position / orientation on another light or object (for easier placement)
:white_check_mark: Possibility to customize menu appearance
:white_check_mark: Spawned objects can be invincible
:white_check_mark: Support for custom sirens (from Walsheyy’s WMServerSirens for instance)
:white_check_mark: Whitelisted menu (Comes preconfigured for identifiers, ESX, QB-Core and ACE)
:white_check_mark: Can control lights independently from sirens on native emergency vehicles
:white_check_mark: Holding E with the sirens on will trigger an alternative siren (like on native vehicles)
:white_check_mark: Holding E with the sirens off will trigger the horn
:white_check_mark: Choose alternative siren in menu
:white_check_mark: Save a config as a template, that can be loaded using the menu or the event TriggerServerEvent("EVC:SpawnTemplate", NetworkGetNetworkIdFromEntity(veh), template_name)
:white_check_mark: Exports to check if a vehicle has lights, objects or sirens exports.EVC:HasLights(veh) / exports.EVC:HasObjects(veh) / exports.EVC:HasSirens(veh)
:white_check_mark: Export to toggle lights, objects and sirens on vehicle exports.EVC:ToggleLightsObjectsSirens(veh, state)
:warning: Uses FiveM Asset Escrow system
:warning: Requires OneSync (Not working with OneSync Legacy)
:warning: Requires NativeUI
:arrow_right: Compatible with : LightBars by @Munky (Redistributed in this script)
:arrow_right: Compatible with : EVC Starter Pack by @D3 (Included for free in this script)
:arrow_right: Compatible with : D3S Equipement by @D3 (:warning: Not included)
:arrow_right: Compatible with : WMServerSirens by @Walsheyy (:warning: Not included)

Controls

Keybind / Command Action
F6 Open menu
LALT Turn on lights
E Turn on sirens
G Change the siren tone

Updates

Click to display

2.2.0

:white_check_mark: Ability to whitelist per siren

2.1.9b

:white_check_mark: Add keybind to add / remove lights, objects and sirens
:white_check_mark: Fix error while placing light

2.1.9

:white_check_mark: Update whitelist to latest ESX

2.1.8a

:white_check_mark: Add Config.HandleEntityCreatedRemoved to disable entityCreated and entityRemoved events

2.1.8

:white_check_mark: Light/Object wise whitelist
:white_check_mark: Only modify lights/objects on which you have rights
:white_check_mark: Light/Object wise collisions
:white_check_mark: Only put loaded models in spawn menu
:white_check_mark: Fix logs

2.1.7

:white_check_mark: Option to force lights to be on before siren can be activated
:white_check_mark: If sirens were on before lights were turned off, sirens will be turned on when lights are turned on
:white_check_mark: Turn off sirens if lights are turned off

2.1.6

:white_check_mark: Ability to control livery on placed object / light
:white_check_mark: Livery is saved to file and loaded on object / light on spawn

2.1.5

:white_check_mark: Add export : exports.EVC:ToggleLightsObjectsSirens(veh, state) to toggle lights, objects and sirens placement on vehicle
:white_check_mark: Save options in list instead of multiple buttons
:white_check_mark: Sync bugfixes

2.1.4

:white_check_mark: Add lights / equipements on trailer and control them from the truck (hold keybind)
:white_check_mark: Option to allow passenger to turn on lights / sirens

2.1.3d

:white_check_mark: Can control lights independently from sirens on native emergency vehicles
:white_check_mark: Holding E will trigger an alternative siren (like on native vehicles)
:white_check_mark: Choose alternative siren in menu
:white_check_mark: Increase default rotation sensitivity
:white_check_mark: Fix save when only sirens
:white_check_mark: Better save notifications
:white_check_mark: Configs are now loaded on resource start
:white_check_mark: Bugfix horn/siren is not binded on E
:white_check_mark: Bugfix horn on native emergency vehicles

2.1.2

:white_check_mark: Option to allow only whitelisted player to control lights / sirens

2.1.1

:white_check_mark: Sync doors accross clients
:white_check_mark: Update model list based on D3s releases
:white_check_mark: Overhaul of spawning logic to prevent bugs when vehicles are spawned server-side

2.1.0

:white_check_mark: Don’t wait on lights/equipements not loaded or not in config
:white_check_mark: Bugfix potential conflict in state bags name
:white_check_mark: Bugfix spawning issues

2.0.9

:white_check_mark: Set maximum number of lights / equipements per vehicle
:white_check_mark: Extras on objects as well as on lights
:white_check_mark: Extras and doors settings will be applied on load
:white_check_mark: Bugfix error on server identifier is nil

2.0.8

:white_check_mark: Ability to control extras and doors of placed light
:white_check_mark: Custom Siren range

2.0.7

:white_check_mark: Complete rework of sirens internal logic
:white_check_mark: Bugfix sirens not turning on for some player when entering scope
:white_check_mark: Bugfix NetworkGetNetworkIdFromEntity
:white_check_mark: Bugfix siren order not the same on every client
:white_check_mark: Owners can write custom UUID function to choose how to save/load configs
:white_check_mark: Better handling of on/off state of lights to prevent desync between lights

2.0.6

:white_check_mark: Save a config as a template
:white_check_mark: Template can be loaded onto any vehicle using the menu or the event TriggerServerEvent("EVC:SpawnTemplate", NetworkGetNetworkIdFromEntity(veh), template_name)
:white_check_mark: Bugfix siren turns off when in other police car

2.0.5

:white_check_mark: Config option to spawn objects / lights only if the player spawning the vehicle is whitelisted
:white_check_mark: Clean up of the configuration code
:white_check_mark: Add config for Side Runners Pack

2.0.4

:white_check_mark: Add an option to enable/disable lights, objects and siren on a vehicle
:white_check_mark: Add export to check if a vehicle has lights : exports.EVC:HasLights(veh)
:white_check_mark: Add export to check if a vehicle has objects : exports.EVC:HasObjects(veh)
:white_check_mark: Add export to check if a vehicle has sirens : exports.EVC:HasSirens(veh)

2.0.3

:white_check_mark: Add new models from D3S’s EVC Starter Pack

2.0.2

:white_check_mark: Add job grade permission support
:white_check_mark: Draw marker on selected object
:white_check_mark: Spawned objects can be invincible
:white_check_mark: Possibility to customize menu appearance
:white_check_mark: Maintain the model selection when spawning an object / light

2.0.1

:white_check_mark: Fix translation and rotation speed sensitivity
:white_check_mark: Auto select just spawned element
:white_check_mark: Check if models exist before adding it to the menu
:white_check_mark: Change some translations
:white_check_mark: Add D3sEvcStarterPack
:white_check_mark: More bugfix GetNetworkObject
:white_check_mark: Enhance object deletion

2.0.0

:white_check_mark: Move to EVC
:white_check_mark: Bugfix GetNetworkObject
:white_check_mark: Add support for placing equipements
:white_check_mark: Complete refactor of menu

1.1.6

:white_check_mark: Ability to save per user + plate (disabled by default)
:white_check_mark: Bugfix save user+plate
:white_check_mark: Add ACE permission support
:white_check_mark: Bugfix whitelist

1.1.5

:white_check_mark: Support for custom sirens (from Walsheyy’s WMServerSirens for instance)

1.1.4

:white_check_mark: Bugfix multiple siren sound on same vehicle

1.1.3

:white_check_mark: Mirror a light position / orientation on another light (for easier placement)
:white_check_mark: Add description to each button

1.1.2

:white_check_mark: Simpler mouse view control
:white_check_mark: Select dynamically rotation speed
:white_check_mark: Select dynamically translation speed
:white_check_mark: Menu stays at same index when switching model

1.1.1

:white_check_mark: Bugfix some spawning issues
:white_check_mark: Bugfix some error in client consoles (no object by ID 0)
:white_check_mark: Added total number of lights

1.1.0

:white_check_mark: Register siren and lights per model and / or per plate (defaults to per plate, option in the config file)
:white_check_mark: Range and sensitivity can be customized for rotation

1.0.0

:white_check_mark: Place a siren and emergency lights on ANY vehicle
:white_check_mark: Light up the lights
:white_check_mark: Turn on the sirens
:white_check_mark: Multiple siren tones
:white_check_mark: Lights can be placed anywhere on the vehicle
:white_check_mark: Lights position and rotation can be saved to a file
:white_check_mark: The saved position and rotation of the lights are automatically loaded when a vehicle spawns (based on the number plate)
:white_check_mark: Uses StateBags (almost no events are sent to the server/client unless when saving a configuration)
:white_check_mark: Remove lights
:white_check_mark: Automatically disable horn if siren is installed

License

Click to display

Copyright (C) Nabla Corporation - All Rights Reserved.

THE CONTENTS OF THIS PROJECT ARE PROPRIETARY AND CONFIDENTIAL.
UNAUTHORIZED COPYING, TRANSFERRING OR REPRODUCTION OF THE CONTENTS OF THIS PROJECT, VIA ANY MEDIUM IS STRICTLY PROHIBITED.

The receipt or possession of the source code and/or any parts thereof does not convey or imply any right to use them
for any purpose other than the purpose for which they were provided to you.

The software is provided “AS IS”, without warranty of any kind, express or implied, including but not limited to
the warranties of merchantability, fitness for a particular purpose and non infringement.
In no event shall the authors or copyright holders be liable for any claim, damages or other liability,
whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software
or the use or other dealings in the software.

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Accessible code No (except config/whitelist/customization)
Subscription-based No
Lines 1959
Requirements OneSync, NativeUI
Support Yes
4 Likes

WHOOP WHOOP! Thats the sound of da police!

Could you possibly add something like menyoo spooner mode where it shows what prop you are going to select like this?

3 Likes

That’s a good idea, I’ll include it in the next release

what is the upside to purchasing this over the free one?

Hi there,

It’s a fair question !
We tried the one offered by Munky, and while it’s a good concept it lacks a lot of polishing and relies heavily on network events.

We took the idea to the next step :

  • Using all the features of NativeUI
  • Whitelisting
  • Customizable commands (using RegisterCommand)
  • Network sync using State Bags which greatly reduce the network load
  • An option to select sirens among a list
  • Made the placement easier with sliders and sensitivties
  • The ability to save the configuration per plate, model or user (on the server so that it is restored when the vehicle spawns again)
  • Customizable translations
  • Equipement placement (with D3S models)
  • It’s still maintained and supported

If you feel like it’s not worth it, please try both (on our server you can try ours) and let us know !

Its possible to stream a custom banner for the menu? I mean because its encrypted and i need client lua to make it on my own… Maybe you can implement it and we can decide in the config? Would be awesome :+1:t2:
@NablaCorporation

Hey, we’ll add it to the next release :slight_smile:

1 Like

New update :

v2.0.2

:white_check_mark: Draw marker on selected object
:white_check_mark: Spawned objects can be invincible
:white_check_mark: Possibility to customize menu appearance
:white_check_mark: Maintain the model selection when spawning an object / light

1 Like

Hey there. Is this script compatible with the LuxartVehicleControl Script?

Hey !

It depends on what you call compatible.
They perform similar functions but with different implementations. The scripts won’t interfere however due to how we handle the lights / sirens, you won’t be able to turn them on using Luxart or vice versa

Our script is more aimed at turning normal vehicles into emergency ones

Having a strange issue.

Some of our marked cars we use for our department have Rx2700 lightbar and some objects and other singles loading on it. 2.0.3. version. Such as one of our 18 chargers. It doesn’t matter who spawns it either. EVEN if they don’t have access to the EVC script it still loads the lights. We have our config set to save by User+Plate. Is it a bug or something? I’ve tried deleting the EVC json file but it keeps getting recreated with various lights in it already set up it seems. Not sure what to do. Its almost like its been saved to that model. Regardless of license plate or user.

Hey,

Could you send the EVC.json here?

When it’s saved as user+plate, the script will check the owner of the entity and the plate. Are your vehicles spawned server side or client side?
I’ll verify that it’s working properly asap

EVC.json (351.3 KB)

For spawning LEO cars we use GitHub - Sc0ttM/SEM_InteractionMenu: Multi Purpose FiveM Interaction Menu

Do you know which one spawns when it shouldn’t ?

From your config, there’s :

  • 4 models : 1231397769, -353587902, -1013450936, -1089302525
  • 3 plates 05GRK687, PDRO2LOW, 28HUM896
  • The rest is identifier + plate

The priority is identifier+plate > plate > model

To properly delete the EVC.json, stop the script, delete the file and then start the script

That menu seems to spawn vehicle client side so I don’t see why there would be an issue

It’s working fine on my end, only the identifier that saved the car is able to spawn it with the attachments

New releases :

v2.0.6

:white_check_mark: Save a config as a template
:white_check_mark: Template can be loaded onto any vehicle using the menu or the event TriggerServerEvent("EVC:SpawnTemplate", NetworkGetNetworkIdFromEntity(veh), template_name)
:white_check_mark: Bugfix siren turns off when in other police car

v2.0.5

:white_check_mark: Config option to spawn objects / lights only if the player spawning the vehicle is whitelisted
:white_check_mark: Clean up of the configuration code
:white_check_mark: Add config for Side Runners Pack

v2.0.4

:white_check_mark: Add an option to enable/disable lights, objects and siren on a vehicle
:white_check_mark: Add export to check if a vehicle has lights : exports.EmergencyVehicleCreator.HasLights(veh)
:white_check_mark: Add export to check if a vehicle has objects : exports.EmergencyVehicleCreator.HasObjects(veh)
:white_check_mark: Add export to check if a vehicle has sirens : exports.EmergencyVehicleCreator.HasSirens(veh)

Good evening! I bought EVC a few weeks ago. But when I place a lightbar inside the vehicle (behind window) it’s not visible on the outside. Can I change that?

Hey, EVC is the script to place the lightbars. The lightbars themselves are not created by us.
I invite you to contact the creator of said lightbar :wink:

1 Like

Thanks! I will do that

Suggestion for Config option!

MaxLights.

Maximum Amount of lights that can be added to a vehicle.
We have idiots putting 40 lights on cars which is causing crashes.

1 Like