-
-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Suggestion] Customizable Vehicle Spawn Time Limiter #462
Comments
@ryanb9038 ive gotten it to work (for vehicles) but idk if ther are any bugs or if its the best wat to do it and use this as the convar In Common Funtions after line 26 where the Variables are add In Common Funtions around 1200 the Main Spawn Vehicle Functions replace
|
So far, this is working incredibly well. Thank you for taking the time to share this. I will publicly test this in my server and share any issues I may stumble across. I don't want to close this quite yet anyways though because I still want this to be a suggestion for this to be a feature included with vMenu. It will help many communities, particularly public ones, with trolls and spammers. Edit: To add to this suggestion, a better way to handle this would be to figure out how we can lock the buttons during the cooldown. When I go down my vehicle list really fast spamming my spawn button with a 3 second delay, fairly often it will still spawn about 3-4 cars all in a very quick succession due to the cars needing to cache in still. That is not really that big of a deal, but just another suggestion for anyone who may want to tackle the issue further. Thank you again @Ecliptedkillz for sharing this, well done! |
ok i didnt test addon vehicles when making that but i think i also fixed that issue for non cached vehicles @ryanb9038 lmk if this works for you In VehicleSpawners.cs after line 21 where the Variables are add
and at #region addon cars menu repalce it all with line 48
|
edit: might not work 100% of the time |
@Ecliptedkillz When trying to re-compile with these changes, i get this error. |
@ryanb9038 did you add the Variables |
@Ecliptedkillz I did. Copied and pasted it implemented it where you mentioned with the other variables. |
@ryanb9038 this is the whole file with your vMenu
|
I have been trying to do this myself and failed miserably. I would like to see a configurable entity spawn rate limiter specific to vehicles, built in to vMenu. If you play RSM Freeroam and spawn a vehicle, you will see they managed to do it with their custom vMenu.
The text was updated successfully, but these errors were encountered: