Jump to content
Young Flacko

Change Name of Vehicles in shop

Recommended Posts

Hello!

I am currently adding in a bunch of modded vehicles, but all of these has different names. Some of them have way too long names.

Is there a way to add into the script that i can change the display name inside the shop.

This is the current code i have 

    class chMita {
        vItemSpace = 65;
        conditions = "";
        price = 12500;
        textures[] = { };
    };

Can i add a variable in here, to name the vehicle?

Share this post


Link to post
Share on other sites
1 hour ago, JedINyte said:

You don't need a script they can be renamed in config vehicles o.0

Yeah that is where the code in my post is from.

Would it be something like

 class chMita {
        vItemSpace = 65;
        conditions = "";
        price = 12500;
        textures[] = { };
        displayName = "Test Name";

    };

 

??

Share this post


Link to post
Share on other sites
3 hours ago, JedINyte said:

You don't need a script they can be renamed in config vehicles o.0

I don't believe you can actually do that for vehicles.

1 hour ago, Young Flacko said:

Yeah that is where the code in my post is from.

You would need to edit it to pull the display name from somewhere else, or edit the mod / define new classes for those vehicles.

Here's where it grabs the name: https://github.com/AsYetUntitled/Framework/blob/master/Altis_Life.Altis/core/functions/fn_fetchVehInfo.sqf#L45

Share this post


Link to post
Share on other sites
2 hours ago, imthatguyhere said:

I don't believe you can actually do that for vehicles.

You would need to edit it to pull the display name from somewhere else, or edit the mod / define new classes for those vehicles.

Here's where it grabs the name: https://github.com/AsYetUntitled/Framework/blob/master/Altis_Life.Altis/core/functions/fn_fetchVehInfo.sqf#L45

Ahhh i misread it lol, you can add different skins and name them something else in the shops, the vehicle name remains the same though.....my mistake :)

Share this post


Link to post
Share on other sites
8 minutes ago, JedINyte said:

Ahhh i misread it lol, you can add different skins and name them something else in the shops, the vehicle name remains the same though.....my mistake :)

Yeah, and other scripts will still use the vehicle's display name, so I don't really see the point in doing this, other than to maybe note what the vehicle is or something like that.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×