New bike update

the locks dont stop anyone from using the bokes or driving you can see the locks buy does nothing can you help please

While developing the feature to add locks to bikes, I tested a bike for which I was not authorized on the lock, and I could not mount it or access the fuel storage.

The most common reason that people claim this plugin doesn't work is that they are using another plugin which is conflicting, usually a plugin which is coded poorly and needs to be fixed. To troubleshoot, please unload all plugins except Vehicle Deployed Locks, then check whether you can access the locked bike. If that works as expected, then you will need to test with different combinations of plugins to determine which one is causing this conflict.

The most effective way to narrow down which plugin causes an issue is to use the "binary search" method where you load/unload half of the suspected plugins at a time (o.load and o.unload can receive multiple plugins at once), since doing one at a time can take too long.

Another thing to look out for is any mention of a hook conflict in your logs. In particular, a conflict between True and False in CanMountEntity.

ok i will look 48 plugins to go through i will be busy for a while lol thanks anyway 

The binary search approach I suggested above is very efficient. 48 plugins would require only 6 passes to identify the problem plugin.

For example, load the first 24 plugins (o.load A B C D ...). If the issue occurs in the first 24, then you have ruled out the other 24, so then unload half of them (o.unload E F G H ...). If the issue no longer occurs with those 12, then you ruled out the first 12, so then load 6 from that set.

Most likely, you don't need to do any of this, as there is probably a "hook conflict" warning already in your server logs which said what the issue was.

thanks for the info very handy as i am not that good at that kind of thing cheers 

Merged post

hi i did try what you sujested but i can not find any reason for the lock not to stop players sitting and driving away i was also watching the consol logs via rust admin and did not see any hook conflict ot anything show up as a issue it is strange i did check the perms also i must have done something wrong i will keep at it and try reinstalling the mod thank you for your help i am just strugling lol.