Jump to content

Table problem


Recommended Posts

local noobcar1 = createVehicle(462, -2458.33398, 779.5, 34.842, 0, 0, 90, "1") 
local noobcar2 = createVehicle(462, -2463, 774.5, 34.842, 0, 0, 0, "2") 
local noobcar3 = createVehicle(462, -2464.5, 774.5, 34.842, 0, 0, 0, "3") 
local noobcar4 = createVehicle(462, -2466, 774.5, 34.842, 0, 0, 0, "4") 
local noobcar5 = createVehicle(462, -2472, 774.5, 34.842, 0, 0, 0, "5") 
local noobcar6 = createVehicle(462, -2473.5, 774.5, 34.842, 0, 0, 0, "6") 
local noobcar7 = createVehicle(462, -2467.5, 774.5, 34.842, 0, 0, 0, "7") 
local noobcar8 = createVehicle(462, -2478, 774.5, 34.842, 0, 0, 0, "8") 
local noobcar9 = createVehicle(462, -2470.5, 774.5, 34.842, 0, 0, 0, "9") 
local noobcar10 = createVehicle(462, -2476.5, 774.5, 34.842, 0, 0, 0, "10") 
local noobcar11 = createVehicle(462, -2475, 774.5, 34.842, 0, 0, 0, "11") 
local noobcar12 = createVehicle(462, -2469, 774.5, 34.842, 0, 0, 0, "12") 
local noobcar13 = createVehicle(462, -2479.5, 774.5, 34.842, 0, 0, 0, "13") 
local noobcar14 = createVehicle(462, -2481, 774.5, 34.842, 0, 0, 0, "14") 
local noobcar15 = createVehicle(462, -2482.5, 774.5, 34.842, 0, 0, 0, "15") 
local noobcar16 = createVehicle(462, -2484, 774.5, 34.842, 0, 0, 0, "16") 
local noobcar17 = createVehicle(462, -2485.5, 774.5, 34.842, 0, 0, 0, "17") 
local noobcar18 = createVehicle(462, -2458.33398, 790, 34.842, 0, 0, 90, "18") 
local noobcar19 = createVehicle(462, -2458.33398, 785.5, 34.842, 0, 0, 90, "19") 
local noobcar20 = createVehicle(462, -2458.33398, 784, 34.842, 0, 0, 90, "20") 
local noobcar21 = createVehicle(462, -2458.33398, 781, 34.842, 0, 0, 90, "21") 
local noobcar22 = createVehicle(462, -2458.33398, 782.5, 34.842, 0, 0, 90, "22") 
local noobcar23 = createVehicle(462, -2458.33398, 787, 34.842, 0, 0, 90, "23") 
local noobcar24 = createVehicle(462, -2458.33398, 788.5, 34.842, 0, 0, 90, "24") 
local noobcar25 = createVehicle(462, -2458.33398, 791.5, 34.842, 0, 0, 90, "25") 
local noobcar26 = createVehicle(462, -2458.33398, 793, 34.842, 0, 0, 90, "26") 
local noobcar27 = createVehicle(462, -2458.33398, 794.5, 34.842, 0, 0, 90, "27") 
local noobcar28 = createVehicle(462, -2458.33398, 796, 34.842, 0, 0, 90, "28") 
local noobcar29 = createVehicle(462, -2495.17603, 779, 34.842, 0, 0, 270, "29") 
local noobcar30 = createVehicle(462, -2495.17603, 780.5, 34.842, 0, 0, 270, "30") 
local noobcar31 = createVehicle(462, -2495.17603, 782, 34.842, 0, 0, 270, "31") 
local noobcar32 = createVehicle(462, -2495.17603, 783.5, 34.842, 0, 0, 270, "32") 
local noobcar33 = createVehicle(462, -2495.17603, 785, 34.842, 0, 0, 270, "33") 
local noobcar34 = createVehicle(462, -2495.17603, 786.5, 34.842, 0, 0, 270, "34") 
local noobcar35 = createVehicle(462, -2495.17603, 788, 34.842, 0, 0, 270, "35") 
local noobcar36 = createVehicle(462, -2495.17603, 789.5, 34.842, 0, 0, 270, "36") 
local noobcar37 = createVehicle(462, -2495.17603, 791, 34.842, 0, 0, 270, "37") 
local noobcar38 = createVehicle(462, -2495.17603, 792.5, 34.842, 0, 0, 270, "38") 
local noobcar39 = createVehicle(462, -2495.17603, 794, 34.842, 0, 0, 270, "39") 
local noobcar40 = createVehicle(462, -2492.5, 796, 34.842, 0, 0, 180, "40") 
local noobcar41 = createVehicle(462, -2491, 796, 34.842, 0, 0, 180, "41") 
local noobcar42 = createVehicle(462, -2489.5, 796, 34.842, 0, 0, 180, "42") 
local noobcar43 = createVehicle(462, -2488, 796, 34.842, 0, 0, 180, "43") 
local noobcar44 = createVehicle(462, -2486.5, 796, 34.842, 0, 0, 180, "44") 
local noobcar45 = createVehicle(462, -2485, 796, 34.842, 0, 0, 180, "45") 
local noobcar46 = createVehicle(462, -2483.5, 796, 34.842, 0, 0, 180, "46") 
local noobcar47 = createVehicle(462, -2482, 796, 34.842, 0, 0, 180, "47") 
local noobcar48 = createVehicle(462, -2480.5, 796, 34.842, 0, 0, 180, "48") 
local noobcar49 = createVehicle(462, -2479, 796, 34.842, 0, 0, 180, "49") 
  
noobnoobcars = {} 
  
for i = 1, 49, 1 do 
    noobnoobcars[tostring("noobcar"..i)] = true 
end 
  
  
for key, index in pairs ( noobnoobcars ) do 
    setVehiclePaintjob(key, 3) 
    toggleVehicleRespawn (key, true) 
    setVehicleRespawnDelay (key, 300000) 
    setVehicleIdleRespawnDelay (key, 600000) 
    setElementData (key, "freeCar", true) 
    end 

[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar2'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar33'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar27'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar42'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar26'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar13'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar11'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar41'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar4'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar17'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar39'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar45'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar40'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar30'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar18'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar22'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar36'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar43'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar8'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar49'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar31'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar14'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar16'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar25'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar46'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar12'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar44'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar47'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar32'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar35'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar19'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar6'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar34'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar9'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar37'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar38'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar48'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar10'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar20'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar1'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar23'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar21'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar7'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar29'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar28'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar5'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar3'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar24'] 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:112: Bad argument @ 'setVehiclePaintjob' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:113: Bad argument @ 'toggleVehicleRespawn' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:114: Bad argument @ 'setVehicleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:115: Bad argument @ 'setVehicleIdleRespawnDelay' 
[2013-05-02 19:30:24] WARNING: prox\carsys\noobcars_s.lua:116: Bad argument @ 'setElementData' [Expected element at argument 1, got string 'noobcar15'] 

Edited by Guest
Link to comment

local noobcar1 = createVehicle(462, -2458.33398, 779.5, 34.842, 0, 0, 90, "1") 
local noobcar2 = createVehicle(462, -2463, 774.5, 34.842, 0, 0, 0, "2") 
local noobcar3 = createVehicle(462, -2464.5, 774.5, 34.842, 0, 0, 0, "3") 
local noobcar4 = createVehicle(462, -2466, 774.5, 34.842, 0, 0, 0, "4") 
local noobcar5 = createVehicle(462, -2472, 774.5, 34.842, 0, 0, 0, "5") 
local noobcar6 = createVehicle(462, -2473.5, 774.5, 34.842, 0, 0, 0, "6") 
local noobcar7 = createVehicle(462, -2467.5, 774.5, 34.842, 0, 0, 0, "7") 
local noobcar8 = createVehicle(462, -2478, 774.5, 34.842, 0, 0, 0, "8") 
local noobcar9 = createVehicle(462, -2470.5, 774.5, 34.842, 0, 0, 0, "9") 
local noobcar10 = createVehicle(462, -2476.5, 774.5, 34.842, 0, 0, 0, "10") 
local noobcar11 = createVehicle(462, -2475, 774.5, 34.842, 0, 0, 0, "11") 
local noobcar12 = createVehicle(462, -2469, 774.5, 34.842, 0, 0, 0, "12") 
local noobcar13 = createVehicle(462, -2479.5, 774.5, 34.842, 0, 0, 0, "13") 
local noobcar14 = createVehicle(462, -2481, 774.5, 34.842, 0, 0, 0, "14") 
local noobcar15 = createVehicle(462, -2482.5, 774.5, 34.842, 0, 0, 0, "15") 
local noobcar16 = createVehicle(462, -2484, 774.5, 34.842, 0, 0, 0, "16") 
local noobcar17 = createVehicle(462, -2485.5, 774.5, 34.842, 0, 0, 0, "17") 
local noobcar18 = createVehicle(462, -2458.33398, 790, 34.842, 0, 0, 90, "18") 
local noobcar19 = createVehicle(462, -2458.33398, 785.5, 34.842, 0, 0, 90, "19") 
local noobcar20 = createVehicle(462, -2458.33398, 784, 34.842, 0, 0, 90, "20") 
local noobcar21 = createVehicle(462, -2458.33398, 781, 34.842, 0, 0, 90, "21") 
local noobcar22 = createVehicle(462, -2458.33398, 782.5, 34.842, 0, 0, 90, "22") 
local noobcar23 = createVehicle(462, -2458.33398, 787, 34.842, 0, 0, 90, "23") 
local noobcar24 = createVehicle(462, -2458.33398, 788.5, 34.842, 0, 0, 90, "24") 
local noobcar25 = createVehicle(462, -2458.33398, 791.5, 34.842, 0, 0, 90, "25") 
local noobcar26 = createVehicle(462, -2458.33398, 793, 34.842, 0, 0, 90, "26") 
local noobcar27 = createVehicle(462, -2458.33398, 794.5, 34.842, 0, 0, 90, "27") 
local noobcar28 = createVehicle(462, -2458.33398, 796, 34.842, 0, 0, 90, "28") 
local noobcar29 = createVehicle(462, -2495.17603, 779, 34.842, 0, 0, 270, "29") 
local noobcar30 = createVehicle(462, -2495.17603, 780.5, 34.842, 0, 0, 270, "30") 
local noobcar31 = createVehicle(462, -2495.17603, 782, 34.842, 0, 0, 270, "31") 
local noobcar32 = createVehicle(462, -2495.17603, 783.5, 34.842, 0, 0, 270, "32") 
local noobcar33 = createVehicle(462, -2495.17603, 785, 34.842, 0, 0, 270, "33") 
local noobcar34 = createVehicle(462, -2495.17603, 786.5, 34.842, 0, 0, 270, "34") 
local noobcar35 = createVehicle(462, -2495.17603, 788, 34.842, 0, 0, 270, "35") 
local noobcar36 = createVehicle(462, -2495.17603, 789.5, 34.842, 0, 0, 270, "36") 
local noobcar37 = createVehicle(462, -2495.17603, 791, 34.842, 0, 0, 270, "37") 
local noobcar38 = createVehicle(462, -2495.17603, 792.5, 34.842, 0, 0, 270, "38") 
local noobcar39 = createVehicle(462, -2495.17603, 794, 34.842, 0, 0, 270, "39") 
local noobcar40 = createVehicle(462, -2492.5, 796, 34.842, 0, 0, 180, "40") 
local noobcar41 = createVehicle(462, -2491, 796, 34.842, 0, 0, 180, "41") 
local noobcar42 = createVehicle(462, -2489.5, 796, 34.842, 0, 0, 180, "42") 
local noobcar43 = createVehicle(462, -2488, 796, 34.842, 0, 0, 180, "43") 
local noobcar44 = createVehicle(462, -2486.5, 796, 34.842, 0, 0, 180, "44") 
local noobcar45 = createVehicle(462, -2485, 796, 34.842, 0, 0, 180, "45") 
local noobcar46 = createVehicle(462, -2483.5, 796, 34.842, 0, 0, 180, "46") 
local noobcar47 = createVehicle(462, -2482, 796, 34.842, 0, 0, 180, "47") 
local noobcar48 = createVehicle(462, -2480.5, 796, 34.842, 0, 0, 180, "48") 
local noobcar49 = createVehicle(462, -2479, 796, 34.842, 0, 0, 180, "49") 
  
for i,key in ipairs(getElementsByType("vehicle",resourceRoot)) do 
    setVehiclePaintjob(key, 3) 
    toggleVehicleRespawn (key, true) 
    setVehicleRespawnDelay (key, 300000) 
    setVehicleIdleRespawnDelay (key, 600000) 
    setElementData (key, "freeCar", true) 
 end 

Try it.

Link to comment
  • Moderators

GO for performance!!! muhahaha ok I am not funny...

  
for index,vehicle in pairs ( 
    { -- table and will be gone in a few sec's ! 
        createVehicle(462, -2458.33398, 779.5, 34.842, 0, 0, 90, "1"), 
        createVehicle(462, -2463, 774.5, 34.842, 0, 0, 0, "2"), 
        createVehicle(462, -2464.5, 774.5, 34.842, 0, 0, 0, "3"), 
        createVehicle(462, -2466, 774.5, 34.842, 0, 0, 0, "4"), 
        createVehicle(462, -2472, 774.5, 34.842, 0, 0, 0, "5"), 
        createVehicle(462, -2473.5, 774.5, 34.842, 0, 0, 0, "6"), 
        createVehicle(462, -2467.5, 774.5, 34.842, 0, 0, 0, "7"), 
        createVehicle(462, -2478, 774.5, 34.842, 0, 0, 0, "8"), 
        createVehicle(462, -2470.5, 774.5, 34.842, 0, 0, 0, "9"), 
        createVehicle(462, -2476.5, 774.5, 34.842, 0, 0, 0, "10"), 
        createVehicle(462, -2475, 774.5, 34.842, 0, 0, 0, "11"), 
        createVehicle(462, -2469, 774.5, 34.842, 0, 0, 0, "12"), 
        createVehicle(462, -2479.5, 774.5, 34.842, 0, 0, 0, "13"), 
        createVehicle(462, -2481, 774.5, 34.842, 0, 0, 0, "14"), 
        createVehicle(462, -2482.5, 774.5, 34.842, 0, 0, 0, "15"), 
        createVehicle(462, -2484, 774.5, 34.842, 0, 0, 0, "16"), 
        createVehicle(462, -2485.5, 774.5, 34.842, 0, 0, 0, "17"), 
        createVehicle(462, -2458.33398, 790, 34.842, 0, 0, 90, "18"), 
        createVehicle(462, -2458.33398, 785.5, 34.842, 0, 0, 90, "19"), 
        createVehicle(462, -2458.33398, 784, 34.842, 0, 0, 90, "20"), 
        createVehicle(462, -2458.33398, 781, 34.842, 0, 0, 90, "21"), 
        createVehicle(462, -2458.33398, 782.5, 34.842, 0, 0, 90, "22"), 
        createVehicle(462, -2458.33398, 787, 34.842, 0, 0, 90, "23"), 
        createVehicle(462, -2458.33398, 788.5, 34.842, 0, 0, 90, "24"), 
        createVehicle(462, -2458.33398, 791.5, 34.842, 0, 0, 90, "25"), 
        createVehicle(462, -2458.33398, 793, 34.842, 0, 0, 90, "26"), 
        createVehicle(462, -2458.33398, 794.5, 34.842, 0, 0, 90, "27"), 
        createVehicle(462, -2458.33398, 796, 34.842, 0, 0, 90, "28"), 
        createVehicle(462, -2495.17603, 779, 34.842, 0, 0, 270, "29"), 
        createVehicle(462, -2495.17603, 780.5, 34.842, 0, 0, 270, "30"), 
        createVehicle(462, -2495.17603, 782, 34.842, 0, 0, 270, "31"), 
        createVehicle(462, -2495.17603, 783.5, 34.842, 0, 0, 270, "32"), 
        createVehicle(462, -2495.17603, 785, 34.842, 0, 0, 270, "33"), 
        createVehicle(462, -2495.17603, 786.5, 34.842, 0, 0, 270, "34"), 
        createVehicle(462, -2495.17603, 788, 34.842, 0, 0, 270, "35"), 
        createVehicle(462, -2495.17603, 789.5, 34.842, 0, 0, 270, "36"), 
        createVehicle(462, -2495.17603, 791, 34.842, 0, 0, 270, "37"), 
        createVehicle(462, -2495.17603, 792.5, 34.842, 0, 0, 270, "38"), 
        createVehicle(462, -2495.17603, 794, 34.842, 0, 0, 270, "39"), 
        createVehicle(462, -2492.5, 796, 34.842, 0, 0, 180, "40"), 
        createVehicle(462, -2491, 796, 34.842, 0, 0, 180, "41"), 
        createVehicle(462, -2489.5, 796, 34.842, 0, 0, 180, "42"), 
        createVehicle(462, -2488, 796, 34.842, 0, 0, 180, "43"), 
        createVehicle(462, -2486.5, 796, 34.842, 0, 0, 180, "44"), 
        createVehicle(462, -2485, 796, 34.842, 0, 0, 180, "45"), 
        createVehicle(462, -2483.5, 796, 34.842, 0, 0, 180, "46"), 
        createVehicle(462, -2482, 796, 34.842, 0, 0, 180, "47"), 
        createVehicle(462, -2480.5, 796, 34.842, 0, 0, 180, "48"), 
        createVehicle(462, -2479, 796, 34.842, 0, 0, 180, "49") 
    } 
    ) do 
    setVehiclePaintjob(vehicle, 3) 
    toggleVehicleRespawn (vehicle, true) 
    setVehicleRespawnDelay (vehicle, 300000) 
    setVehicleIdleRespawnDelay (vehicle, 600000) 
    setElementData (vehicle, "freeCar", true) 
end 
  

and btw, this does not work:

  
for i = 1, 49, 1 do 
    noobnoobcars[tostring("noobcar"..i)] = true 
end 

After you create a car it will returns a user data, not a string with the data name.

Link to comment

This code should work.

vehicleTable = { 
    {462, -2458.33398, 779.5, 34.842, 0, 0, 90, "1"}, 
    {462, -2463, 774.5, 34.842, 0, 0, 0, "2"}, 
    {462, -2464.5, 774.5, 34.842, 0, 0, 0, "3"}, 
    {462, -2466, 774.5, 34.842, 0, 0, 0, "4"}, 
    {462, -2472, 774.5, 34.842, 0, 0, 0, "5"}, 
    {462, -2473.5, 774.5, 34.842, 0, 0, 0, "6"}, 
    {462, -2467.5, 774.5, 34.842, 0, 0, 0, "7"}, 
    {462, -2478, 774.5, 34.842, 0, 0, 0, "8"}, 
    {462, -2470.5, 774.5, 34.842, 0, 0, 0, "9"}, 
    {462, -2476.5, 774.5, 34.842, 0, 0, 0, "10"}, 
    {462, -2475, 774.5, 34.842, 0, 0, 0, "11"}, 
    {462, -2469, 774.5, 34.842, 0, 0, 0, "12"}, 
    {462, -2479.5, 774.5, 34.842, 0, 0, 0, "13"}, 
    {462, -2481, 774.5, 34.842, 0, 0, 0, "14"}, 
    {462, -2482.5, 774.5, 34.842, 0, 0, 0, "15"}, 
    {462, -2484, 774.5, 34.842, 0, 0, 0, "16"}, 
    {462, -2485.5, 774.5, 34.842, 0, 0, 0, "17"}, 
    {462, -2458.33398, 790, 34.842, 0, 0, 90, "18"}, 
    {462, -2458.33398, 785.5, 34.842, 0, 0, 90, "19"}, 
    {462, -2458.33398, 784, 34.842, 0, 0, 90, "20"}, 
    {462, -2458.33398, 781, 34.842, 0, 0, 90, "21"}, 
    {462, -2458.33398, 782.5, 34.842, 0, 0, 90, "22"}, 
    {462, -2458.33398, 787, 34.842, 0, 0, 90, "23"}, 
    {462, -2458.33398, 788.5, 34.842, 0, 0, 90, "24"}, 
    {462, -2458.33398, 791.5, 34.842, 0, 0, 90, "25"}, 
    {462, -2458.33398, 793, 34.842, 0, 0, 90, "26"}, 
    {462, -2458.33398, 794.5, 34.842, 0, 0, 90, "27"}, 
    {462, -2458.33398, 796, 34.842, 0, 0, 90, "28"}, 
    {462, -2495.17603, 779, 34.842, 0, 0, 270, "29"}, 
    {462, -2495.17603, 780.5, 34.842, 0, 0, 270, "30"}, 
    {462, -2495.17603, 782, 34.842, 0, 0, 270, "31"}, 
    {462, -2495.17603, 783.5, 34.842, 0, 0, 270, "32"}, 
    {462, -2495.17603, 785, 34.842, 0, 0, 270, "33"}, 
    {462, -2495.17603, 786.5, 34.842, 0, 0, 270, "34"}, 
    {462, -2495.17603, 788, 34.842, 0, 0, 270, "35"}, 
    {462, -2495.17603, 789.5, 34.842, 0, 0, 270, "36"}, 
    {462, -2495.17603, 791, 34.842, 0, 0, 270, "37"}, 
    {462, -2495.17603, 792.5, 34.842, 0, 0, 270, "38"}, 
    {462, -2495.17603, 794, 34.842, 0, 0, 270, "39"}, 
    {462, -2492.5, 796, 34.842, 0, 0, 180, "40"}, 
    {462, -2491, 796, 34.842, 0, 0, 180, "41"}, 
    {462, -2489.5, 796, 34.842, 0, 0, 180, "42"}, 
    {462, -2488, 796, 34.842, 0, 0, 180, "43"}, 
    {462, -2486.5, 796, 34.842, 0, 0, 180, "44"}, 
    {462, -2485, 796, 34.842, 0, 0, 180, "45"}, 
    {462, -2483.5, 796, 34.842, 0, 0, 180, "46"}, 
    {462, -2482, 796, 34.842, 0, 0, 180, "47"}, 
    {462, -2480.5, 796, 34.842, 0, 0, 180, "48"}, 
    {462, -2479, 796, 34.842, 0, 0, 180, "49") 
} 
  
vehicle = {} 
for i,v in ipairs (vehicleTable) do 
    local id, x, y, z, rx, ry, rz, _ = unpack(v[i]) 
    vehicle[i] = createVehicle(id, x, y, z, rx, ry, rz) 
end 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...