Clay Posted February 8, 2017 Share Posted February 8, 2017 need to 700 height Water = {{-2998.0,-2998.0,5.0,-2500.0,-2998.0,5.0,-2998.0,-2500.0,5.0,-2500.0,-2500.0,5.0}, {-2998.0,-2500.0,5.0,-2500.0,-2500.0,5.0,-2998.0,-2000.0,5.0,-2500.0,-2000.0,5.0}, {-2998.0,-2000.0,5.0,-2500.0,-2000.0,5.0,-2998.0,-1500.0,5.0,-2500.0,-1500.0,5.0}, {-2998.0,-1500.0,5.0,-2500.0,-1500.0,5.0,-2998.0,-1000.0,5.0,-2500.0,-1000.0,5.0}, {-2998.0,-1000.0,5.0,-2500.0,-1000.0,5.0,-2998.0,-500.0,5.0,-2500.0,-500.0,5.0}, {-2998.0,-500.0,5.0,-2500.0,-500.0,5.0,-2998.0,0.0,5.0,-2500.0,0.0,5.0}, {-2998.0,0.0,5.0,-2500.0,0.0,5.0,-2998.0,500.0,5.0,-2500.0,500.0,5.0}, {-2998.0,500.0,5.0,-2500.0,500.0,5.0,-2998.0,1000.0,5.0,-2500.0,1000.0,5.0}, {-2998.0,1000.0,5.0,-2500.0,1000.0,5.0,-2998.0,1500.0,5.0,-2500.0,1500.0,5.0}, {-2998.0,1500.0,5.0,-2500.0,1500.0,5.0,-2998.0,2000.0,5.0,-2500.0,2000.0,5.0}, {-2998.0,2000.0,5.0,-2500.0,2000.0,5.0,-2998.0,2500.0,5.0,-2500.0,2500.0,5.0,}, {-2998.0,2500.0,5.0,-2500.0,2500.0,5.0,-2998.0,2998.0,5.0,-2500.0,2998.0,5.0}, {-2500.0,-2998.0,5.0,-2000.0,-2998.0,5.0,-2500.0,-2500.0,5.0,-2000.0,-2500.0,5.0}, {-2500.0,-2500.0,5.0,-1500.0,-2500.0,5.0,-2500.0,-1500.0,5.0,-1500.0,-1500.0,5.0}, {-2500.0,-1500.0,5.0,-2000.0,-1500.0,5.0,-2500.0,-1000.0,5.0,-2000.0,-1000.0,5.0}, {-2500.0,-1000.0,5.0,-2000.0,-1000.0,5.0,-2500.0,-500.0,5.0,-2000.0,-500.0,5.0}, {-2500.0,-500.0,5.0,-2000.0,-500.0,5.0,-2500.0,0.0,5.0,-2000.0,0.0,5.0}, {-2500.0,0.0,5.0,-2000.0,0.0,5.0,-2500.0,500.0,5.0,-2000.0,500.0,5.0}, {-2500.0,500.0,5.0,-2000.0,500.0,5.0,-2500.0,1000.0,5.0,-2000.0,1000.0,5.0}, {-2500.0,1000.0,5.0,-2000.0,1000.0,5.0,-2500.0,1500.0,5.0,-2000.0,1500.0,5.0}, {-2500.0,1500.0,5.0,-2000.0,1500.0,5.0,-2500.0,2000.0,5.0,-2000.0,2000.0,5.0}, {-2500.0,2000.0,5.0,-2000.0,2000.0,5.0,-2500.0,2500.0,5.0,-2000.0,2500.0,5.0}, {-2500.0,2500.0,5.0,-2000.0,2500.0,5.0,-2500.0,2998.0,5.0,-2000.0,2998.0,5.0}, {-2000.0,-2998.0,5.0,-1500.0,-2998.0,5.0,-2000.0,-2500.0,5.0,-1500.0,-2500.0,5.0}, {-2000.0,-1500.0,5.0,-1800.0,-1500.0,5.0,-2000.0,-1000.0,5.0,-1800.0,-1000.0,5.0}, {-2000.0,-1000.0,5.0,-1800.0,-1000.0,5.0,-2000.0,-500.0,5.0,-1800.0,-500.0,5.0}, {-2000.0,-500.0,5.0,-1500.0,-500.0,5.0,-2000.0,0.0,5.0,-1500.0,0.0,5.0}, {-2000.0,0.0,5.0,-1500.0,0.0,5.0,-2000.0,500.0,5.0,-1500.0,500.0,5.0}, {-2000.0,500.0,5.0,-1500.0,500.0,5.0,-2000.0,1000.0,5.0,-1500.0,1000.0,5.0}, {-2000.0,1000.0,5.0,-1500.0,1000.0,5.0,-2000.0,1500.0,5.0,-1500.0,1500.0,5.0}, {-2000.0,1500.0,5.0,-1500.0,1500.0,5.0,-2000.0,2000.0,5.0,-1500.0,2000.0,5.0}, {-2000.0,2000.0,5.0,-1500.0,2000.0,5.0,-2000.0,2500.0,5.0,-1500.0,2500.0,5.0}, {-2000.0,2500.0,5.0,-1500.0,2500.0,5.0,-2000.0,2998.0,5.0,-1500.0,2998.0,5.0}, {-1500.0,-2998.0,5.0,-1000.0,-2998.0,5.0,-1500.0,-2500.0,5.0,-1000.0,-2500.0,5.0}, {-1500.0,-2500.0,5.0,-1000.0,-2500.0,5.0,-1500.0,-2000.0,5.0,-1000.0,-2000.0,5.0}, {-1500.0,-2000.0,5.0,-1000.0,-2000.0,5.0,-1500.0,-1500.0,5.0,-1000.0,-1500.0,5.0}, {-1600.0,-1500.0,5.0,-980.0,-1500.0,5.0,-1600.0,-1330.0,5.0,-980.0,-1330.0,5.0}, {-1500.0,-500.0,5.0,-1130.0,-500.0,5.0,-1500.0,0.0,5.0,-1130.0,0.0,5.0}, {-1500.0,0.0,5.0,-1080.0,0.0,5.0,-1500.0,500.0,5.0,-1080.0,500.0,5.0}, {-1500.0,500.0,5.0,-1040.0,500.0,5.0,-1500.0,1000.0,5.0,-1040.0,1000.0,5.0}, {-1500.0,1000.0,5.0,-1000.0,1000.0,5.0,-1500.0,1500.0,5.0,-1000.0,1500.0,5.0}, {-1500.0,1500.0,5.0,-1000.0,1500.0,5.0,-1500.0,2000.0,5.0,-1000.0,2000.0,5.0}, {-1500.0,2000.0,5.0,-1000.0,2000.0,5.0,-1500.0,2500.0,5.0,-1000.0,2500.0,5.0}, {-1500.0,2500.0,5.0,-1000.0,2500.0,5.0,-1500.0,2998.0,5.0,-1000.0,2998.0,5.0}, {-1000.0,-2998.0,5.0,-500.0,-2998.0,5.0,-1000.0,-2500.0,5.0,-500.0,-2500.0,5.0}, {-1000.0,-2500.0,5.0,-500.0,-2500.0,5.0,-1000.0,-2000.0,5.0,-500.0,-2000.0,5.0}, {-1000.0,-2000.0,5.0,-500.0,-2000.0,5.0,-1000.0,-1500.0,5.0,-500.0,-1500.0,5.0}, {-800.0,-1500.0,5.0,-500.0,-1500.0,5.0,-800.0,-1000.0,5.0,-500.0,-1000.0,5.0}, {-800.0,-1000.0,5.0,-500.0,-1000.0,5.0,-800.0,-500.0,5.0,-500.0,-500.0,5.0}, {-850.0,-500.0,5.0,-500.0,-500.0,5.0,-850.0,0.0,5.0,-500.0,0.0,5.0}, {-670.0,0.0,5.0,-500.0,0.0,5.0,-670.0,500.0,5.0,-500.0,500.0,5.0}, {-670.0,500.0,5.0,-500.0,500.0,5.0,-670.0,610.0,5.0,-500.0,610.0,5.0}, {742.0,1078.0,5.0,1000.0,1078.0,5.0,742.0,1230.0,5.0,1000.0,1230.0,5.0}, {-1000.0,1500.0,5.0,-500.0,1500.0,5.0,-1000.0,2000.0,5.0,-500.0,2000.0,5.0}, {-1000.0,2000.0,5.0,-500.0,2000.0,5.0,-1000.0,2500.0,5.0,-500.0,2500.0,5.0}, {-1000.0,2500.0,5.0,-500.0,2500.0,5.0,-1000.0,2998.0,5.0,-500.0,2998.0,5.0}, {-500.0,-2998.0,5.0,0.0,-2998.0,5.0,-500.0,-2500.0,5.0,0.0,-2500.0,5.0}, {-500.0,-2500.0,5.0,0.0,-2500.0,5.0,-500.0,-2000.0,5.0,0.0,-2000.0,5.0}, {-500.0,-2000.0,5.0,0.0,-2000.0,5.0,-500.0,-1500.0,5.0,0.0,-1500.0,5.0}, {-500.0,-1500.0,5.0,0.0,-1500.0,5.0,-500.0,-1450.0,5.0,0.0,-1450.0,5.0}, {-500.0,-1500.0,5.0,-210.0,-1500.0,5.0,-500.0,-1060.0,5.0,-210.0,-1060.0,5.0}, {-500.0,-1060.0,5.0,0.0,-1060.0,5.0,-500.0,-500.0,5.0,0.0,-500.0,5.0}, {-500.0,-500.0,5.0,0.0,-500.0,5.0,-500.0,0.0,5.0,0.0,0.0,5.0}, {-500.0,0.0,5.0,0.0,0.0,5.0,-500.0,500.0,5.0,0.0,500.0,5.0}, {-500.0,500.0,5.0,0.0,500.0,5.0,-500.0,1000.0,5.0,0.0,1000.0,5.0}, {-380.0,1000.0,5.0,0.0,1000.0,5.0,-380.0,1500.0,5.0,0.0,1500.0,5.0}, {-500.0,1500.0,5.0,0.0,1500.0,5.0,-500.0,2000.0,5.0,0.0,2000.0,5.0}, {-500.0,2000.0,5.0,0.0,2000.0,5.0,-500.0,2500.0,5.0,0.0,2500.0,5.0}, {-500.0,2500.0,5.0,0.0,2500.0,5.0,-500.0,2998.0,5.0,0.0,2998.0,5.0}, {0.0,-2998.0,5.0,500.0,-2998.0,5.0,0.0,-2500.0,5.0,500.0,-2500.0,5.0}, {0.0,-2500.0,5.0,500.0,-2500.0,5.0,0.0,-2000.0,5.0,500.0,-2000.0,5.0}, {0.0,-2000.0,5.0,500.0,-2000.0,5.0,0.0,-1500.0,5.0,500.0,-1500.0,5.0}, {880.0,1000.0,5.0,1000.0,1000.0,5.0,880.0,1078.0,5.0,1000.0,1078.0,5.0}, {0.0,-870.0,5.0,350.0,-870.0,5.0,0.0,-500.0,5.0,350.0,-500.0,5.0}, {0.0,-500.0,5.0,500.0,-500.0,5.0,0.0,0.0,5.0,500.0,0.0,5.0}, {0.0,0.0,5.0,440.0,0.0,5.0,0.0,500.0,5.0,440.0,500.0,5.0}, {0.0,500.0,5.0,300.0,500.0,5.0,0.0,1000.0,5.0,300.0,1000.0,5.0}, {0.0,1000.0,5.0,280.0,1000.0,5.0,0.0,1500.0,5.0,280.0,1500.0,5.0}, {0.0,1500.0,5.0,500.0,1500.0,5.0,0.0,2000.0,5.0,500.0,2000.0,5.0}, {0.0,2000.0,5.0,500.0,2000.0,5.0,0.0,2500.0,5.0,500.0,2500.0,5.0}, {0.0,2500.0,5.0,500.0,2500.0,5.0,0.0,2998.0,5.0,500.0,2998.0,5.0}, {500.0,-2998.0,5.0,1000.0,-2998.0,5.0,500.0,-2500.0,5.0,1000.0,-2500.0,5.0}, {500.0,-2500.0,5.0,1000.0,-2500.0,5.0,500.0,-2000.0,5.0,1000.0,-2000.0,5.0}, {500.0,-2000.0,5.0,1000.0,-2000.0,5.0,500.0,-1500.0,5.0,1000.0,-1500.0,5.0}, {540.0,-1500.0,5.0,1000.0,-1500.0,5.0,540.0,-1000.0,5.0,1000.0,-1000.0,5.0}, {730.0,-1000.0,5.0,1000.0,-1000.0,5.0,730.0,-500.0,5.0,1000.0,-500.0,5.0}, {890.0,-500.0,5.0,1000.0,-500.0,5.0,890.0,0.0,5.0,1000.0,0.0,5.0}, {900.0,0.0,5.0,1000.0,0.0,5.0,900.0,500.0,5.0,1000.0,500.0,5.0}, {900.0,500.0,5.0,1000.0,500.0,5.0,900.0,1000.0,5.0,1000.0,1000.0,5.0}, {500.0,1230.0,5.0,1000.0,1230.0,5.0,500.0,1500.0,5.0,1000.0,1500.0,5.0}, {500.0,1500.0,5.0,1000.0,1500.0,5.0,500.0,2000.0,5.0,1000.0,2000.0,5.0}, {500.0,2000.0,5.0,1000.0,2000.0,5.0,500.0,2500.0,5.0,1000.0,2500.0,5.0}, {500.0,2500.0,5.0,1000.0,2500.0,5.0,500.0,2998.0,5.0,1000.0,2998.0,5.0}, {1000.0,-2998.0,5.0,1500.0,-2998.0,5.0,1000.0,-2500.0,5.0,1500.0,-2500.0,5.0}, {1000.0,-2500.0,5.0,1500.0,-2500.0,5.0,1000.0,-2000.0,5.0,1500.0,-2000.0,5.0}, {1000.0,-2000.0,5.0,1500.0,-2000.0,5.0,1000.0,-1500.0,5.0,1500.0,-1500.0,5.0}, {1000.0,-1500.0,5.0,1500.0,-1500.0,5.0,1000.0,-1000.0,5.0,1500.0,-1000.0,5.0}, {1000.0,-1000.0,5.0,1500.0,-1000.0,5.0,1000.0,-500.0,5.0,1500.0,-500.0,5.0}, {1000.0,-500.0,5.0,1500.0,-500.0,5.0,1000.0,0.0,5.0,1500.0,0.0,5.0}, {1000.0,0.0,5.0,1500.0,0.0,5.0,1000.0,500.0,5.0,1500.0,500.0,5.0}, {1000.0,500.0,5.0,1500.0,500.0,5.0,1000.0,1000.0,5.0,1500.0,1000.0,5.0}, {1000.0,1000.0,5.0,1500.0,1000.0,5.0,1000.0,1500.0,5.0,1500.0,1500.0,5.0}, {1000.0,1500.0,5.0,1500.0,1500.0,5.0,1000.0,2000.0,5.0,1500.0,2000.0,5.0}, {1000.0,2000.0,5.0,1500.0,2000.0,5.0,1000.0,2500.0,5.0,1500.0,2500.0,5.0}, {1000.0,2500.0,5.0,1500.0,2500.0,5.0,1000.0,2998.0,5.0,1500.0,2998.0,5.0}, {1500.0,-2998.0,5.0,2000.0,-2998.0,5.0,1500.0,-2500.0,5.0,2000.0,-2500.0,5.0}, {1500.0,-2500.0,5.0,2000.0,-2500.0,5.0,1500.0,-2000.0,5.0,2000.0,-2000.0,5.0}, {1500.0,-2000.0,5.0,2000.0,-2000.0,5.0,1500.0,-1500.0,5.0,2000.0,-1500.0,5.0}, {1500.0,-1500.0,5.0,2000.0,-1500.0,5.0,1500.0,-1000.0,5.0,2000.0,-1000.0,5.0}, {1500.0,-1000.0,5.0,2000.0,-1000.0,5.0,1500.0,-500.0,5.0,2000.0,-500.0,5.0}, {1500.0,-500.0,5.0,2000.0,-500.0,5.0,1500.0,0.0,5.0,2000.0,0.0,5.0}, {1500.0,0.0,5.0,2000.0,0.0,5.0,1500.0,500.0,5.0,2000.0,500.0,5.0}, {1500.0,500.0,5.0,2000.0,500.0,5.0,1500.0,1000.0,5.0,2000.0,1000.0,5.0}, {1500.0,1000.0,5.0,2000.0,1000.0,5.0,1500.0,1500.0,5.0,2000.0,1500.0,5.0}, {1500.0,1500.0,5.0,2000.0,1500.0,5.0,1500.0,2000.0,5.0,2000.0,2000.0,5.0}, {1500.0,2000.0,5.0,2000.0,2000.0,5.0,1500.0,2500.0,5.0,2000.0,2500.0,5.0}, {1500.0,2500.0,5.0,2000.0,2500.0,5.0,1500.0,2998.0,5.0,2000.0,2998.0,5.0}, {2000.0,-2998.0,5.0,2500.0,-2998.0,5.0,2000.0,-2500.0,5.0,2500.0,-2500.0,5.0}, {2000.0,-2500.0,5.0,2500.0,-2500.0,5.0,2000.0,-2000.0,5.0,2500.0,-2000.0,5.0}, {2000.0,-2000.0,5.0,2500.0,-2000.0,5.0,2000.0,-1500.0,5.0,2500.0,-1500.0,5.0}, {2000.0,-1500.0,5.0,2500.0,-1500.0,5.0,2000.0,-1000.0,5.0,2500.0,-1000.0,5.0}, {2000.0,-1000.0,5.0,2500.0,-1000.0,5.0,2000.0,-500.0,5.0,2500.0,-500.0,5.0}, {2000.0,-500.0,5.0,2500.0,-500.0,5.0,2000.0,0.0,5.0,2500.0,0.0,5.0}, {2000.0,0.0,5.0,2500.0,0.0,5.0,2000.0,500.0,5.0,2500.0,500.0,5.0}, {2000.0,500.0,5.0,2500.0,500.0,5.0,2000.0,1000.0,5.0,2500.0,1000.0,5.0}, {2000.0,1000.0,5.0,2500.0,1000.0,5.0,2000.0,1500.0,5.0,2500.0,1500.0,5.0}, {2000.0,1500.0,5.0,2500.0,1500.0,5.0,2000.0,2000.0,5.0,2500.0,2000.0,5.0}, {2000.0,2000.0,5.0,2500.0,2000.0,5.0,2000.0,2500.0,5.0,2500.0,2500.0,5.0}, {2000.0,2500.0,5.0,2500.0,2500.0,5.0,2000.0,2998.0,5.0,2500.0,2998.0,5.0}, {2500.0,-2998.0,5.0,2998.0,-2998.0,5.0,2500.0,-2500.0,5.0,2998.0,-2500.0,5.0}, {2500.0,-2500.0,5.0,2998.0,-2500.0,5.0,2500.0,-2000.0,5.0,2998.0,-2000.0,5.0}, {2500.0,-2000.0,5.0,2998.0,-2000.0,5.0,2500.0,-1500.0,5.0,2998.0,-1500.0,5.0}, {2500.0,-1500.0,5.0,2998.0,-1500.0,5.0,2500.0,-1000.0,5.0,2998.0,-1000.0,5.0}, {2500.0,-1000.0,5.0,2998.0,-1000.0,5.0,2500.0,-500.0,5.0,2998.0,-500.0,5.0}, {2500.0,-500.0,5.0,2998.0,-500.0,5.0,2500.0,0.0,5.0,2998.0,0.0,5.0}, {2500.0,0.0,5.0,2998.0,0.0,5.0,2500.0,500.0,5.0,2998.0,500.0,5.0}, {2500.0,500.0,5.0,2998.0,500.0,5.0,2500.0,1000.0,5.0,2998.0,1000.0,5.0}, {2500.0,1000.0,5.0,2998.0,1000.0,5.0,2500.0,1500.0,5.0,2998.0,1500.0,5.0}, {2500.0,1500.0,5.0,2998.0,1500.0,5.0,2500.0,2000.0,5.0,2998.0,2000.0,5.0}, {2500.0,2000.0,5.0,2998.0,2000.0,5.0,2500.0,2500.0,5.0,2998.0,2500.0,5.0}, {2500.0,2500.0,5.0,2998.0,2500.0,5.0,2500.0,2998.0,5.0,2998.0,2998.0,5.0}, {280.0,1300.0,5.0,500.0,1300.0,5.0,280.0,1500.0,5.0,500.0,1500.0,5.0}, {300.0,500.0,5.0,390.0,500.0,5.0,300.0,640.0,5.0,390.0,640.0,5.0}, {-750.0,0.0,5.0,-670.0,0.0,5.0,-750.0,270.0,5.0,-670.0,270.0,5.0}} for i,v in ipairs(Water) do local water = createWater (v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12]) local x,y,z = getElementPosition(water) setElementPosition(water,x,y,z) end Link to comment
Captain Cody Posted February 8, 2017 Share Posted February 8, 2017 I told you before Replace setElementPosition(water,x,y,z) with setElementPosition(water,x,y,z+700) Link to comment
Clay Posted February 8, 2017 Author Share Posted February 8, 2017 @CodyJ(L) : But why is there a single brackets 4 positions? Link to comment
Clay Posted February 8, 2017 Author Share Posted February 8, 2017 @CodyJ(L): Tnx its work :) ;) Link to comment
Clay Posted February 8, 2017 Author Share Posted February 8, 2017 There is a problem did everything as you said everything went forth from the beginning of the server came through a new destination for the missing water What could be the problem ? Link to comment
Tails Posted February 9, 2017 Share Posted February 9, 2017 You need to create a new water surface over the entire world and use set that to 700 instead. https://wiki.multitheftauto.com/wiki/CreateWater Check examples Link to comment
Clay Posted February 9, 2017 Author Share Posted February 9, 2017 but the thing is when I do them before everything went lining here setElementPosition (water, x, y, z + 700) and everything went as but stepped out of the server and came through a new water stopped running Link to comment
Clay Posted February 9, 2017 Author Share Posted February 9, 2017 The problem is that this picture shows the water works but leaving out of the water just disappears server restarting Script nothing changes that could be a problem? Spoiler http://imgur.com/a/9aUEj http://imgur.com/a/eFcRQ Link to comment
Captain Cody Posted February 9, 2017 Share Posted February 9, 2017 Tails this is a water script for a VC map, creating a single water plane will flood multiple bits of the map. Link to comment
Clay Posted February 9, 2017 Author Share Posted February 9, 2017 But I really need to have the vice city map simply problem is that when the output from the server and the arrival of a new water stopped running then I have a question as to prepare for it so that the water does not disappear when you go out from the server? Link to comment
Captain Cody Posted February 9, 2017 Share Posted February 9, 2017 I really don't know what you're trying to say, to be honest. 1 Link to comment
Clay Posted February 9, 2017 Author Share Posted February 9, 2017 I have a problem about whater script. Problem is when i go out for server and go back to server the whater missing. I hope you understand what i mean? And can help me fix the problem. Link to comment
Captain Cody Posted February 9, 2017 Share Posted February 9, 2017 Try running the water script server side. Link to comment
Clay Posted February 9, 2017 Author Share Posted February 9, 2017 Already did that but nothing happens Link to comment
Captain Cody Posted February 9, 2017 Share Posted February 9, 2017 Add this to the end WaterB = {} ObjectB = {} Blip = {} for i,v in pairs(Water) do local WaterA = createWater (v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12] ) local x,y,z = getElementPosition(WaterA) setElementPosition(WaterA,x,y,z) local theObject = createObject ( 3003,x,y,z) WaterB[theObject] = WaterA ObjectB[theObject] = i end function fixWater() local v = Water[ObjectB[source]] local water = createWater (v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12]) local x,y,z = getElementPosition(water) setElementPosition(water,x,y,z) destroyElement(WaterB[source]) WaterB[source] = water end function fixWater2() local Water = WaterB[source] local x,y,z = getElementPosition(Water) setElementPosition(Water,x,y,z) end addEventHandler( "onClientElementStreamIn",resourceRoot,fixWater2) Link to comment
Clay Posted February 9, 2017 Author Share Posted February 9, 2017 ouh... I fixed the whater script. IT worked ,them i go out and try go back and whater agen missing. maybe i do somthing wrong? Link to comment
Clay Posted February 10, 2017 Author Share Posted February 10, 2017 So I did what you said. I restarted script -water appeared.Reconnected to server-water disappeared. Tryed to restart script again,but water doesnt appear anymore. Can you help me solve this problem? Link to comment
Captain Cody Posted February 10, 2017 Share Posted February 10, 2017 Replace for i,v in ipairs(Water) do local water = createWater (v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12]) local x,y,z = getElementPosition(water) setElementPosition(water,x,y,z) end With WaterB = {} ObjectB = {} Blip = {} for i,v in pairs(Water) do local WaterA = createWater (v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12] ) local x,y,z = getElementPosition(WaterA) setElementPosition(WaterA,x,y,z+700) local theObject = createObject ( 3003,x,y,z+700) WaterB[theObject] = WaterA ObjectB[theObject] = i end function fixWater() local v = Water[ObjectB[source]] local water = createWater (v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12]) local x,y,z = getElementPosition(water) setElementPosition(water,x,y,z+700) destroyElement(WaterB[source]) WaterB[source] = water end function fixWater2() local Water = WaterB[source] local x,y,z = getElementPosition(Water) setElementPosition(Water,x,y,z) end addEventHandler( "onClientElementStreamIn",resourceRoot,fixWater2) Link to comment
Clay Posted February 12, 2017 Author Share Posted February 12, 2017 Nothing happens because do not go away Link to comment
Clay Posted February 15, 2017 Author Share Posted February 15, 2017 @Cody(L) Water is still nothing Tryed to restart script again,but water doesnt appear anymore. Can you help me solve this problem? Link to comment
Captain Cody Posted February 15, 2017 Share Posted February 15, 2017 I haven't a clue what the issue is, all I can say is run it client side if you're not already. Other then that there's 0 issues with this code. I have used the same one plenty of times without issues. Link to comment
marty000123 Posted February 15, 2017 Share Posted February 15, 2017 (edited) you dont have to type like this Edited February 15, 2017 by marty000123 1 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