evtl fix client errors
This commit is contained in:
@@ -4,10 +4,18 @@
|
||||
});
|
||||
|
||||
mp.events.add('toggleVehicleSiren', (vehicle, state) => {
|
||||
if (!vehicle) {
|
||||
return;
|
||||
}
|
||||
|
||||
vehicle.setSirenSound(state);
|
||||
});
|
||||
|
||||
mp.events.add('entityStreamIn', (entity) => {
|
||||
if (!entity) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (entity.isAVehicle()) {
|
||||
var state = entity.getVariable("sirenSound");
|
||||
if (state === undefined) return;
|
||||
|
||||
Reference in New Issue
Block a user