Jump to content
Cease of Operations ×
GPM Site will go offline permanently on 30 November 2022 - New user registrations, support tickets disaabled. ×
  • 1.1.4 Speedzones


    Lewis121
    • Fixed
     Share

    When trying to remove a speedzone i get 3 errors, the vehicles either wont drive away, it wont let me remove speedzones, or it wont let me place a speedzone in the first place, image.thumb.png.3c62929d1ed60ee833143d95134c5416.png

     Share


    User Feedback

    Recommended Comments

    1 hour ago, A Stranger said:

    Whatever kind of MenuAPI you have running seems to be the issue. 

     

     

    All the errors contained in the console is fivepd releated, this was done on a fully plain fivepd server, 

     

    Link to comment
    Share on other sites

    • Community Administrator

    I've tried to recreate that issue and I've not been able to locate anything like this.

    Did you change any keybinds in the MDT?

    Link to comment
    Share on other sites

    1 hour ago, A Stranger said:

    I've tried to recreate that issue and I've not been able to locate anything like this.

    Did you change any keybinds in the MDT?

    no, thats the weird thing it is a fully plain nothing editied fivepd server, installed fully correctly and im still getting issues, 

     

    Link to comment
    Share on other sites

    I ran into this issue as well and came up with a list of steps that need to be taken to reproduce.

     

    Requirements:

    • 2 Players
    • FivePD v1.1.4

     

    Steps to reproduce:

    1. Player 1 places a speedzone (Speedzone 1).
    2. Player 2 places a speedzone (Speedzone 2).
    3. Player 1 deletes his own speedzone.
    4. Player 1 receives the error in the console  (Error 1).
    5. Speedzone 1 is deleted for both players.
    6. Player 2 deletes his own speedzone.
    7. Speedzone 2 is deleted for player 2, but not for player 1.
    8. Player 1 places a new speedzone (Speedzone 3).
    9. Player 1 receives another error in the console (Error 2).
    10. Scene Menu for player 1 is showing that there is a speedzone - see Screenshot 1.
    11. Player 1 deletes the new speedzone.
    12. Player 1 receives another error in the console (Error 3), this is the same exception the OP reported.

     

     

    Error 1

    Error invoking callback for event FIVEPD::_setSpeedzone: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An item with the same key has already been added.
      at System.ThrowHelper.ThrowArgumentException (System.ExceptionResource resource) [0x0000b] in <74fbbe963b7e417b8d715b858c5c584f>:0 
      at System.Collections.Generic.Dictionary`2[TKey,TValue].Insert (TKey key, TValue value, System.Boolean add) [0x0007c] in <74fbbe963b7e417b8d715b858c5c584f>:0 
      at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <74fbbe963b7e417b8d715b858c5c584f>:0 
      at ykTm3nHxlaa9ၟ⼌؟ῳc׼ր᠐ۈኆᡡቦ⾋۪᝶ᢥཪῘա؄⽀׼ἰིᾂOဖGΊ཭ٵă⽙ᢇጺྂ⾭.ykTm3nHxlaa9Ἒ؄ؓὟ⻖὾Ἶ⾳⽖Ćஂ‫ጠ֩⾿ᡒډီፕչ፼ኔዀ⺇⻛ၵ௯Ῡၐቾጩஷὒἴንጴ (System.Single Ť, System.Single ť, System.Single Ŧ, System.Int32 ŧ, System.Single Ũ, System.Int32 ũ) [0x000be] in <cb6258fa00b248c6a3b5692cc65bb65f>:0 
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <74fbbe963b7e417b8d715b858c5c584f>:0 
       --- End of inner exception stack trace ---
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <74fbbe963b7e417b8d715b858c5c584f>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <74fbbe963b7e417b8d715b858c5c584f>:0 
      at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <74fbbe963b7e417b8d715b858c5c584f>:0 
      at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <74fbbe963b7e417b8d715b858c5c584f>:0 
      at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <74fbbe963b7e417b8d715b858c5c584f>:0 
      at CitizenFX.Core.EventHandlerEntry+<Invoke>d__5.MoveNext () [0x00064] in C:\gl\builds\edf06b9b\0\cfx\fivem\code\client\clrcore\EventHandlerDictionary.cs:89 

     

    Error 2

    Error invoking callback for event FIVEPD::_deleteSpeedzone: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Sequence contains no matching element
      at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in <31b946cfddcc4ab993dd6d559e89c25f>:0 
      at ykTm3nHxlaa9ၟ⼌؟ῳc׼ր᠐ۈኆᡡቦ⾋۪᝶ᢥཪῘա؄⽀׼ἰིᾂOဖGΊ཭ٵă⽙ᢇጺྂ⾭.ykTm3nHxlaa9Ἒ؄ؓὟ⻖὾Ἶ⾳⽖Ćஂ‫ጠ֩⾿ᡒډီፕչ፼ኔዀ⺇⻛ၵ௯Ῡၐቾጩஷὒἴንጵ (System.Single Ū, System.Single ū, System.Single Ŭ) [0x000aa] in <cb6258fa00b248c6a3b5692cc65bb65f>:0 
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <74fbbe963b7e417b8d715b858c5c584f>:0 
       --- End of inner exception stack trace ---
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <74fbbe963b7e417b8d715b858c5c584f>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <74fbbe963b7e417b8d715b858c5c584f>:0 
      at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <74fbbe963b7e417b8d715b858c5c584f>:0 
      at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <74fbbe963b7e417b8d715b858c5c584f>:0 
      at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <74fbbe963b7e417b8d715b858c5c584f>:0 
      at CitizenFX.Core.EventHandlerEntry+<Invoke>d__5.MoveNext () [0x00064] in C:\gl\builds\edf06b9b\0\cfx\fivem\code\client\clrcore\EventHandlerDictionary.cs:89 

     

    Error 3

    Failed to run a tick for MenuController: System.InvalidOperationException: Sequence contains no matching element
      at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in <31b946cfddcc4ab993dd6d559e89c25f>:0 
      at ykTm3nHxlaa9ၟ⼌؟ῳc׼ր᠐ۈኆᡡቦ⾋۪᝶ᢥཪῘա؄⽀׼ἰིᾂOဖGΊ཭ٵă⽙ᢇጺྂ⾭.ykTm3nHxlaa9Ἒ؄ؓὟ⻖὾Ἶ⾳⽖Ćஂ‫ጠ֩⾿ᡒډီፕչ፼ኔዀ⺇⻛ၵ௯Ῡၐቾጩஷὒἴንጷ () [0x0001a] in <cb6258fa00b248c6a3b5692cc65bb65f>:0 
      at ykTm3nHxlaa9ၟ⼌؟ῳc׼ր᠐ۈኆᡡቦ⾋۪᝶ᢥཪῘա؄⽀׼ἰིᾂOဖGΊ཭ٵă⽙ᢇጺྂ⾩+<>c.ykTm3nHxlaa9ὒᾧழቺ۲Ὀؤྲᢉ᠍བྷŌᠰ׺L፼ቆ؅ၜཪԿፘ⻊־஁ᝒٸၱྼ௉࿭༒ா᝞ķၻ࿥ (MenuAPI.Menu ŀ, MenuAPI.MenuItem Ł, System.Int32 ł) [0x00294] in <cb6258fa00b248c6a3b5692cc65bb65f>:0 
      at MenuAPI.Menu.ItemSelectedEvent (MenuAPI.MenuItem menuItem, System.Int32 itemIndex) [0x00001] in C:\projects\menuapi\MenuAPI\Menu.cs:193 
      at MenuAPI.Menu.SelectItem (MenuAPI.MenuItem item) [0x000d1] in C:\projects\menuapi\MenuAPI\Menu.cs:752 
      at MenuAPI.Menu.SelectItem (System.Int32 index) [0x0002e] in C:\projects\menuapi\MenuAPI\Menu.cs:712 
      at MenuAPI.MenuController+<ProcessMainButtons>d__70.MoveNext () [0x000dd] in C:\projects\menuapi\MenuAPI\MenuController.cs:317 

     

    Screenshot1.png

    Edited by HB117
    • Super Like 1
    Link to comment
    Share on other sites



    Please sign in to comment

    You will be able to leave a comment after signing in



    Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Thanks for visiting GPM. As a user of the GTAPoliceMods platform, we ask that you review the Terms of Use, Privacy Policy, and Guidelines. These principles allow us to continue fostering a great community. We have placed cookies on your device to help improve your experience. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.