bundiiE Posted March 27, 2016 Share Posted March 27, 2016 So, i added new vehicle to mta dayz server , but something is wrong... In debugscript its showing ERROR [DayZ-MTA]/dayz/vehicle_spawns.lua:1337 line: bad argument #1 to 'ipars' What to do? Whats the problem? How to fix it? i did go to vehicle_spawns.lua and manage to find 1337line. Here is the code . for i, veh in ipairs(freewaySpawns) do local x, y, z = veh[1], veh[2], veh[3] veh = createVehicle(463, x, y, z) vehCol = createColSphere(x, y, z, 1.5) attachElements(vehCol, veh, 0, 0, 0) setElementData(vehCol, "parent", veh) setElementData(veh, "parent", vehCol) setElementData(vehCol, "vehicle", true) setElementData(vehCol, "MAX_Slots", 2) local tires, engine, parts = getVehicleAddonInfos(getElementModel(veh)) setElementData(vehCol, "Tire_inVehicle", math.random(0, tires)) setElementData(vehCol, "Engine_inVehicle", math.random(0, engine)) setElementData(vehCol, "Parts_inVehicle", math.random(0, parts)) setElementData(vehCol, "spawn", { 463, x, y, z }) setElementData(vehCol, "fuel", 10) end setElementData(vehCol, "fuel", 10) < this is the 1337line's code.. with this problem i cant spawn vehicles with /svp ( my friend created a /sveh /rveh script, which replaces /svp). I can spawn them, but there are some of the vehicles, not all. And in debugscript, when i enter in any car, its showing that error. how to fix? My english is not too good. ;D Close the topic, found out about the problem and fixed it. The problem was, the for i, veh in ipairs(freewaySpawns) Whoever created this DayZ gamemode, did a mistake and puted sanchezSpanws, not sanchezSpawns. I did edit the spanws, and then the problem apeared. Restored back to sanchezSpanws and it works now.. ;D Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now