Jump to content
RAGE Multiplayer Community

Custom Cars


DjEnzo
 Share

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 :)

Link to comment
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
Link to comment
Share on other sites

  • 5 months later...
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 2
Link to comment
Share on other sites

  • 8 months later...
On 2/2/2019 at 1:24 AM, DjEnzo said:

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.

Could you explain how you solved it and how to install it on the server?
I have the same problem and cannot find any solution.
Link to comment
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
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...