hello i was working and i have lost the code wich made a car spawn with damaged doors and windows. it was done with nativefunction. can someone help me? i have decompied my own code wich contains that part. here it is:
NativeFunction.CallByName<uint>("SMASH_VEHICLE_WINDOW", new NativeArgument[2]
{
NativeArgument.op_Implicit((IHandleable) this.victim),
NativeArgument.op_Implicit(0)
});
NativeFunction.CallByName<uint>("SMASH_VEHICLE_WINDOW", new NativeArgument[2]
{
NativeArgument.op_Implicit((IHandleable) this.victim),
NativeArgument.op_Implicit(1)
});
NativeFunction.CallByName<uint>("SMASH_VEHICLE_WINDOW", new NativeArgument[2]
{
NativeArgument.op_Implicit((IHandleable) this.victim),
NativeArgument.op_Implicit(-1)
});
NativeFunction.CallByName<uint>("SET_VEHICLE_DOOR_OPEN", new NativeArgument[4]
{
NativeArgument.op_Implicit((IHandleable) this.victim),
NativeArgument.op_Implicit(5),
NativeArgument.op_Implicit(true),
NativeArgument.op_Implicit(true)
});
NativeFunction.CallByName<uint>("SET_VEHICLE_DOOR_OPEN", new NativeArgument[4]
{
NativeArgument.op_Implicit((IHandleable) this.victim),
NativeArgument.op_Implicit(3),
NativeArgument.op_Implicit(true),
NativeArgument.op_Implicit(true)
});