Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 29/08/24 in all areas

  1. Yep, sorry. He just asks me for write original post on russian. His answer: 1) 409 - work, "new_car" - don't. local vehicleSirens = { ["new_car"] = {count = 2, sirens = { [1] = {x = -0.5, y = 1.5, z = 0.7, r = 255, g = 0, b = 0}, [2] = {x = 0.5, y = 1.5, z = 0.7, r = 0, g = 0, b = 255} }}, [409] = {count = 2, sirens = { [1] = {x = -0.5, y = 1.5, z = 0.7, r = 255, g = 0, b = 0}, [2] = {x = 0.5, y = 1.5, z = 0.7, r = 0, g = 0, b = 255} }} } function setSomeCoolThingsForVehicle(vehicle) if vehicleSirens[model] then outputDebugString('adding sirens, model: '..model) addVehicleSirens(vehicle, vehicleSirens[model].count, 5, false, false, false) for number, siren in ipairs(vehicleSirens[model][sirens]) do setVehicleSirens(vehicle, number, siren.x, siren.y, siren.z, siren.r, siren.g, siren.b) end end end 2) ["new_tt"] = {modelName = "towtruck2", parentID = 525, currentID = nil}
    1 point
×
×
  • Create New...