English Solved Automatic Seizure of Items in the Evidence Locker

JohnC48

User
9/5/21
8
0
100
Maxence Maxence Hello, I spoke it to you on Discord.

First of all, thank you for Creating this script, it is very well done and looks great!

I was wondering If You Could Possibly modify it for us.

The modifications I was looking to have are the Following:

- I would like to have 1 locker placed onto the map known as the "Evidence Locker". I would like all items (physical and virtual) that are seized by the police to automatically be put into this locker. I would also like to be this locker robbable by Civilians.

I have purchased the script.

If this can be done that Would Be Amazing - I am more than willing to toss you some more cash if Necessary!

My Discord: JohnC48#4211
 

Maxence

Admin
Membre du personnel
Hello ! I tried to do something, can you try it and tell me if it works ?

In your fn_seizeClient.sqf, replace :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
by these lines :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

In your fn_searchClient.sqf, replace :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
by these lines :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

Replace the 2 first lines with the informations of the locker :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
 
Dernière édition:
Solution

JohnC48

User
9/5/21
8
0
100
I just tested this and this is what I found:

  • When searching players the virtual items do not seize into the locker (I think this would be a separate script though)
  • Ammo seems to go into the stuff category and looks like this:
    S’il vous plaît, Connexion ou S'inscrire pour voir le lien !
  • Whatever illegal items are inside of your clothes dupe inside of the locker (If I put any item inside my clothing and if those items get seized by a cop, they will duplicate inside of the locker).

But other than that it works well.

We also have a script that allows cops to seize illegal items on the ground - would it be possible to add that also?

Here is that script:

S’il vous plaît, Connexion ou S'inscrire pour voir le code !
 
Dernière édition par un modérateur:

Maxence

Admin
Membre du personnel
When searching players the virtual items do not seize into the locker
I updated my reply with the modifications in the fn_searchClient.sqf

Ammo seems to go into the stuff category
All the ammos are going to this category ? Can you send me the classname of a vanilla ammo that doesn't go into the right category ?
Where was the ammo in your inventory ? Backback, clothes, weapon, other ?

they will duplicate inside of the locker
There will be 2 item instead of 1 in the locker ?

We also have a script that allows cops to seize illegal items on the ground
Replace your script by this one :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
 
Dernière édition:

JohnC48

User
9/5/21
8
0
100
I updated my reply with the modifications in the fn_searchClient.sqf


All the ammos are going to this category ? Can you send me the classname of a vanilla ammo that doesn't go into the right category ?
Where was the ammo in your inventory ? Backback, clothes, weapon, other ?


There will be 2 item instead of 1 in the locker ?


Replace your script by this one :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
Thank you very much for all the help so far, you are the best.

- Yes, all of the ammo is going into the Stuff category and not the Ammo category, which is not too big of a deal. Seems like it might just be with modded ammo.

- Yes illegal items inside of clothing will be duped when seized.
 

Maxence

Admin
Membre du personnel
Can you send me the mod of the ammo and the classname of the ammo that doesn't work ?

--

I don't really understand how items can be duplicated as they are removed from inventory, and then added to the locker.
Can you make a short video to see the problem and try to reproduce it on my side ?
 

JohnC48

User
9/5/21
8
0
100
Can you send me the mod of the ammo and the classname of the ammo that doesn't work ?

--

I don't really understand how items can be duplicated as they are removed from inventory, and then added to the locker.
Can you make a short video to see the problem and try to reproduce it on my side ?
There is a bunch of modded ammo, like a lot.

A new error we are getting now is that it says "Size of locker not big enough, can't hold many items.".

How do you increase the weight capacity of the locker?
 

JohnC48

User
9/5/21
8
0
100
Can you give me just 1 example that doesn't work (classname + mod download link) ?

You can edit the sizes of the lockers here :
Voir la pièce jointe 1962
I will increase all of those sizes and test it out. Thank you.

An example classname of modded ammo we have is "SMA_30Rnd_762x35_SS" which is for the gun "SMA_HK416afg" in this mod:
S’il vous plaît, Connexion ou S'inscrire pour voir le lien !

We also use this mod for weapons:
S’il vous plaît, Connexion ou S'inscrire pour voir le lien !

I have a google doc of every gun and ammo classname we use on our server for both of those mods if you would like to see that.
 

Maxence

Admin
Membre du personnel
Okay, so I tested on my side, it looks like ammo are considered as magazines (right) but also as vest items.
So I changed the code in the fn_seizeClient.sqf of my reply #3 to remove all the magazines for the player first, and then check the vest items (which are only items, and not magazines as they were removed).

Can you update the code and tell me if that solved the problem ?
 

JohnC48

User
9/5/21
8
0
100
Okay, so I tested on my side, it looks like ammo are considered as magazines (right) but also as vest items.
So I changed the code in the fn_seizeClient.sqf of my reply#3to remove all the magazines for the player first, and then check the vest items (which are only items, and not magazines as they were removed).

Can you update the code and tell me if that solved the problem ?
Updated it, however I am having an issue with the locker size. It does not put any items into it and it says it does not have enough space.

I edited the size like you said above.

Any other way to make it have infinite space?

This is the message and script error I get
S’il vous plaît, Connexion ou S'inscrire pour voir le lien !
 

Maxence

Admin
Membre du personnel
To remove the locker size limit, you can remove the check of the size in your @The_Programmer/addons/lockers/client/fn_lockerStoreItem.sqf by deleting this line :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

And also remove the information about the current size of the items in the locker, in your mission folder/The-Programmer/Lockers/dialogs/locker.hpp delete this control :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

About the error, when do you have this message ?
 

JohnC48

User
9/5/21
8
0
100
To remove the locker size limit, you can remove the check of the size in your @The_Programmer/addons/lockers/client/fn_lockerStoreItem.sqf by deleting this line :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

And also remove the information about the current size of the items in the locker, in your mission folder/The-Programmer/Lockers/dialogs/locker.hpp delete this control :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

About the error, when do you have this message ?
I will do these changes now and test it out.

The error occurred when we seized illegal items off the ground. But it occurs when we try to seize any gear or weapons.
 
Activité
Pour l'instant, il n'y a personne ici