[Release] Simple Loadout | Police Loadout Script

Simple Loadout Script

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:

Pictures


/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’

Download

loadout.rar (2.2 KB)

Add images please

It gives you a gun? I mean, I can add a picture of a guy holding a gun? Not much to show off here…

So there is no chat mesages?

There is… You want a picture of the chat?
Since you seem so keen, I have taken some beautiful pictures just for you <3


Thanks that what we needed

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?

Umm…? This?

ohhh… thank you! i was blind but now i see!

1 Like

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?

Is it possible to set the ammo to ex. 36. When you get your loadout, you have over 200 ammo… little unreal :smiley:

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.