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

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.


  • Recently Browsing   0 members

    No registered users viewing this page.