[REQUEST] Basic Loadout Script

I’ve been looking around for loadout scripts and its all way to complex and menus and all that… I just want simple /loadout and I will get my police loadout:

-Combat Pistol
-Tazer
-M4
-Pump Shotgun
-Fire Extinguisher
-Baton
-Flashlight

So if someone has this and I just haven’t seen it or if someone could make it, it would much appreciated. Thanks!

1 Like

Maybe use the search function next time.

https://forum.cfx.re/search?q=loadout

1 Like

already did bud thanks.
none of it is simple like I want it in the original post

Make your own, it’s not hard

Something simple like this should work, Once you get the hang of basic lua you could probably start making more things for your self.

RegisterCommand('loadout', function()
	local ped = GetPlayerPed(-1)
	GiveWeaponToPed(ped, "WEAPON_TEARGAS", 9999, true, true)
	GiveWeaponToPed(ped, "WEAPON_COMBATPISTOL", 9999, true, true)
	GiveWeaponToPed(ped, "WEAPON_STUNGUN", 9999, true, true)
	GiveWeaponToPed(ped, "WEAPON_PUMPSHOTGUN", 9999, true, true)
	GiveWeaponToPed(ped, "WEAPON_CARBINERIFLE", 9999, true, true)
	GiveWeaponToPed(ped, "WEAPON_NIGHTSTICK", 9999, true, true)
	GiveWeaponToPed(ped, "WEAPON_FLASHLIGHT", 9999, true, true)
end)
1 Like

First Post in the modding area for a script request.

Second Try this and rename the onduty command to loadout

1 Like

Perfect thanks for actually helping.

1 Like

No problem just try searching different keywords next time. As some get irritated by it.

Well how do you do that?

Very easily, want an example?

I made this for anyone still looking for one: