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
Syntasu
February 11, 2018, 7:07pm
2
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
Rox10
February 12, 2018, 6:11am
4
Make your own, it’s not hard
Envious
February 12, 2018, 7:01am
5
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
FAXES
February 12, 2018, 7:59am
6
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
FAXES
February 12, 2018, 10:32pm
8
No problem just try searching different keywords next time. As some get irritated by it.
Very easily, want an example?
ECLIP3S
January 10, 2019, 1:32am
11
I made this for anyone still looking for one:
Simple Loadout Script
Simple Loadout Script is a easy to use and install loadout script made by ECLIP3S. All you have to do is install and type /loadout in game. Keep in mind this is my first release so please go easy on me.
Loadout:
Tear Gas
Combat Pistol
Carbine Rifle
Pump Shotgun
Stun Gun
Nightstick
Flashlight
Installation and Usage
Download the script here
Rename ‘loadouts-master’ to ‘loadouts’
Add the following line to your server.cfg:
start loadouts
Restart your server
Af…