//Source
// Dosent work if the hands are in the weapon model.
// Because i can.
local me = LocalPlayer()
local YourHackName = {}
YourHackName.Detours = {}
function YourHackName:Detour( Old, New )
NH.Detours[New] = Old
return New
end
// Not allowed, sorry.
r['Player']['GetHands'] = YourHackName:Detour( r['Player']['GetHands'], function( ent )
if ( ent == me ) then
return nil;
end
return YourHackName.Detours[r['Player']['GetHands']]( ent );
end )
// Preventing Skidieness
r['Player']['SetHands'] = YourHackName:Detour( r['Player']['SetHands'], function( ent, model )
if ( ent == me ) then
return nil;
end
return YourHackName.Detours[r['Player']['SetHands']]( ent, model );
end )
// Incase of different coding.
r['Player']['GetHandsModel'] = YourHackName:Detour( r['Player']['GetHandsModel'], function( ent )
if ( ent == me ) then
return nil;
end
return YourHackName.Detours[r['Player']['GetHandsModel']]( ent );
end )