Police VehiclesSuggestion

Hi,

A question / suggestion - always liked the idea behind Police Vehicles, a free (but dead) plugin hosted on Codefling and wondered if implementing a permission based option for spawning such vehicles would be within the scope of this plugin. Even simply one or two vehicles with added red + blue flasher lights. The other plugin depends on Spawnmodular Car

I have never written a plugin before but am looking into the possiblity of learning and using the outdated police vehicles plugin as a base to work from and losing the dependency of "Spawn modular Car" and hopefully some of the functionality of Vehicle License instead.

Anyhow, we use vehicle license on our server and it is excellent for us, as always. Can't say how much we appreciate the excellent work and clear updates, many thanks!

If you have the time and will to give any info or thoughts on this idea it would be nice.

Even some slight advice to point me in the right direction if you are not interested in the idea.

Best regards,

Mankysieve

I can look into this further when I get the time, but that whole plugin is kinda a mess lol, went through it and removed a bunch of random shit that was there but with no purpose. Example being ``player.UserIDString.ToString()`` dudes converting strings into strings.

I also don't believe that we have the supporting API for the plugin, you'd have to basically force call it, and I don't believe it supports that either. I also don't plan on supporting this myself as that is a lot more work that I honestly do not feel like doing for just Police Vehicles, though I do understand that implementing the API would potentially be beneficial for other plugins, I just don't want to put that much work into that. If you can find someone who's willing to do it for you, have them submit a patch and I wouldn't mind adding it, but personally I don't plan on doing it.

 

Theres not much advice I can really give considering we don't use any api that can do the same thing that the one Police Vehicles uses. You *may* be able to set a type of car in the config, and call the command to spawn said car somehow from the other plugin, but not 100% sure.

Hi Violation Handler,

Thank you for taking a look into this and even considering it.

Its unfortunate the plugin I referenced is such a mess, I'm really grateful I did not have to spend many weeks learning only to realise this!  I would never have known at a look through it.

 

If I can get somebody experienced to assist me and implement the API I'll be in touch about submitting a patch, thanks!

I appreciate the advice  regardless, I will look into it.

 

Keep on doing the good stuff that you do,

Cheers,

Mankysieve

Howdy, and yea no problem man, I very well could be wrong, but I do know that our spawning format is different, but it may be able to be substituted somehow in a strange fashion, but I unfortunately do not have the time to look into it and figure out a work around for it to work properly.

I will say that VehicleLicence is also probably somewhat messy as well tbh, its obviously not gonna be perfect, especially since theres been mutliple maintainers over the years doing their own thing in their own way each time, so its kinda bound to get a little messy. If I happen to get some more time over the next couple of months I'll try to remember to check it out and look into it.

Someone else mentioned wanting to get Water Bikes to be able to spawn in via VehicleLicence, so I may eventually look into ability to spawn custom vehicles from other plugins via this plugin, just not sure on whether or not it'd actually be useful or not, or how it'd be used. Will be something I look into eventually hopefully. 

Well, I hope you find someone regardless to help you, always nice to have someone you can ask questions about stuff you don't understand. :) And np, hope it helps in some way! Also good luck if/when you eventually do find a big brainer who can help lol

 

Thanks gamer, I appreciate the kinds words :)