Deadlineem / Extras_Addon

This addon features extra tools for YimMenu that aren't already a part of the stand alone base version.
12 stars 0 forks source link

crashing when gifting car sometimes #59

Closed Ruabc123 closed 7 months ago

Ruabc123 commented 7 months ago

when i spam the gift car sometimes it crashes but if i dont spam it then it doesnt work

Deadlineem commented 7 months ago

https://www.unknowncheats.me/forum/4064307-post101.html

Working to resolve

rkwapisz commented 7 months ago

I think one issue is that you're trying to reference a player via get_selected_player(), but that function simply returns the index of whatever player is selected in the YimMenu player list. Your vehicle gifting feature doesn't use the player menu, though, so what value is it pulling?

You may need to implement a player menu inside your vehicle gifting tab to get it to work more reliably.

Deadlineem commented 7 months ago

I think one issue is that you're trying to reference a player via get_selected_player(), but that function simply returns the index of whatever play is selected in the YimMenu player list. Your vehicle gifting feature doesn't use the player menu, though, so what value is it pulling?

You may need to implement a player menu inside your vehicle gifting tab to get it to work more reliably.

The gifting system itself works, or, did before the last update. get_selected_player() is the player that you select on YimMenu itself, so thats not the problem, mainly its just bc you have to take control of the player

Deadlineem commented 7 months ago

Altered the gifting system slightly thanks to WafflesGaming on UC, this should work now and not need to be spammed.