Smile325 Posted November 13, 2019 Posted November 13, 2019 (edited) Hello, I started to make a carsystem on my server but the PlayerEnterVehicle Event does not work. I Created the Event as you can see below. Sometimes I get an error and sometimes nothing happens. Thats the error: System.Reflection.TargetParameterCountException HResult=0x8002000E Message=Parameter count mismatch. Source=System.Private.CoreLib StackTrace: at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at GTANetworkInternals.EventHandler.Parse(Event _event, Object[] arguments) Thats my event method: using System; using System.Collections.Generic; using System.Text; using GTANetworkAPI; namespace GermanSelfmadeReallife.Events { class OnPlayerEnterVehicleEvent : Script { [ServerEvent(Event.PlayerEnterVehicle)] public void OnPlayerEnterVehicle(Client player, Vehicle vehicle, sbyte seatID) { NAPI.Util.ConsoleOutput(player.Name.ToString()); } } } The parameters are correct at least according to the doku. https://wiki.gtanet.work/index.php?title=OnPlayerEnterVehicle Can anyone help me with this? Edited November 13, 2019 by Smile325
Smile325 Posted November 13, 2019 Author Posted November 13, 2019 @ragempdev maybe? I can´t figure out whats the problem is
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now