插件介绍
允许玩家将密码锁和钥匙锁部署到车辆上
Note: In addition to being able to deploy locks directly, you can also use the following commands if you are close to a vehicle and not building blocked. These are useful if you have one of the free permissions but don't have a lock in your inventory.
The following permissions allow players to deploy code locks to vehicles.
The following permissions allow players to deploy key locks to vehicles.
Plugins can call these APIs to deploy a lock onto a supported vehicle. The BasePlayer parameter is optional, but providing it is recommended as it allows for potential compatibility with auto-lock plugins, and allows the player to access the key lock without a key.
主要用途
主要用于vehicle、lock、codelock等服务端功能。 本插件由 WhiteThunder 发布,当前目录记录版本为 v1.14.2,uMod 累计下载 61,600 次。
适用场景
- 希望扩展原版服务器功能的服主
功能分类
查看 uMod 官方英文简介
Allows players to deploy code locks and key locks onto vehicles
权限节点
vehicledeployedlocks.masterkeyAllows the player to open any lock managed by this plugin, useful for allowing admins access to locked vehicles.
vehicledeployedlocks.codelock.freeAllows the player to deploy code locks to vehicles without consuming locks or resources from their inventory.
The following permissions allow players to deploy code locks to vehicles.
vehicledeployedlocks.codelock.allvehicles (all in one)
vehicledeployedlocks.codelock.attackhelicopter
vehicledeployedlocks.codelock.chinook
vehicledeployedlocks.codelock.duosub
vehicledeployedlocks.codelock.hotairballoon
vehicledeployedlocks.codelock.kayak
vehicledeployedlocks.codelock.locomotive
vehicledeployedlocks.codelock.magnetcrane
vehicledeployedlocks.codelock.minicopter
vehicledeployedlocks.codelock.modularcar
vehicledeployedlocks.codelock.motorbike.sidecar
vehicledeployedlocks.codelock.motorbike
vehicledeployedlocks.codelock.pedalbike
vehicledeployedlocks.codelock.pedaltrike
vehicledeployedlocks.codelock.ptboat
vehicledeployedlocks.codelock.rhib
vehicledeployedlocks.codelock.ridablehorse
vehicledeployedlocks.codelock.rowboat
vehicledeployedlocks.codelock.scraptransport
vehicledeployedlocks.codelock.sedan
vehicledeployedlocks.codelock.sedanrail
vehicledeployedlocks.codelock.snowmobile
vehicledeployedlocks.codelock.solosub
vehicledeployedlocks.codelock.tomaha
vehicledeployedlocks.codelock.tugboat
vehicledeployedlocks.codelock.workcart
vehicledeployedlocks.codelock.workcartaboveground
vehicledeployedlocks.codelock.workcartcovered
vehicledeployedlocks.keylock.freeAllows the player to deploy key locks to vehicles without consuming locks or resources from their inventory.
The following permissions allow players to deploy key locks to vehicles.
vehicledeployedlocks.keylock.allvehicles (all in one)
vehicledeployedlocks.keylock.attackhelicopter
vehicledeployedlocks.keylock.chinook
vehicledeployedlocks.keylock.duosub
vehicledeployedlocks.keylock.hotairballoon
vehicledeployedlocks.keylock.kayak
vehicledeployedlocks.keylock.locomotive
vehicledeployedlocks.keylock.magnetcrane
vehicledeployedlocks.keylock.minicopter
vehicledeployedlocks.keylock.modularcar
vehicledeployedlocks.keylock.motorbike.sidecar
vehicledeployedlocks.keylock.motorbike
vehicledeployedlocks.keylock.pedalbike
vehicledeployedlocks.keylock.pedaltrike
vehicledeployedlocks.keylock.ptboat
vehicledeployedlocks.keylock.rhib
vehicledeployedlocks.keylock.ridablehorse
vehicledeployedlocks.keylock.rowboat
vehicledeployedlocks.keylock.scraptransport
vehicledeployedlocks.keylock.sedan
vehicledeployedlocks.keylock.sedanrail
vehicledeployedlocks.keylock.snowmobile
vehicledeployedlocks.keylock.solosub
vehicledeployedlocks.keylock.tomaha
vehicledeployedlocks.keylock.tugboat
vehicledeployedlocks.keylock.workcart
vehicledeployedlocks.keylock.workcartaboveground
vehicledeployedlocks.keylock.workcartcovered
授权示例:oxide.grant user 玩家名 权限节点;撤销使用 oxide.revoke。
指令说明
Note: In addition to being able to deploy locks directly, you can also use the following commands if you are close to a vehicle and not building blocked. These are useful if you have one of the free permissions but don't have a lock in your inventory.
vehiclecodelock (or vcodelock, vlock) -- Deploy a code lock to the vehicle you are aiming at.
vehiclekeylock (or vkeylock) -- Deploy a key lock to the vehicle you are aiming at.
相关依赖
- Clans
- Friends
- Car Lock UI
- Car Turrets
- Mega Drones
- Spawn Modular Car
配置说明
{ "Allow NPCs to bypass locks": false, "Allow deploying locks onto unowned vehicles": true, "Allow deploying locks onto vehicles owned by teammates": false, "Allow deploying locks onto vehicles owned by other players": false, "Require cupboard auth to deploy locks onto unowned vehicles": false, "Auto claim unowned vehicles when deploying locks": false, "Auto replace vehicle ownership when deploying locks": false, "Allow pushing vehicles while locked out": true, "Cooldown to auto craft locks (seconds)": 10.0, "Modular car settings": { "Allow editing while locked out": true }, "Lock sharing settings": { "Clan": false, "Clan or ally": false, "Friends": false, "Team": false }, "Auto unlock idle vehicles": { "Enabled": false, "Unlock after idle time (seconds)": 3600.0, "Check interval seconds": 300.0, "Exempt owned vehicles": true, "Exempt vehicles near cupboards": true } }
Allow NPCs to bypass locks (true or false) -- Whether to allow NPCs to bypass vehicle locks.
Allow deploying locks onto unowned vehicles (true or false) -- Whether to allow players to deploy a lock onto a vehicle that has no owner (i.e., OwnerID is 0), which usually describes vehicles that spawned naturally in the world, though some plugins may spawn vehicles with no owner as well. Note: Vehicles spawned at NPC vendors have no owner by default, unless set by a plugin such as Vehicle Vendor Options. You can also use the Claim Vehicle plugin to allow players to claim unowned vehicles with an optional cooldown.
Allow deploying locks onto vehicles owned by teammates (true or false) -- Whether to allow players to deploy a lock onto a vehicle owned by a teammate. Note: This setting is effectively true while Allow deploying locks onto vehicles owned by other players is true.
Allow deploying locks onto vehicles owned by other players (true or false) -- Whether to allow players to deploy a lock onto a vehicle owned by someone else (i.e., a vehicle whose OwnerID is a different player's Steam ID). Such vehicles are likely spawned by a plugin, or a plugin allowed the player to claim that vehicle. This is false by default to protect owned vehicles from having locks deployed onto them by others. Note: Regardless of this setting, if the owner leaves a code lock unlocked, another player can still lock it with a custom code to lock out the owner.
Require cupboard auth to deploy locks onto unowned vehicles (true or false) -- Whether to require players to be within TC radius to deploy a lock onto an unowned vehicle.
Auto claim unowned vehicles when deploying locks (true or false -- Whether to automatically assign vehicle ownership to the player deploying the lock, if the vehicle is not already owned.
Auto replace vehicle ownership when deploying locks (true or false) -- Whether to automatically assign vehicle ownership to the player deploying the lock, if the vehicle is already owned.
Allow pushing vehicles while locked out (true or false) -- Whether to allow players to push a vehicle while they are not authorized to the vehicle's lock. This is true by default to be consistent with vanilla behavior.
Cooldown to auto craft locks (seconds) -- Cooldown for players to craft a lock if they don't have one in their inventory. Since players can pickup vehicle-deployed locks (by design), this cooldown prevents players from effectively making locks faster than they could normally craft them. Configure this based on the crafting speed of locks on your server.
Modular car settingsAllowEditingWhileLockedOutWhether to allow players to edit a car at a lift while they are not authorized to the car's lock. This is true by default to be consistent with the vanilla car locks which allow players to edit the car (which likely allows removal of the lock). Setting this to false will make it impossible for unauthorized players to edit the car.
Lock sharing settings (each true or false) -- Whether to allow players to bypass locks placed by their clanmates, ally clanmates, friends or teammates.
Auto unlock idle vehiclesSettings to automatically detect idle vehicles and unlock them.Enabled (true or false) -- While true, vehicles will periodically be checked for idleness and potentially unlocked.Unlock after idle time (seconds) -- Determines how long after a vehicle has been used that it will be considered idle. Supports all vehicles except Sedan which does not track activity information in vanilla.Check interval seconds -- How often to check vehicles for idleness.Exempt owned vehicles -- While true, owned vehicles are exempt from idleness checks.Exempt vehicles near cupboards -- While true, vehicles near TCs are exempt from idleness checks.
AllowEditingWhileLockedOutWhether to allow players to edit a car at a lift while they are not authorized to the car's lock. This is true by default to be consistent with the vanilla car locks which allow players to edit the car (which likely allows removal of the lock). Setting this to false will make it impossible for unauthorized players to edit the car.
Enabled (true or false) -- While true, vehicles will periodically be checked for idleness and potentially unlocked.
Unlock after idle time (seconds) -- Determines how long after a vehicle has been used that it will be considered idle. Supports all vehicles except Sedan which does not track activity information in vanilla.
Check interval secondsHow often to check vehicles for idleness.
Exempt owned vehiclesWhile true, owned vehicles are exempt from idleness checks.
Exempt vehicles near cupboardsWhile true, vehicles near TCs are exempt from idleness checks.
官方配置示例
{
"Allow NPCs to bypass locks": false,
"Allow deploying locks onto unowned vehicles": true,
"Allow deploying locks onto vehicles owned by teammates": false,
"Allow deploying locks onto vehicles owned by other players": false,
"Require cupboard auth to deploy locks onto unowned vehicles": false,
"Auto claim unowned vehicles when deploying locks": false,
"Auto replace vehicle ownership when deploying locks": false,
"Allow pushing vehicles while locked out": true,
"Cooldown to auto craft locks (seconds)": 10.0,
"Modular car settings": {
"Allow editing while locked out": true
},
"Lock sharing settings": {
"Clan": false,
"Clan or ally": false,
"Friends": false,
"Team": false
},
"Auto unlock idle vehicles": {
"Enabled": false,
"Unlock after idle time (seconds)": 3600.0,
"Check interval seconds": 300.0,
"Exempt owned vehicles": true,
"Exempt vehicles near cupboards": true
}
}{
"Generic.Error.NoPermission": "You don't have permission to do that.",
"Generic.Error.BuildingBlocked": "Error: Cannot do that while building blocked.",
"Generic.Error.Cooldown": "Please wait <color=red>{0}s</color> and try again.",
"Generic.Error.VehicleLocked": "That vehicle is locked.",
"Deploy.Error.NoVehicleFound": "Error: No vehicle found.",
"Deploy.Error.VehicleDead": "Error: That vehicle is dead.",
"Deploy.Error.Other": "Error: You cannot do that.",
"Deploy.Error.DifferentOwner": "Error: Someone else owns that vehicle.",
"Deploy.Error.NoOwner": "Error: You do not own that vehicle.",
"Deploy.Error.NoOwner.NoBuildingPrivilege": "Error: Locking unowned vehicles requires building privilege.",
"Deploy.Error.HasLock": "Error: That vehicle already has a lock.",
"Deploy.Error.InsufficientResources": "Error: Not enough resources to craft a {0}.",
"Deploy.Error.Mounted": "Error: That vehicle is currently occupied.",
"Deploy.Error.ModularCar.NoCockpit": "Error: That car needs a cockpit module to receive a lock.",
"Deploy.Error.Distance": "Error: Too far away."
}更新日志
本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面。
安装方法
- 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
- 登录本站后点击"下载",由 uMod 官方地址获取作者发布的文件。
- 将 .cs 文件放入服务器的
oxide/plugins目录。 - 观察服务端控制台,确认插件编译并成功加载。
- 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。
使用前注意
- Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
- 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
- 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
- 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。