Jump to content

Anoir Tizaoui

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Anoir Tizaoui

  1. To make a specific vehicle (in this case, vehicle ID 480) open its doors like all other cars in MTASA, you can use the setVehicleHandling function to modify the "vehicleanim" attribute of the vehicle's handling data. This attribute determines the animation that plays when the player enters or exits the vehicle, so setting it to a value that matches other cars in the game should make the doors open in a more conventional manner. local vehicle = getVehicleByID(480) local handling = getVehicleHandling(vehicle) handling["vehicleanim"] = "SALOON_DoorSH_L" setVehicleHandling(vehicle, handling)
  2. Anoir Tizaoui

    Help me

    local weatherHour = { [0] = 0, [1] = 0, [2] = 0, [3] = 0, [4] = 0, [5] = 0, [6] = 1, [7] = 1, [8] = 1, [9] = 1, [10] = 2, [11] = 2, [12] = 3, [13] = 3, [14] = 3, [15] = 4, [16] = 4, [17] = 5, [18] = 5, [19] = 5, [20] = 11, [21] = 11, [22] = 11, [23] = 11 } function setWeatherHour() local hour = getRealTime().hour local weather = weatherHour[hour] setWeatherBlended(weather) end setTimer(setWeatherHour, 1000, 0) Try this local weatherHour = { [0] = 0, [1] = 0, [2] = 0, [3] = 0, [4] = 0, [5] = 0, [6] = 1, [7] = 1, [8] = 1, [9] = 1, [10] = 2, [11] = 2, [12] = 3, [13] = 3, [14] = 3, [15] = 4, [16] = 4, [17] = 5, [18] = 5, [19] = 5, [20] = 11, [21] = 11, [22] = 11, [23] = 11 } function setWeatherHour() local hour = getRealTime().hour local weather = weatherHour[hour] setWeatherBlended(weather) end setTimer(setWeatherHour, 1000, 0) Try this local weatherHour = { [0] = 0, [1] = 0, [2] = 0, [3] = 0, [4] = 0, [5] = 0, [6] = 1, [7] = 1, [8] = 1, [9] = 1, [10] = 2, [11] = 2, [12] = 3, [13] = 3, [14] = 3, [15] = 4, [16] = 4, [17] = 5, [18] = 5, [19] = 5, [20] = 11, [21] = 11, [22] = 11, [23] = 11 } function setWeatherHour() local hour = getRealTime().hour local weather = weatherHour[hour] setWeatherBlended(weather) end setTimer(setWeatherHour, 1000, 0)
×
×
  • Create New...