Jump to content

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


Recommended Posts



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

  • 1 year later...

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