setvw for a car
#1

How to do set a VW for a vehicle

Код:
AddStaticVehicle(432,-57.3537,1826.7887,17.6552,1.1649,43,0); //
Reply
#2

https://sampwiki.blast.hk/wiki/SetVehicleVirtualWorld

Reply
#3

pawn Код:
new
        Set_V_W[5];
    Set_V_W[0] = AddStaticVehicle(432,-57.3537,1826.7887,17.6552,1.1649,43,0); // 1
    Set_V_W[1] = AddStaticVehicle(432,-67.3537,1826.7887,17.6552,1.1649,43,0); // 2
    Set_V_W[2] = AddStaticVehicle(432,-77.3537,1826.7887,17.6552,1.1649,43,0); // 3
    Set_V_W[3] = AddStaticVehicle(432,-87.3537,1826.7887,17.6552,1.1649,43,0); // 4
    Set_V_W[4] = AddStaticVehicle(432,-97.3537,1826.7887,17.6552,1.1649,43,0); // 5

    for(new i; i < sizeof Set_V_W; i++)
    {
        SetVehicleVirtualWorld(Set_V_W[i], 30); // 30 VirtualWorldID 0 1 2 3 ..............
    }
Reply
#4

will this still go in gamemodeinit
Reply
#5

Yes, I guess so.
Reply
#6

Quote:
Originally Posted by Phento
pawn Код:
new
        Set_V_W[5];
    Set_V_W[0] = AddStaticVehicle(432,-57.3537,1826.7887,17.6552,1.1649,43,0); // 1
    Set_V_W[1] = AddStaticVehicle(432,-67.3537,1826.7887,17.6552,1.1649,43,0); // 2
    Set_V_W[2] = AddStaticVehicle(432,-77.3537,1826.7887,17.6552,1.1649,43,0); // 3
    Set_V_W[3] = AddStaticVehicle(432,-87.3537,1826.7887,17.6552,1.1649,43,0); // 4
    Set_V_W[4] = AddStaticVehicle(432,-97.3537,1826.7887,17.6552,1.1649,43,0); // 5

    for(new i; i < sizeof Set_V_W; i++)
    {
        SetVehicleVirtualWorld(Set_V_W[i], 30); // 30 VirtualWorldID 0 1 2 3 ..............
    }
Didnt work still spawned in VW 0 i want all my rhinos in vw 1

Код:
new
  Set_V_W[1];
  Set_V_W[1] = AddStaticVehicle(432,-57.3537,1826.7887,17.6552,1.1649,43,0); // 1
  Set_V_W[1] = AddStaticVehicle(432,-49.1850,1826.3799,17.6581,357.3636,43,0); // 2
  Set_V_W[1] = AddStaticVehicle(432,-58.3847,1874.3794,17.6530,182.5570,43,0); // 3
  Set_V_W[1] = AddStaticVehicle(432,-50.9840,1874.2181,17.6518,174.6339,43,0); // 4
  Set_V_W[1] = AddStaticVehicle(432,-42.8362,1873.9436,17.6567,178.9787,43,0); // 5
  Set_V_W[1] = AddStaticVehicle(432,-56.5727,1849.5696,17.6541,268.4832,43,0); // 6
  Set_V_W[1] = AddStaticVehicle(432,-57.1870,1855.8940,17.6553,269.8445,43,0); // 7
  Set_V_W[1] = AddStaticVehicle(432,-44.4128,2094.7634,17.7128,180.1373,43,0); // 8
  Set_V_W[1] = AddStaticVehicle(432,-35.7791,2093.6653,17.7236,181.3472,43,0); // 9
  Set_V_W[1] = AddStaticVehicle(432,-28.1782,2094.0923,17.7171,182.4028,43,0); // 10
  Set_V_W[1] = AddStaticVehicle(432,-20.5249,2093.8452,17.6946,179.7290,43,0); // 11
  Set_V_W[1] = AddStaticVehicle(432,-12.7686,2094.1609,17.2845,179.4240,43,0); //12
  Set_V_W[1] = AddStaticVehicle(432,-5.1901,2093.3020,17.6825,181.0909,43,0); // 13
  Set_V_W[1] = AddStaticVehicle(432,4.2105,2093.3145,17.7138,176.7632,43,0); // 14
  Set_V_W[1] = AddStaticVehicle(432,271.9853,1793.0413,17.6633,151.2590,43,0); //15
  Set_V_W[1] = AddStaticVehicle(432,257.4062,1793.3104,17.6537,176.7019,43,0); // 16
  Set_V_W[1] = AddStaticVehicle(32,247.9456,1793.1042,17.6635,181.4333,43,0); // 17
  Set_V_W[1] = AddStaticVehicle(432,262.0787,1752.0481,17.6545,339.6775,43,0); // 18
  Set_V_W[1] = AddStaticVehicle(432,255.7678,1755.0974,17.6558,333.8283,43,0); // 19
  Set_V_W[1] = AddStaticVehicle(432,249.5778,1759.2059,17.6565,330.0468,43,0); // 20
  Set_V_W[1] = AddStaticVehicle(432,267.8787,1768.0846,17.6564,70.7863,43,0); // 21
  Set_V_W[1] = AddStaticVehicle(432,270.1492,1775.0421,17.6561,66.6524,43,0); // 22
  Set_V_W[1] = AddStaticVehicle(432,184.7359,1987.8352,17.8381,177.8750,43,0); // 23
  Set_V_W[1] = AddStaticVehicle(432,176.4237,1987.2953,18.1967,183.2544,43,0); // 24
  Set_V_W[1] = AddStaticVehicle(432,167.9239,1987.3143,18.5618,181.2244,43,0); // 25
  Set_V_W[1] = AddStaticVehicle(432,168.2030,1946.4081,18.5078,357.1147,43,0); // 26
  Set_V_W[1] = AddStaticVehicle(432,174.3766,1946.4131,18.2608,1.7070,43,0); //27
  Set_V_W[1] = AddStaticVehicle(432,182.0599,1946.2570,17.9473,0.0853,43,0); // 28
  Set_V_W[1] = AddStaticVehicle(432,183.7307,1960.5513,17.8949,88.2857,43,0); // 29
  Set_V_W[1] = AddStaticVehicle(432,182.9171,1968.3912,17.9289,93.0885,43,0); //30

  for(new i; i < sizeof Set_V_W; i++)
  {
  SetVehicleVirtualWorld(Set_V_W[i], 30); // 30 VirtualWorldID 0 1 2 3 ..............
  }
Reply
#7

Change the virtual world..

Код:
SetVehicleVirtualWorld(Set_V_W[i], VIRTUALWORLD);
Everything has to be chewed for..
Reply
#8

Quote:
Originally Posted by 02manchestera
Didnt work still spawned in VW 0 i want all my rhinos in vw 1

Код:
new
  Set_V_W[1];
  Set_V_W[1] = AddStaticVehicle(432,-57.3537,1826.7887,17.6552,1.1649,43,0); // 1
  Set_V_W[1] = AddStaticVehicle(432,-49.1850,1826.3799,17.6581,357.3636,43,0); // 2
  Set_V_W[1] = AddStaticVehicle(432,-58.3847,1874.3794,17.6530,182.5570,43,0); // 3
  Set_V_W[1] = AddStaticVehicle(432,-50.9840,1874.2181,17.6518,174.6339,43,0); // 4
  Set_V_W[1] = AddStaticVehicle(432,-42.8362,1873.9436,17.6567,178.9787,43,0); // 5
  Set_V_W[1] = AddStaticVehicle(432,-56.5727,1849.5696,17.6541,268.4832,43,0); // 6
  Set_V_W[1] = AddStaticVehicle(432,-57.1870,1855.8940,17.6553,269.8445,43,0); // 7
  Set_V_W[1] = AddStaticVehicle(432,-44.4128,2094.7634,17.7128,180.1373,43,0); // 8
  Set_V_W[1] = AddStaticVehicle(432,-35.7791,2093.6653,17.7236,181.3472,43,0); // 9
  Set_V_W[1] = AddStaticVehicle(432,-28.1782,2094.0923,17.7171,182.4028,43,0); // 10
  Set_V_W[1] = AddStaticVehicle(432,-20.5249,2093.8452,17.6946,179.7290,43,0); // 11
  Set_V_W[1] = AddStaticVehicle(432,-12.7686,2094.1609,17.2845,179.4240,43,0); //12
  Set_V_W[1] = AddStaticVehicle(432,-5.1901,2093.3020,17.6825,181.0909,43,0); // 13
  Set_V_W[1] = AddStaticVehicle(432,4.2105,2093.3145,17.7138,176.7632,43,0); // 14
  Set_V_W[1] = AddStaticVehicle(432,271.9853,1793.0413,17.6633,151.2590,43,0); //15
  Set_V_W[1] = AddStaticVehicle(432,257.4062,1793.3104,17.6537,176.7019,43,0); // 16
  Set_V_W[1] = AddStaticVehicle(32,247.9456,1793.1042,17.6635,181.4333,43,0); // 17
  Set_V_W[1] = AddStaticVehicle(432,262.0787,1752.0481,17.6545,339.6775,43,0); // 18
  Set_V_W[1] = AddStaticVehicle(432,255.7678,1755.0974,17.6558,333.8283,43,0); // 19
  Set_V_W[1] = AddStaticVehicle(432,249.5778,1759.2059,17.6565,330.0468,43,0); // 20
  Set_V_W[1] = AddStaticVehicle(432,267.8787,1768.0846,17.6564,70.7863,43,0); // 21
  Set_V_W[1] = AddStaticVehicle(432,270.1492,1775.0421,17.6561,66.6524,43,0); // 22
  Set_V_W[1] = AddStaticVehicle(432,184.7359,1987.8352,17.8381,177.8750,43,0); // 23
  Set_V_W[1] = AddStaticVehicle(432,176.4237,1987.2953,18.1967,183.2544,43,0); // 24
  Set_V_W[1] = AddStaticVehicle(432,167.9239,1987.3143,18.5618,181.2244,43,0); // 25
  Set_V_W[1] = AddStaticVehicle(432,168.2030,1946.4081,18.5078,357.1147,43,0); // 26
  Set_V_W[1] = AddStaticVehicle(432,174.3766,1946.4131,18.2608,1.7070,43,0); //27
  Set_V_W[1] = AddStaticVehicle(432,182.0599,1946.2570,17.9473,0.0853,43,0); // 28
  Set_V_W[1] = AddStaticVehicle(432,183.7307,1960.5513,17.8949,88.2857,43,0); // 29
  Set_V_W[1] = AddStaticVehicle(432,182.9171,1968.3912,17.9289,93.0885,43,0); //30

  for(new i; i < sizeof Set_V_W; i++)
  {
  SetVehicleVirtualWorld(Set_V_W[i], 30); // 30 VirtualWorldID 0 1 2 3 ..............
  }


pawn Код:
new
  Set_V_W[30];
  Set_V_W[0] = AddStaticVehicle(432,-57.3537,1826.7887,17.6552,1.1649,43,0); // 1
  Set_V_W[1] = AddStaticVehicle(432,-49.1850,1826.3799,17.6581,357.3636,43,0); // 2
  Set_V_W[2] = AddStaticVehicle(432,-58.3847,1874.3794,17.6530,182.5570,43,0); // 3
  Set_V_W[3] = AddStaticVehicle(432,-50.9840,1874.2181,17.6518,174.6339,43,0); // 4
  Set_V_W[4] = AddStaticVehicle(432,-42.8362,1873.9436,17.6567,178.9787,43,0); // 5
  Set_V_W[5] = AddStaticVehicle(432,-56.5727,1849.5696,17.6541,268.4832,43,0); // 6
  Set_V_W[6] = AddStaticVehicle(432,-57.1870,1855.8940,17.6553,269.8445,43,0); // 7
  Set_V_W[7] = AddStaticVehicle(432,-44.4128,2094.7634,17.7128,180.1373,43,0); // 8
  Set_V_W[8] = AddStaticVehicle(432,-35.7791,2093.6653,17.7236,181.3472,43,0); // 9
  Set_V_W[9] = AddStaticVehicle(432,-28.1782,2094.0923,17.7171,182.4028,43,0); // 10
  Set_V_W[10] = AddStaticVehicle(432,-20.5249,2093.8452,17.6946,179.7290,43,0); // 11
  Set_V_W[11] = AddStaticVehicle(432,-12.7686,2094.1609,17.2845,179.4240,43,0); //12
  Set_V_W[12] = AddStaticVehicle(432,-5.1901,2093.3020,17.6825,181.0909,43,0); // 13
  Set_V_W[13] = AddStaticVehicle(432,4.2105,2093.3145,17.7138,176.7632,43,0); // 14
  Set_V_W[14] = AddStaticVehicle(432,271.9853,1793.0413,17.6633,151.2590,43,0); //15
  Set_V_W[15] = AddStaticVehicle(432,257.4062,1793.3104,17.6537,176.7019,43,0); // 16
  Set_V_W[16] = AddStaticVehicle(32,247.9456,1793.1042,17.6635,181.4333,43,0); // 17
  Set_V_W[17] = AddStaticVehicle(432,262.0787,1752.0481,17.6545,339.6775,43,0); // 18
  Set_V_W[18] = AddStaticVehicle(432,255.7678,1755.0974,17.6558,333.8283,43,0); // 19
  Set_V_W[19] = AddStaticVehicle(432,249.5778,1759.2059,17.6565,330.0468,43,0); // 20
  Set_V_W[20] = AddStaticVehicle(432,267.8787,1768.0846,17.6564,70.7863,43,0); // 21
  Set_V_W[21] = AddStaticVehicle(432,270.1492,1775.0421,17.6561,66.6524,43,0); // 22
  Set_V_W[22] = AddStaticVehicle(432,184.7359,1987.8352,17.8381,177.8750,43,0); // 23
  Set_V_W[23] = AddStaticVehicle(432,176.4237,1987.2953,18.1967,183.2544,43,0); // 24
  Set_V_W[24] = AddStaticVehicle(432,167.9239,1987.3143,18.5618,181.2244,43,0); // 25
  Set_V_W[25] = AddStaticVehicle(432,168.2030,1946.4081,18.5078,357.1147,43,0); // 26
  Set_V_W[26] = AddStaticVehicle(432,174.3766,1946.4131,18.2608,1.7070,43,0); //27
  Set_V_W[27] = AddStaticVehicle(432,182.0599,1946.2570,17.9473,0.0853,43,0); // 28
  Set_V_W[28] = AddStaticVehicle(432,183.7307,1960.5513,17.8949,88.2857,43,0); // 29
  Set_V_W[29] = AddStaticVehicle(432,182.9171,1968.3912,17.9289,93.0885,43,0); //30

  for(new i; i < sizeof Set_V_W; i++)
  {
     SetVehicleVirtualWorld(Set_V_W[i], 5); // VirtualWorldID = 5
  }
Reply
#9

Thanks works fine
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)