Project Zomboid

Project Zomboid

Search Players For Weapons
Ratsmon 2023 年 1 月 4 日 下午 11:36
Possible to add other items to search for?
Is it possible via mod settings to search for other items as well such as money?
< >
正在显示第 1 - 7 条,共 7 条留言
HomelessMage 2023 年 2 月 2 日 上午 10:07 
Locate the file media/lua/client/SearchPlayerClient.lua
and change the predicateWeapon function:
local function predicateWeapon(item) return item:isInPlayerInventory() end
This way the UI will show all items in player's inventory.
Vex 2023 年 5 月 5 日 下午 4:24 
引用自 HomelessMage
Locate the file media/lua/client/SearchPlayerClient.lua
and change the predicateWeapon function:
local function predicateWeapon(item) return item:isInPlayerInventory() end
This way the UI will show all items in player's inventory.

will that also change it for everyone else in the MP server or do they have to do it themselves top
Yuri  [开发者] 2023 年 5 月 10 日 下午 4:42 
引用自 Vex
引用自 HomelessMage
Locate the file media/lua/client/SearchPlayerClient.lua
and change the predicateWeapon function:
local function predicateWeapon(item) return item:isInPlayerInventory() end
This way the UI will show all items in player's inventory.

will that also change it for everyone else in the MP server or do they have to do it themselves top

That will only do it for you unless you copy that mod folder, make the changes you want and then upload it privately on steam workshop and point your server to that one instead of my one
Relentless Chef 2023 年 7 月 12 日 上午 11:41 
引用自 Yuri
引用自 Vex

will that also change it for everyone else in the MP server or do they have to do it themselves top

That will only do it for you unless you copy that mod folder, make the changes you want and then upload it privately on steam workshop and point your server to that one instead of my one
May I have permission to modify your code and then post it privately? I have a server and would like to implement this.
Yuri  [开发者] 2023 年 7 月 12 日 下午 4:54 
@dotaku Absolutely
X Project 2024 年 1 月 13 日 下午 11:04 
引用自 Vex
引用自 HomelessMage
Locate the file media/lua/client/SearchPlayerClient.lua
and change the predicateWeapon function:
local function predicateWeapon(item) return item:isInPlayerInventory() end
This way the UI will show all items in player's inventory.

will that also change it for everyone else in the MP server or do they have to do it themselves top

hello friend, i want to use this and like the other person, searching for another item, buat i cant find the media/lua/client/SearchPlayerClient.lua
and change the predicateWeapon function, can you help me?
Yuri  [开发者] 2024 年 3 月 4 日 下午 10:22 
The mod is now on github and accepts issues/pull requests

https://github.com/cosmo-naut/project-zomboid-search-players
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50