Simple Loadout Script is my second release here on the forums. For some reason, I had several issues while making this seemingly simple script. However, I have tested it with multiple people, and we believe it is now ready for release.
What is it?
Simple Loadout is just what the name implies. It allows your officers to use 3 different commands to get their equipment (is not currently synced to be compatible with any job systems, don’t know how to do that quite yet… So yea…). The 3 commands are:
/loadout – Gives the user a pistol with a flashlight, tazer, baton, and flashlight
/unrack (1/2) – Will unrack a rifle or shotgun (1 = Rifle, 2 = Shotgun) (Setting in loadout-c.lua that allows you toggle them to be required to be in a vehicle or not)
/rack – Will allow you to rack your weapon. Can toggle to be required to be in a vehicle or not
There are a total of 3 different settings.
displayText - Will send a message in the chat whenever a user racks/unracks a weapon
RequireInVehicleToUnrack - Requires the person be inside a vehicle to unrack weapons
RequireInVehicleToRack - Requires the person to be inside a vehicle to rack weapons
You can toggle the 3 settings in the file ‘loadout-c.lua’
so, previously i asked whether is there a way to edit the code to make it that it doesn’t announce to the entire server when someone unracks their weapon…
i realised that it still announced when someone racks their weapon… would anyone know how to disable the announcement?
I am here for you my guy! sorry this is probably getting to you late. I only just downloaded this code for myself and had to fix the very same problem. Simply remove the section I highlighted (lines 8 through 10) inside the server.lua file. This will then prevent the chat message anytime someone locks their weapon in a vehicle. Be sure to clear your cache after fixing this file or else it may continue to do so.