Project Zomboid

Project Zomboid

Search Players For Weapons
Ratsmon 4. jan. 2023 kl. 23: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?
< >
Viser 1-7 af 7 kommentarer
HomelessMage 2. feb. 2023 kl. 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 5. maj 2023 kl. 16:24 
Oprindeligt skrevet af 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  [udvikler] 10. maj 2023 kl. 16:42 
Oprindeligt skrevet af Vex:
Oprindeligt skrevet af 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 12. juli 2023 kl. 11:41 
Oprindeligt skrevet af Yuri:
Oprindeligt skrevet af 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  [udvikler] 12. juli 2023 kl. 16:54 
@dotaku Absolutely
X Project 13. jan. 2024 kl. 23:04 
Oprindeligt skrevet af Vex:
Oprindeligt skrevet af 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  [udvikler] 4. mar. 2024 kl. 22:22 
The mod is now on github and accepts issues/pull requests

https://github.com/cosmo-naut/project-zomboid-search-players
< >
Viser 1-7 af 7 kommentarer
Per side: 1530 50