Search Archive

More Code Help Needed

By mr_cs · Sep 30, 2009in Hacks/Mods💬 5 posts👁️ 715 views
Posted Sep 30, 2009 · 20:03 UTC#1

I am trying to create a button that will change the vehicle type, with the following code

 


 

This works but the button image doesn't change as intended. I guess it is because the visiblemodel= bit is incorrect.

 

Can anybody help me put it rfght?

 

Thanks

 

Colin

Posted Sep 30, 2009 · 20:52 UTC#2

It's generally not a good idea to give the same name to different objects.

 

Having said that, try something like

visiblemodel="ui.vSpeedcamSoundType=3"

 

It works in Stanislavovich's skin (for something else).

Posted Oct 01, 2009 · 07:16 UTC#3
visiblemodel="ui.vSpeedcamSoundType=3"

 

Thanks for the quick reply and the advice on the name issue.

 

I note the reccomended code includes reference to cam sounds but I am trying to reference vehicle type i.e. car, lorry, emergency vehicle etc. On that basis is the code appropriate?

 

Again many thanks for all your help.

 

Colin

Posted Oct 01, 2009 · 16:34 UTC#4
visiblemodel="ui.vSpeedcamSoundType=3"

 

Thanks for the quick reply and the advice on the name issue.

 

I note the reccomended code includes reference to cam sounds but I am trying to reference vehicle type i.e. car, lorry, emergency vehicle etc. On that basis is the code appropriate?

 

Again many thanks for all your help.

 

Colin

 

It was just a sample code on how to include a comparison into a visiblemodel. You would use whatever condition you need for your buttons.

Posted Oct 01, 2009 · 16:47 UTC#5

Ok - thanks

 

Colin