Project Zomboid

Project Zomboid

Search Players For Weapons
Ratsmon 4 ENE 2023 a las 11:36 p. m.
Possible to add other items to search for?
Is it possible via mod settings to search for other items as well such as money?
< >
Mostrando 1-7 de 7 comentarios
HomelessMage 2 FEB 2023 a las 10:07 a. m. 
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 MAY 2023 a las 4:24 p. m. 
Publicado originalmente por 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  [desarrollador] 10 MAY 2023 a las 4:42 p. m. 
Publicado originalmente por Vex:
Publicado originalmente por 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 JUL 2023 a las 11:41 a. m. 
Publicado originalmente por Yuri:
Publicado originalmente por 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  [desarrollador] 12 JUL 2023 a las 4:54 p. m. 
@dotaku Absolutely
X Project 13 ENE 2024 a las 11:04 p. m. 
Publicado originalmente por Vex:
Publicado originalmente por 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  [desarrollador] 4 MAR 2024 a las 10:22 p. m. 
The mod is now on github and accepts issues/pull requests

https://github.com/cosmo-naut/project-zomboid-search-players
< >
Mostrando 1-7 de 7 comentarios
Por página: 1530 50