Recommended Posts

 

Hey , i try to make a Vehicle

When in server  Enter/Join a Vehicle or Player Dead = Server Console Crash !!!!!!!!!!!

Trying make by 2 Language (C#/JavaScript) ,

Log :

Quote

==================[2/15/2019 2:09:32 PM]==================
System.Reflection.TargetParameterCountException: Parameter count mismatch.
   at object[] System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
=========================================================

Code C# :

        [Command("car")]
        public void CreateCar(Client client, string type)
        {
            Vehicle newVehicle;
            uint myCarType = NAPI.Util.GetHashKey(type);
            newVehicle = NAPI.Vehicle.CreateVehicle(myCarType, client.Position.Around(5), 0,7,7);
        }

or Code JavaScript :

     mp.vehicles.new(mp.joaat("turismor"), new mp.Vector3(-424.54,1130.09,325.85),
     {
           numberPlate: "123",
           color: [[0, 255, 0],[0, 255, 0]]
     });

What happen? how can fix this crash ???

i try re-install RAGE MP not work ...

Please HELP !!!!!!!!!!!☹️

 

Share this post


Link to post
Share on other sites

Code you've provided doesn't mean anything if you're saying you crash when you enter a vehicle or die. That means it has to do inside those events, not when you create a car.

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

  • Recently Browsing   0 members

    No registered users viewing this page.