BerkieBb / pma-sirensync

The best siren sync resource to utilise in FiveM
MIT License
58 stars 21 forks source link

Just one addon car has default sirens #10

Closed Esterze closed 1 year ago

Esterze commented 1 year ago

I have like 5 addon vehicles with sirens and only 1 of them does not follow the script. What should I do?

BerkieBb commented 1 year ago

What do you mean?

Esterze commented 1 year ago

One addon car has default controls. No J K L, just E.

Esterze commented 1 year ago

And ambulance also uses the E key instead of the controls defined in the script.

BerkieBb commented 1 year ago

That means the car isn't an emergency vehicle

Esterze commented 1 year ago

Ambulance is not an emergency vehicle?

BerkieBb commented 1 year ago

The only vehicles that work are emergency vehicles, which is defined by the vehicle class

BerkieBb commented 1 year ago

So the vehicles.meta of that vehicle is probably wrong

Esterze commented 1 year ago

How am I supposed to change vehicles.meta of a vanilla vehicle?

BerkieBb commented 1 year ago

You can re-stream it, but the vanilla vehicles should work though, let me check

Esterze commented 1 year ago

The addon vehicle was in fact set improperly, to sedan.

BerkieBb commented 1 year ago

The default ambulance in the game does have the emergency vehicle class

BerkieBb commented 1 year ago

Are you sure you're not using an addon vehicle instead or the vehicles.meta of it is re-streamed?

Esterze commented 1 year ago

I'm sure I'm not using an addon vehicle. I'm using a vehicle of which spawn code is ambulance.

Esterze commented 1 year ago

It's weird. When I spawn an ambulance it's working fine, but if I use the one in hospital's garage it does not work.

Esterze commented 1 year ago

So the issue is resolved. Thanks for telling me about the class.

BerkieBb commented 1 year ago

Then that vehicle may be another model with the wrong vehicle class

Esterze commented 1 year ago

Then that vehicle may be another model with the wrong vehicle class

I don't think so. I know what addon vehicles I got on my server. Probably the way the ambulance got stored is messed up.

BerkieBb commented 1 year ago

Probably the way the ambulance got stored is messed up.

Could be, I don't really know, if I come across this issue again, I'll do an investigation on it