function on_xml_read() RegisterScriptCallback("on_xml_read", function(xml_file_name, xml_obj) local xml_to_change = [[gameplay\npc_profile_mlr.xml]] if xml_file_name == xml_to_change then local renegade_profile = [[ mar_renegade_trader mar_renegade_trader mar_renegade_mechanic mar_renegade_mechanic ]] xml_obj:insertFromXMLString(renegade_profile) end end) end