mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
commit
fc118d112d
@ -258,9 +258,18 @@ do
|
|||||||
elseif pace.IsActive() then
|
elseif pace.IsActive() then
|
||||||
pac.Message("not wearing autoload outfit, editor is open")
|
pac.Message("not wearing autoload outfit, editor is open")
|
||||||
else
|
else
|
||||||
pac.Message("Wearing autoload...")
|
local autoload_file = "autoload"
|
||||||
pace.LoadParts("autoload")
|
local autoload_result = hook.Run("PAC3Autoload", autoload_file)
|
||||||
pace.WearParts()
|
|
||||||
|
if autoload_result ~= false then
|
||||||
|
if isstring(autoload_result) then
|
||||||
|
autoload_file = autoload_result
|
||||||
|
end
|
||||||
|
|
||||||
|
pac.Message("Wearing " .. autoload_file .. "...")
|
||||||
|
pace.LoadParts(autoload_file)
|
||||||
|
pace.WearParts()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
pac.RemoveHook("Think", "pac_request_outfits")
|
pac.RemoveHook("Think", "pac_request_outfits")
|
||||||
|
Loading…
Reference in New Issue
Block a user