Jump to content

Recommended Posts

Posted

Hi everyone, I use mp.vehicles.new to create a client-side machine and the machine is created, but I get an error in the server side, I understand the meaning of the error, but I don’t do it, it appears on my own, Also, if you get into such a machine, the error starts repeating cyclically, I checked the entervehicle event, but it’s not it, maybe it’s rage synchronization. How to fix it?

 

 

Invalid cast from 'System.Int32' to 'GTANetworkAPI.Vehicle'.
System.InvalidCastException: Invalid cast from 'System.Int32' to 'GTANetworkAPI.Vehicle'.
   at object Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
   at object int.System.IConvertible.ToType(Type type, IFormatProvider provider)
   at void GTANetworkInternals.RemoteEventParser.Parse(Player sender, ulong eventNameHash, params object[] args)

 

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.
×
×
  • Create New...