Jump to content
RAGE Multiplayer Community

Trying to pass entity object from javascript clientside to C# serverside


fl1k
 Share

Recommended Posts

y6IwHZz.png

 

this is how the code looks, when targetEntity is removed it works fine however when targetEntity is passed over 

 

client:damage: System.InvalidCastException: Object must implement IConvertible. at object Convert.ChangeType(object value, Type conversionType, IFormatProvider provider) at void GTANetworkInternals.RemoteEventParser.Parse(Player sender, ulong eventNameHash, params object[] args)

 

this error occurs

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...