Turbesz Posted June 29, 2021 Share Posted June 29, 2021 i use xmldata script to save datas to xml file, but now does not work... the file was created successfully, but i cant load the datas from the xml file. local xml = exports.xmldata function save() local veh = getPedOccupiedVehicle(localPlayer) local hand = getVehicleHandling(veh) xml:xmlSaveData("asd", hand, false,true) end addCommandHandler("test",save) function loadx () local saved = xml:xmlLoadData ( "asd", false, true) for k, v in ipairs(saved) do outputChatBox(v) end end addCommandHandler("load",loadx) And i want to save more than one handling to xml file, but i can insert only 1 to the file, when i try to save another one then overwrites the previous one... what wrong? how can i load the data, and insert more handling to the file? Link to comment
Turbesz Posted June 29, 2021 Author Share Posted June 29, 2021 i found a solution, this topic can be locked/moved Link to comment
Recommended Posts