- Thread Author
- #1
Flashing lights on
A script that allows you to leave flashing lights on when exiting the car
JavaScript:
mp.events.add('playerExitVehicle', (player, vehicle) => {
if (player.vehicle) {
player.vehicle.setSiren(true);
}
}
});
Create a файл.js on the server side and connect it to index.js. require('/name of your file, where the код.js' itself is located);