Sign in to follow this  
DjEnzo

Custom Cars

Recommended Posts

Hi :)

Can you tell me how to upload custom cars on RAGE:MP server? I found onetutorial here, but I have some problems with ArchiveFix. It made 2 files "gtav_aes_key.dat" and "gtav_ng_key.dat". After "aes key found" nothing happens.

Do you have some experience with that?

I appreciate your help :)

Share this post


Link to post
Share on other sites

It can take a really long time, I don't believe that's the end which is why it just sits there, it all depends on your computer specifications on how quickly you can do it.

Share this post


Link to post
Share on other sites

Thank you for your answer :)

I did it! Do I need to copy the content.xml and setup2.xml to new rpf?

And how can I spawn my car? I made a simple command

        [Command("car")]
        public void CreateCar(Client player, string name)
        {
            try
            {
                Vector3 position = player.Position;
                Vector3 rotation = player.Rotation;
                VehicleHash veh = NAPI.Util.VehicleNameToModel(name);
                Vehicle vehicle = NAPI.Vehicle.CreateVehicle(veh, position, rotation.Z, 0, 0, "Om4n3k");
                player.SetIntoVehicle(vehicle, (int)VehicleSeat.Driver);
            }
            catch(Exception e)
            {
                player.SendNotification(e.Message);
            }
        }

After typing "/car onevia (hashName of the mod)" nothing happens (no exception, error, etc.) but normal car like "/car zentorno" spawns. Any ideas?

I placed my mod on my VPS in folder "/client_packages/dlcpacks/onevia/dlc.rpf". I downloaded it correctly, reconnected, restarted my game.

Edited by DjEnzo

Share this post


Link to post
Share on other sites
Am ‎02‎.‎02‎.‎2019 um 01:24 schrieb DjEnzo:

Thank you for your answer :)

I did it! Do I need to copy the content.xml and setup2.xml to new rpf?

And how can I spawn my car? I made a simple command

        [Command("car")]
        public void CreateCar(Client player, string name)
        {
            try
            {
                Vector3 position = player.Position;
                Vector3 rotation = player.Rotation;
                VehicleHash veh = NAPI.Util.VehicleNameToModel(name);
                Vehicle vehicle = NAPI.Vehicle.CreateVehicle(veh, position, rotation.Z, 0, 0, "Om4n3k");
                player.SetIntoVehicle(vehicle, (int)VehicleSeat.Driver);
            }
            catch(Exception e)
            {
                player.SendNotification(e.Message);
            }
        }

After typing "/car onevia (hashName of the mod)" nothing happens (no exception, error, etc.) but normal car like "/car zentorno" spawns. Any ideas?

I placed my mod on my VPS in folder "/client_packages/dlcpacks/onevia/dlc.rpf". I downloaded it correctly, reconnected, restarted my game.

Hey mate,

this will work for you.

uint veh = NAPI.Util.GetHashKey(name);

 

  • Mask 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.