The unauthorized turret is being removedNot An Issue

currently, if you take a hammer in your hand, you can take the turret from the car even without the privilege of the building

"EnableTurretPickup": false,

You are probably experiencing a hook conflict for CanPickupEntity. Can you check your logs to see if a warning is appearing for that hook? That should show the name of the conflicting plugin. Most likely, the other plugin is returning true when they should be returning null in order to indicate that they don't care about whether the turret can be picked up.

Calling hook CanPickupEntity resulted in a conflict between the following plugins: CarTurrets - False (Boolean), IQGuardianDrone (True (Boolean))

Calling hook CanPickupEntity resulted in a conflict between the following plugins: TurretsExtended - False (Boolean), XFarmRoom (True (Boolean))

please tell me what you need to solve this problem?

 

Car Turrets is doing the correct thing. It is telling the framework to disallow pickup. Those other plugins are telling the framework to force allow pickup, but they shouldn't. They should tell the framework that they don't want to dictate the outcome for this entity, which is done by returning null, which will not be considered a conflict.

IQGuardianDrone plugin should return null when the turret is not parented to a drone/sphere. It should probably also return null in every case where it's currently returning true.

TurretsExtended should return null when the turret is parented to another entity. It should probably also return null in every case where it's currently returning true.

XFarmRoom should return null for turrets. It should probably also return null in every case where it's currently returning true.

Thanks for the clarification!

Locked automatically