So far, all the loadout mods I’ve seen talk about a user typing a command in chat, but I was looking for something forced upon the player as they spawn in. I really hate how skins randomize and how I need to give myself all weapons everytime I die. I would code this but unfortunately my lua knowledge is limited to some ComputerCraft about 5 years ago.
So what I’m exactly looking for is a script that would make the player’s skin the blackops2 skin and automatically give all weapons at spawn. Unfortunately for the weapons, I can’t seem to find a way to give all weapons. All methods I’ve seen involve dropping each weapon one by one.
Pretty simple, actually. This would be a client-side file.
local model = GetHashKey("s_m_y_blackops_02")
local playerPed = GetPlayerPed(-1)
while not HasModelLoaded(model) do
-- GiveWeaponToPed(ped, hashOfWeapon, AmmoAmount, false)
-- Weapons: https://wiki.fivem.net/wiki/Weapons
-- Either make a for loop iterate a table of weapons, or just put each weapon on a line, like so:
GiveWeaponToPed(playerPed, GetHashKey("WEAPON_PISTOL"), 100, false)
GiveWeaponToPed(playerPed, GetHashKey("WEAPON_AUTOSHOTGUN"), 100, false)