https://youtu.be/ttyKBybm19U
HTML Code:
public Action spvmm(client, args) {
if (!IsModelPrecached("models/tfcs/weapon/gun/v_mach_m249para.mdl")) PrecacheModel("models/tfcs/weapon/gun/v_mach_m249para.mdl");
//new slot = GetPlayerWeaponSlot(client, 0);
//SetEntityRenderMode(slot, RENDER_TRANSCOLOR);
//SetEntityRenderColor(slot, _, _, _, 0);
new WeaponModel = GetEntPropEnt(client, Prop_Data, "m_hViewModel");
SetEntData(WeaponModel, FindSendPropOffs("CBaseCombatWeapon", "m_iWorldModelIndex"), PrecacheModel("models/tfcs/weapon/gun/w_mach_m249para.mdl"), 4, true);
SetEntData(WeaponModel, FindSendPropOffs("CBaseEntity", "m_nModelIndex"), PrecacheModel("models/tfcs/weapon/gun/v_mach_m249para.mdl"), 4, true);
SetEntProp(WeaponModel, Prop_Send, "m_nSequence", 0);
PrintToChatAll("Viewmodel Created: %d, Owner: %N", WeaponModel, client);
}
I want to remove the original viewmodel, and replace the new viewmodel.
Help!