Ped & Loadout Builder
/command
Clothing Components
Props
Weapon Loadout
Ped & Loadout Script
client.lua — model + clothing + weapons
setcop_ped.lua
s_m_y_cop_01-- Vangtech NZ — Ped & Loadout: Police Officer
RegisterCommand('setcop', function()
local ped = PlayerPedId()
local model = GetHashKey('s_m_y_cop_01')
RequestModel(model)
while not HasModelLoaded(model) do Wait(10) end
SetPlayerModel(PlayerId(), model)
ped = PlayerPedId()
SetModelAsNoLongerNeeded(model)
-- Clothing components
SetPedComponentVariation(ped, 11, 0, 0, 0)
SetPedComponentVariation(ped, 4, 35, 0, 0)
SetPedComponentVariation(ped, 6, 25, 0, 0)
-- Props (hats, glasses)
SetPedPropIndex(ped, 0, 46, 0, true)
-- Weapon loadout
GiveWeaponToPed(ped, GetHashKey('weapon_pistol'), 250, false, true)
GiveWeaponToPed(ped, GetHashKey('weapon_stungun'), 250, false, true)
end, false)