Vehicles not spawning.
#1

Hey guys, today I've a problem. I've added a bunch of vehicles in the function OnGameModeInit which you're supposed to, then when I turn on the server. It says 'number of vehicle models: 0', I login to my server and what happens is there is no vehicles. I tried debugging on in the function 'OnVehicleSpawn(playerid)' and then, just write in like 'print("Vehicle spawned")' and it dosen't send it.

So I don't really know what's happening.

I'd like a solution, thanks.

Here's the bunch of vehicles I added in OnGameModeInit.

And I think something is blocking it from spawning, I guess 'ManualVehicleEngineAndLights();', cause it's part of my engine system.
pawn Код:
//LSPD
    AddStaticVehicleEx(523,1585.2291,-1676.4011,5.4624,270.0000,-1,-1,900); //police bike
    AddStaticVehicleEx(523,1585.2291,-1679.0729,5.4607,270.0000,-1,-1,900); //police bike
    AddStaticVehicleEx(596,1583.3301,-1710.1624,5.6129,0,-1,-1,900); //police lspd car
    AddStaticVehicleEx(598,1587.4896,-1710.1624,5.6129,0,-1,-1,900); //police lvpd car
    AddStaticVehicleEx(427,1558.7682,-1710.4094,6.0225,359.5701,-1,-1,900); //police enforcer
    AddStaticVehicleEx(596,1578.5399,-1710.1624,5.6129,0,-1,-1,900); //police lspd car
    AddStaticVehicleEx(596,1574.4989,-1710.1624,5.6129,0,-1,-1,900); //police lspd car
    AddStaticVehicleEx(596,1570.3170,-1710.1624,5.6129,0,-1,-1,900); //police lspd car
    AddStaticVehicleEx(596,1535.7517,-1678.2754,15.0000,0,-1,-1,900); //police lspd car
    AddStaticVehicleEx(497,1549.5,-1644.1257,33.0,90.0,0,1,900); // Roof Chopper
    AddStaticVehicleEx(497,1549.5,-1707.3848,33.0,90.0,0,1,900); // Roof Chopper
    AddStaticVehicleEx(601,1564.4753,-1711.6448,5.6510,5.6801,-1,-1,900); //swat tank
    AddStaticVehicleEx(528,1558.0299,-1694.0360,5.9432,180,-1,-1,900); //swat vehicle
    AddStaticVehicleEx(528,1561.2257,-1694.0164,5.9347,180,-1,-1,900); //swat vehicle 02
    AddStaticVehicleEx(598,1591.4315,-1710.1624,5.6255,0,-1,-1,900); //police lvpd car
    AddStaticVehicleEx(596,1601.8004,-1704.2368,5.6111,90,-1,-1,900); //police lspd car
    AddStaticVehicleEx(596,1601.8004,-1700.1127,5.6111,90,-1,-1,900); //police lspd car
    AddStaticVehicleEx(596,1601.8004,-1696.0378,5.6111,90,-1,-1,900); //police lspd car
    AddStaticVehicleEx(596,1601.8004,-1691.9602,5.6111,90,-1,-1,900); //police lspd car
    AddStaticVehicleEx(596, 1535.7517, -1668.5831, 13.1053, 360.0000, 0, 1, 900); // police lspd car
    AddStaticVehicleEx(599,1585.3041,-1671.7306,6.1209,269.1276,0,1,900); //police rancher car
    AddStaticVehicleEx(599,1585.5951,-1667.6407,6.0218,270.1369,0,1,900); //police rancher car
    AddStaticVehicleEx(598,1601.8846,-1683.9987,5.6107,89.8121,0,1,900); //police lvpd car
    AddStaticVehicleEx(598,1602.0452,-1687.9415,5.6112,90.9819,0,1,900); //police lvpd car
    AddStaticVehicleEx(523,1600.2445,-1711.6592,5.4535,44.0296,0,1,900); //police bike
    AddStaticVehicleEx(523,1602.6547,-1709.4182,5.4535,46.7312,0,1,900); //police bike
    AddStaticVehicleEx(598,1595.4485,-1710.2502,5.6096,359.5797,0,1,900); //police lvpd car
    //SPAWN CARS
    AddStaticVehicleEx(579,883.5909,-1658.0751,13.4765,180.1207,0,0,900); // Huntley
    AddStaticVehicleEx(421,870.3824,-1678.7533,13.4294,179.4584,1,1,900); // Washington
    AddStaticVehicle(445,892.5893,-1658.0291,13.4219,179.9542,35,35);
    //HOSPITAL
    AddStaticVehicleEx(563, 1162.5315, -1373.2607, 32.3312, 270.1107, 3, 1, 900); // Raindance 1
    AddStaticVehicleEx(563, 1163.3928, -1357.1760, 32.3656, 269.4890, 3, 1, 900); //Raindance 2
    //AIRPORT
    AddStaticVehicleEx(519,1889.6531,-2629.1267,14.4657,0,-1,-1,900); // Shamal 1
    AddStaticVehicleEx(519,1823.1190,-2629.1267,14.4657,0,-1,-1,900); // Shamal 2
    AddStaticVehicleEx(519,1754.5325,-2629.1267,14.4657,0,-1,-1,900); // Shamal 3
    AddStaticVehicleEx(487,1964.2646,-2629.1267,13.7619,0,-1,-1,900); // Heli 1
    AddStaticVehicleEx(487,1944.7985,-2629.1267,13.7354,0,-1,-1,900); // Heli 2
    AddStaticVehicleEx(417,1765.6274,-2285.0801,26.8743,0,-1,-1,900); // Levi 1
    AddStaticVehicleEx(593,1616.7531,-2627.9131,14.0094,0,-1,-1,900); // Dodo 1
    AddStaticVehicleEx(593,1681.9587,-2627.9131,14.0094,0,-1,-1,900); // Dodo 2
    //BOATS
    AddStaticVehicleEx(430,2473.2754,-2716.4000,0,90,-1,-1,900); // LSPD 1
    AddStaticVehicleEx(430,2446.4270,-2716.4000,0,90,-1,-1,900); // LSPD 2
    //NEWS AGENCY
    AddStaticVehicleEx(582,755.2141,-1335.2787,13.5944,180,90,2,900); // NewsVan 1
    AddStaticVehicleEx(582,764.7657,-1335.2787,13.5944,180,90,2,900); // NewsVan 2
    AddStaticVehicleEx(582,760.1548,-1335.2787,13.5944,180,90,2,900); // NewsVan 3
    AddStaticVehicleEx(582,769.1149,-1335.2787,13.5944,180,90,2,900); // NewsVan 4
    AddStaticVehicleEx(488,742.3518,-1371.2245,25.8695,360,-1,-1,900); // Heli 4
    //COMMENTED
    /*PARAMEDICS
    AddStaticVehicleEx(416,1177.1511,-1308.8158,14.0000,-90,-1,-1,900); // Paramedic 1
    AddStaticVehicleEx(416,1177.1511,-1339.0392,14.0000,-90,-1,-1,900); // Paramedic 2
    AddStaticVehicleEx(416,2037.1144,-1427.5453,20.0000,0,-1,-1,900); // Paramedic 3
    AddStaticVehicleEx(416,2007.2174,-1410.5946,20.0000,90,-1,-1,900); // Paramedic 4
    AddStaticVehicleEx(407,1750.7942,-1455.4712,13.7848,269.8957,3,0,900); // Firetruck 1
    AddStaticVehicleEx(407,1706.6632,-1483.4213,13.6953,180.1329,3,0,900); // Firetruck 2
    */

    //BIKES
    AddStaticVehicleEx(481,1909.3695,-1416.4291,16.0000,90.0000,26,1,900); // Skatepark 1
    AddStaticVehicleEx(481,1927.2667,-1436.1995,16.0000,90.0000,26,1,900); // Skatepark 2
    //BOATS
    AddStaticVehicleEx(484,719.9970,-1696.9248,0.1500,180.0000,1,1,900); // Boat 1
    AddStaticVehicleEx(453,719.9970,-1626.4930,0.1500,180.0000,1,1,900); // Boat 2
    AddStaticVehicleEx(453,719.9970,-1638.4017,0.1500,180.0000,1,1,900); // Boat 3
    //STRANDEDCARS
    AddStaticVehicleEx(480,2493.5391,1239.4542,10.5939,0.1534,1,1,900); // Comet 1
    AddStaticVehicleEx(480,-1576.0280,-2728.5027,48.2507,144.9941,1,1,900); // Comet 2
    AddStaticVehicleEx(480,2441.3447,2017.1165,10.5276,270.8628,1,1,900); // Comet 3
    AddStaticVehicleEx(480,1117.5936,2069.2937,10.5276,181.1499,1,1,900); // Comet 4
    AddStaticVehicleEx(480,920.9744,2012.0786,10.8600,269.9051,1,1,900); // Comet 5
    //SPECIAL
    AddStaticVehicleEx(454,729.2374,-1496.4160,0.2745,179.2701,-1,-1,900); // boat1
    AddStaticVehicleEx(512,-1436.8271,-946.4916,201.3638,270.5414,-1,-1,900); // cropduster
    AddStaticVehicleEx(532,-346.0279,-1067.7395,60.5232,357.7303,-1,-1,900); // combineharvester
    AddStaticVehicleEx(442,930.0162,-1064.6062,24.1230,179.2080,0,0,900); // romero
    AddStaticVehicleEx(525, 2282.9084, -2351.3218, 13.4, 225.36, 1, 79, 900); // TowTruck Pos
    AddStaticVehicleEx(525, 2289.9924, -2344.1809, 13.4, 225.36, 1, 79, 900); // TowTruck Pos
    AddStaticVehicleEx(525, 2297.6077, -2336.4568, 13.4, 225.36, 1, 79, 900); // TowTruck Pos
    AddStaticVehicleEx(572,743.7960,-594.3464,16.9159,269.2212,3,3,900); // mower
    AddStaticVehicleEx(428,1385.0476,-1009.4760,27.3589,0.1330,-1,-1,900); // bankvan
    AddStaticVehicleEx(508,-89.3810,-1604.8574,2.9916,121.6778,-1,-1,900); // camper
    AddStaticVehicleEx(469,1291.3120,-789.5865,96.4699,359.3932,-1,-1,900); // heli
    AddStaticVehicleEx(495,452.7136,-1812.0624,5.8968,181.9573,-1,-1,900); // sandking1
    AddStaticVehicleEx(495,447.6973,-1812.1508,5.8961,181.4140,-1,-1,900); // sandking2
    AddStaticVehicleEx(553,2112.0979,-2422.7620,14.8796,177.6028,73,118,900); // nevada
    AddStaticVehicleEx(530,1083.8391,-1230.6941,15.5836,0.0,-1,-1,900); // forklift
    AddStaticVehicleEx(446,2106.2417,-94.8254,-0.3685,125.0311,-1,-1,900); // speedboat
    AddStaticVehicleEx(577,1585.6345,1188.1622,10.6200,180.0000,1,1,900); // lv plane
    AddStaticVehicleEx(470,1544.1649,16.5959,24.1309,99.8654,-1,-1,900); // partiot
    AddStaticVehicleEx(478,1535.5079,25.7885,24.1359,193.4562,-1,-1,900); // walton
    AddStaticVehicleEx(489,1547.9408,-20.5773,21.5223,270.9849,0,0,900); // rancher 1
    AddStaticVehicleEx(489,1520.1488,5.2112,24.1746,281.2211,0,0,900); // rancher 2
    //PRISON DODOS
    AddStaticVehicleEx(593,290.5624,2538.5356,17.2802,178.4264,58,8,900);
    AddStaticVehicleEx(593,325.2500,2545.2344,17.2693,178.9794,60,1,900);
    //FBI
    AddStaticVehicleEx(490,1759.6000,-1680.1136,16.0000,270.0000,0,0,900); // Rancher 1
    AddStaticVehicleEx(490,1759.6000,-1675.2715,16.0000,270.0000,0,0,900); // Rancher 2
    AddStaticVehicleEx(482,1759.6000,-1667.3435,16.0000,270.0000,0,0,900); // Burrito 1
    AddStaticVehicleEx(482,1759.6000,-1661.9944,16.0000,270.0000,0,0,900); // Burrito 2
    AddStaticVehicleEx(415,1775.1281,-1703.4574,16.0000,358.0000,0,0,900); // Cheetah 1
    AddStaticVehicleEx(415,1783.0220,-1703.4574,16.0000,358.0000,0,0,900); // Cheetah 2
    // TRASHMAN
    AddStaticVehicleEx(408, 2183.7778, -1989.2, 16.0, 0.0, 1, 1, 900); // Trashmaster #1
    AddStaticVehicleEx(408, 2188.0386, -1989.2, 16.0, 0.0, 1, 1, 900); // Trashmaster #2
    AddStaticVehicleEx(408, 2192.1223, -1989.2, 16.0, 0.0, 1, 1, 900); // Trashmaster #3
    AddStaticVehicleEx(574,2156.8496,-1970.3,16.0,0.0,1,1,900); // Sweeper #1
    AddStaticVehicleEx(574,2159.9492,-1970.3,16.0,0.0,1,1,900); // Sweeper #2
    AddStaticVehicleEx(574,2163.0276,-1970.3,16.0,0.0,1,1,900); // Sweeper #3
    AddStaticVehicleEx(574,2165.9788,-1970.3,16.0,0.0,1,1,900); // Sweeper #4
    //TAXI VEHICLES
    AddStaticVehicleEx(438,1732.7784,-1858.6791,16.000,270,-1,-1,900); // Oldschool Cab 1
    AddStaticVehicleEx(438,1755.5264,-1858.6791,16.000,270,-1,-1,900); // Oldschool Cab 2
    AddStaticVehicleEx(438,1802.4722,-1864.7412,13.5806,358.2501,-1,-1,900); // Oldschool Cab 3
    AddStaticVehicleEx(438,1798.2456,-1864.6693,13.5776,359.2436,-1,-1,900); // Oldschool Cab 4
    AddStaticVehicleEx(420,1749.4923,-1851.2766,16.000,90,-1,-1,900); // Taxi 1
    AddStaticVehicleEx(420,1730.4237,-1851.2766,16.000,90,-1,-1,900); // Taxi 2
    AddStaticVehicleEx(420,1791.7245,-1864.8146,13.3530,0,-1,-1,900); // Taxi 3
    //GROVE
    AddStaticVehicleEx(550,2489.4717,-1682.6398,13.1574,270.4214,86,86,900); // Sunrise 1
    AddStaticVehicleEx(550,2487.4917,-1655.0593,13.1558,90.0239,86,86,900); // Sunrise 2
    AddStaticVehicleEx(492,2506.0317,-1676.8611,13.1585,325.6313,86,36,900); // Greenwood 3
    AddStaticVehicleEx(492,2508.3210,-1666.6718,13.1791,13.1814,86,36,900); // Greenwood 4
    AddStaticVehicleEx(509,2525.9890,-1663.8104,16.0,90.0,86,36,900); // Grove Street LowRiderbike #1
    AddStaticVehicleEx(509,2527.8147,-1663.8104,16.0,90.0,86,36,900); // Grove Street LowRiderbike #2
    //BALLAS
    AddStaticVehicleEx(566,2015.3771,-1130.9552,24.7592,89.4981,85,85,900); // Tahoma 1
    AddStaticVehicleEx(566,1993.3444,-1130.9552,25.3730,89.4981,85,85,900); // Tahoma 2
    AddStaticVehicleEx(566,2013.4194,-1094.5210,24.4616,339.1252,85,85,900); // Tahoma 3
    AddStaticVehicleEx(566,2008.5813,-1092.7949,24.4593,339.3990,85,85,900); // Tahoma 4
    //TRAIN
    AddStaticVehicleEx(538,1700.7551,-1953.6531,14.8756,200.0,-1,-1,900); // Train
My server log.
Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3e-R2, ©2005-2012 SA-MP Team

[14:42:26] weburl = "www.sa-mp.com"  (string)
[14:42:26] 
[14:42:26] Server Plugins
[14:42:26] --------------
[14:42:26]  Loading plugin: sscanf
[14:42:26] 

[14:42:26]  ===============================

[14:42:26]       sscanf plugin loaded.     

[14:42:26]    © 2009 Alex "******" Cole

[14:42:26]    0.3d-R2 500 Players "dnee"

[14:42:26]  ===============================

[14:42:26]   Loaded.
[14:42:26]  Loading plugin: streamer.dll
[14:42:26] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[14:42:26]   Loaded.
[14:42:26]  Loaded 2 plugins.

[14:42:26] 
[14:42:26] Ban list
[14:42:26] --------
[14:42:26]  Loaded: samp.ban
[14:42:26] 
[14:42:26] 
[14:42:26] Filterscripts
[14:42:26] ---------------
[14:42:26]   Loading filterscript 'ls_elevator.amx'...
[14:42:26]   Loading filterscript 'spawner.amx'...
[14:42:26] 
--------------------------------------
[14:42:26]  ~ Vehicle Spawner Loaded! ~
[14:42:26]  ~ Scripted by RedWingz ~
[14:42:26] --------------------------------------

[14:42:26]   Loaded 2 filterscripts.

[14:42:26]  
[14:42:26]  
[14:42:26]  
[14:42:26]  ======================================= 
[14:42:26]  |                                     | 
[14:42:26]  |        YSI version 1.06.0002        | 
[14:42:26]  |        By Alex "******" Cole        | 
[14:42:26]  |                                     | 
[14:42:26]  ======================================= 
[14:42:26]  
[14:42:26]  
[14:42:26]  
[14:42:26]
Reply
#2

My ideas:
1) Maybe you were in different virtual world?
2) Try it without random colors
3) Try it without any plugins
4) Try spawn only HOSPITAL vehicles
5) Place any print("Test") before all AddStaticVehicleEx
Reply
#3

Quote:
Originally Posted by papedo
Посмотреть сообщение
My ideas:
1) Maybe you were in different virtual world?
2) Try it without random colors
3) Try it without any plugins
4) Try spawn only HOSPITAL vehicles
5) Place any print("Test") before all AddStaticVehicleEx
1) When I spawn, I always set my virtual world to 0.
2) I don't think that will work...
3) Sure, I'll test it out.
4) Already tried it like that. But different cars.
5) Did that, in 'OnVehicleSpawn'.

EDIT: 3) Won't work, cause my script uses those plugins, sscanf mostly is used in ALL my commands so yeah. I have to delete them all? That'll be pretty long, my script has alot of lines too.
Reply
#4

try it before all AddStaticVehicleEx... is possible, some code is wrong before adding cars and it stops execution of other things like adding vehicles..
Reply
#5

Quote:
Originally Posted by papedo
Посмотреть сообщение
try it before all AddStaticVehicleEx... is possible, some code is wrong before adding cars and it stops execution of other things like adding vehicles..
Sure....... Yeah but isn't OnVehicleSpawn for it? Or you mean just put
E.G:
pawn Код:
print("Vehicle spawned")
//1st ever addstaticvehicleex
AddStaticVehicleEx(523,1585.2291,-1676.4011,5.4624,270.0000,-1,-1,900); //police bike
Do you mean that?
Reply
#6

Quote:
Originally Posted by JustinAn
Посмотреть сообщение
pawn Код:
print("Vehicle spawned")
//1st ever addstaticvehicleex
AddStaticVehicleEx(523,1585.2291,-1676.4011,5.4624,270.0000,-1,-1,900); //police bike
yes, it is, what i suggested = check if AddStaticVehicleEx is executed, or not..

Prints server log "Vehicle spawned" ?
Reply
#7

Quote:
Originally Posted by papedo
Посмотреть сообщение
yes, it is, what i suggested = check if AddStaticVehicleEx is executed, or not..

Prints server log "Vehicle spawned" ?
I don't think that'll work, I regret what I said. It also says number of vehicle models '0'. Which is send out by the server console and before I had addstaticvehicleex and everything was working fine but later on, it didn't.
Reply
#8

Quote:
Originally Posted by JustinAn
Посмотреть сообщение
I don't think that'll work, I regret what I said. It also says number of vehicle models '0'. Which is send out by the server console and before I had addstaticvehicleex and everything was working fine but later on, it didn't.
... just try it. It is something what you can done in 2 minits, so why you didnt tried it, yet ?
Reply
#9

try CreateVehicle
Reply
#10

I don't get this, CreateVehicle's not working. Here I'll give you my whole OnGameModeInit.

pawn Код:
public OnGameModeInit()
{
    SetGameModeText("FL:RP v1.0.0");
    SetNameTagDrawDistance(30.0);
    AllowInteriorWeapons(1);
    ShowPlayerMarkers(0);
    EnableStuntBonusForAll(0);
    DisableInteriorEnterExits();
    ManualVehicleEngineAndLights();


    iBank = CreatePickup(1239, 23, 1462.3583,-1011.1033,26.8438, -1);
    iBank2 = CreatePickup(1239, 23, 2305.5093,-15.9211,26.7496, -1);

    Binco = CreatePickup(1239, 23, 2244.4331,-1665.4200,15.4766, -1);
    Binco2 = CreatePickup(1239, 23, 207.7066,-110.6650,1005.1328, -1);

    LSPD = CreatePickup(1239, 23, 1555.4988,-1675.5946,16.1953, -1);
    LSPD2 = CreatePickup(1239, 23, 246.8142,62.3286,1003.6406, -1);

    Tower = CreatePickup(1239, 23, 1570.7683,-1337.4890,16.4844, -1);
    Tower2 = CreatePickup(1239, 23, 1548.6519,-1363.7407,326.2183, -1);

    Ammu = CreatePickup(1239, 23, 1368.8627,-1279.8243,13.5469, -1);
    Ammu2 = CreatePickup(1239, 23, 285.3052,-41.6645,1001.5156, -1);

    Gym = CreatePickup(1239, 23, 2229.9338,-1721.2891,13.5616, -1);
    Gym2 = CreatePickup(1239, 23, 772.2196,-5.5162,1000.7283, -1);

    para = CreatePickup(371, 2, 1544.2,-1353.4,329.4, -1); //Parachute
    dildo = CreatePickup(321, 2, 261.6014,71.2014,1003.2422, -1); //PD Dildo

    iAd = CreatePickup(1239, 23, 646.1774,-1352.6018,13.5469, -1);

    iBallas = CreatePickup(1239, 23, 2000.0439,-1114.1256,27.1250, -1); //Ballas

    iHOSPITAL = CreatePickup(1239, 23, 1172.6975, -1325.3914, 15.4019, -1); //HOSPITAL
    iHOSPITAL2 = CreatePickup(1239, 23, 1154.5747,-1342.8130,26.6823, -1); //HOSPITAL 2

    iTraining = CreatePickup(1239, 23, 766.1840,13.3013,1000.7027, -1); //Training

    iOrder = CreatePickup(1210, 23, 286.3300,-107.9571,1001.5156,-1); //Hitman Pickup
   
    Infirminary = CreatePickup(1239, 23, 1805.7552,-1576.6217,1636.9736, -1); //Infirminary
   
    Infirminary2 = CreatePickup(1239, 23, 201.4455,1869.6014,13.140, -1); //Infirminary (demorgan)


    //Text
    txtAnimHelper = TextDrawCreate(610.0, 400.0,
    "~r~~k~~PED_SPRINT~ ~w~to stop the animation");
    TextDrawUseBox(txtAnimHelper, 0);
    TextDrawFont(txtAnimHelper, 2);
    TextDrawSetShadow(txtAnimHelper,0);
    TextDrawSetOutline(txtAnimHelper,1);
    TextDrawBackgroundColor(txtAnimHelper,0x000000FF);
    TextDrawColor(txtAnimHelper,0xFFFFFFFF);
    TextDrawAlignment(txtAnimHelper,3);


    // Job
    iMechanic = CreatePickup(1239, 23, 2329.4089,-2316.0996,13.5469); //Mechanic
    iBodyguard = CreatePickup(1239, 23, 2226.1716,-1718.1792,13.5165); //Bodyguard

    //Gas
    checkgastimer = SetTimer("CheckGas", 15000, 1);
    stoppedvehtimer = SetTimer("StoppedVehicle", 15000, 1);

    //UnJail
    unjailtimer = SetTimer("SetPlayerUnjail", 1000, 1);

    //Save Chars
    savechartimer = SetTimer("SaveChars", 120000, 1); //20 mins
    idletimer = SetTimer("IdleKick", 600000, 1);

    //MATPICKUP OBJECTS
    CreateObject(944, 2386.495605, -2008.356934, 13.438490, 0.0000, 0.0000, 0.0000);
    CreateObject(1271, 2387.261719, -2007.988037, 14.349586, 0.0000, 0.0000, 0.0000);
    CreateObject(2358, 2386.569336, -2007.799561, 14.116121, 0.0000, 0.0000, 0.0000);
    CreateObject(2359, 2384.486084, -2007.849976, 12.763988, 0.0000, 0.0000, 0.0000);
    CreateObject(2358, 2387.232178, -2008.728516, 14.116121, 0.0000, 0.0000, 337.5000);
    CreateObject(1635, 2395.528320, -2008.089722, 16.236403, 0.0000, 0.0000, 90.0000);
    CreateObject(1522, 2389.684326, -2007.461548, 12.540270, 0.0000, 0.0000, 0.0000);
   
    //PRISON INSIDE
    CreateObject(14412, 1789.184448, -1569.734131, 1645.317383, 0.000000, 0.000000, 0.000000);
    CreateObject(18553, 1757.807495, -1577.933228, 1641.404663, 0.000000, 0.000000, -180.859341949);
    CreateObject(1800, 1771.276611, -1584.358398, 1635.990845, 0.000000, 0.000000, 0.000000);
    CreateObject(1966, 1770.740234, -1583.169922, 1637.284180, 0.000000, 0.000000, 89.999981276);
    CreateObject(1966, 1776.392700, -1583.226563, 1637.359253, 0.000000, 0.000000, 89.999981276);
    CreateObject(1966, 1798.508789, -1583.209229, 1637.310425, 0.000000, 0.000000, 89.999981276);
    CreateObject(2514, 1775.742798, -1582.768799, 1635.972778, 0.000000, 0.000000, -180.000019848);
    CreateObject(1508, 1806.459961, -1576.635376, 1637.506836, 0.000000, 0.000000, 0.000000);
    CreateObject(14459, 1784.398560, -1569.747925, 1643.005615, 0.000000, 0.000000, 0.000000);
    CreateObject(14414, 1768.359863, -1563.225098, 1636.910400, 0.000000, 0.000000, 179.999962552);
    CreateObject(1499, 1766.208862, -1580.001831, 1640.113403, 0.000000, 0.000000, 269.999943828);
    CreateObject(1499, 1766.235107, -1583.019409, 1640.106812, 0.000000, 0.000000, 90.0000385718);
    CreateObject(8060, 1791.806763, -1535.868530, 1634.645874, -181.340741088, 0.000000, 0.000114591559026);
    CreateObject(1966, 1776.405151, -1556.301025, 1637.259155, 0.000000, 0.000000, 89.999981276);
    CreateObject(1966, 1781.872559, -1556.312622, 1637.260132, 0.000000, 0.000000, 89.999981276);
    CreateObject(1966, 1787.494995, -1556.312012, 1637.309204, 0.000000, 0.000000, 89.999981276);
    CreateObject(1966, 1793.112305, -1556.317383, 1637.309204, 0.000000, 0.000000, 89.999981276);
    CreateObject(1966, 1798.479492, -1556.314819, 1637.334961, 0.000000, 0.000000, 89.999981276);
    CreateObject(2514, 1801.900879, -1556.299805, 1635.972778, 0.000000, 0.000000, -360.000039696);
    CreateObject(2514, 1797.694580, -1556.320923, 1635.972778, 0.000000, 0.000000, -360.000039696);
    CreateObject(2514, 1792.343384, -1556.328247, 1635.972778, 0.000000, 0.000000, -360.000039696);
    CreateObject(2514, 1786.635132, -1556.303223, 1635.972778, 0.000000, 0.000000, -360.000039696);
    CreateObject(2514, 1775.718750, -1556.331665, 1635.972778, 0.000000, 0.000000, -360.000039696);
    CreateObject(2514, 1781.187256, -1556.340454, 1635.972778, 0.000000, 0.000000, -360.000039696);
    CreateObject(1800, 1771.360718, -1559.318848, 1635.851929, 0.000000, 0.000000, 0.000000);
    CreateObject(1800, 1777.049072, -1559.313843, 1635.801880, 0.000000, 0.000000, 0.000000);
    CreateObject(1800, 1782.598267, -1559.296021, 1635.826904, 0.000000, 0.000000, 0.000000);
    CreateObject(1800, 1788.114868, -1559.312378, 1635.801880, 0.000000, 0.000000, 0.000000);
    CreateObject(1800, 1793.790649, -1559.328369, 1635.901978, 0.000000, 0.000000, 0.000000);
    CreateObject(1800, 1799.285767, -1559.336670, 1635.901978, 0.000000, 0.000000, 0.000000);
    CreateObject(16378, 1760.124512, -1569.561523, 1640.866821, 0.000000, 0.000000, 180.000019848);
    CreateObject(16154, 1761.361694, -1562.671509, 1640.236450, 0.000000, 0.000000, -180.000019848);
    CreateObject(2737, 1757.953247, -1566.131714, 1642.168091, 0.000000, 0.000000, 89.999981276);
    Prison_Buttons[PrisonCells1] = CreateObject(14459, 1784.705322, -1589.811279, 1637.197510, 0.000000, 0.000000, 0.000000);
    Prison_Buttons[PrisonCells2] = CreateObject(14459, 1784.613647, -1549.697021, 1637.217896, 0.000000, 0.000000, -359.9999824);
    CreateObject(1966, 1781.853516, -1583.229004, 1637.334229, 0.000000, 0.000000, 89.999981276);
    CreateObject(1966, 1787.537476, -1583.232300, 1637.343872, 0.000000, 0.000000, 89.999981276);
    CreateObject(1966, 1793.307007, -1583.234009, 1637.309937, 0.000000, 0.000000, 89.999981276);
    CreateObject(2514, 1781.272949, -1582.731934, 1635.972778, 0.000000, 0.000000, -180.000019848);
    CreateObject(2514, 1786.829224, -1582.760132, 1635.972778, 0.000000, 0.000000, -180.000019848);
    CreateObject(2514, 1792.491821, -1582.755005, 1635.972778, 0.000000, 0.000000, -180.000019848);
    CreateObject(2514, 1797.929688, -1582.738647, 1635.972778, 0.000000, 0.000000, -180.000019848);
    CreateObject(2514, 1802.001953, -1582.729614, 1635.972778, 0.000000, 0.000000, -180.000019848);
    CreateObject(1800, 1777.064087, -1584.312622, 1635.977051, 0.000000, 0.000000, 0.000000);
    CreateObject(1800, 1782.810181, -1579.774170, 1635.977051, 0.000000, 0.000000, -179.999962552);
    CreateObject(1800, 1788.411133, -1579.764282, 1635.977051, 0.000000, 0.000000, -179.999962552);
    CreateObject(1800, 1794.223511, -1579.755005, 1635.977051, 0.000000, 0.000000, -179.999962552);
    CreateObject(1800, 1799.393555, -1579.773682, 1635.977051, 0.000000, 0.000000, -179.999962552);
    //PRISON OUTSIDE
    CreateObject(2961, 1765.9000, -1574.0979, 1641.7, 0.000000, 0.000000, 270.0); // Cell Button
    CreateObject(2961, 209.039398, 1813.174683, 22.5, 0.000000, 0.000000, 44.999990638); // Gate Button
    CreateObject(18553, 226.373581, 1872.370239, 14.026321, 0.000000, 0.000000, -0.859436692696);
    CreateObject(1508, 201.098923, 1869.536499, 13.755270, 0.000000, 0.000000, 0.000000);
    CreateObject(1886, 201.656082, 1874.104370, 16.244650, 18.9076072393, 0.000000, 44.999990638); // Camera
    CreateObject(1886, 159.715179, 1931.205322, 32.528725, 16.3292971612, 0.000000, 292.500053739); // Camera
    CreateObject(1886, 264.598419, 1893.736816, 32.537567, 16.3292971612, 0.000000, 270.000001124); // Camera
    CreateObject(1886, 167.735580, 1848.043457, 32.510399, 16.3292971612, 0.000000, 90.0000385718); // Camera
    CreateObject(1886, 460.5567,-92.2545,1002.25, 10.0, 0.0, 235.0); // Camera
    CreateObject(1886, 1766.85, -1570.11, 1646.0, 15.0, 0.0, 90.0); // Camera
    CreateObject(3998, 284.808838, 1892.831299, 3.370023, 0.000000, 0.000000, 89.999981276); //
    CreateObject(1886, 265.112061, 1862.907837, 12.618983, 18.9076072393, 0.000000, 44.999990638); // Camera
    CreateObject(1555, 267.993896, 1864.183838, 7.767914, 0.000000, 0.000000, 0.000000); //
    CreateObject(16095, 267.381104, 1867.212524, 7.609875, 0.000000, 0.000000, 0.000000); //
    CreateObject(16095, 286.108734, 1868.651123, 7.752488, 0.000000, 0.000000, -89.999981276); //
    Prison_Buttons[PrisonGate] = CreateObject(8674, 96.808670, 1920.512817, 16.234968, 0.000000, 90.2408527331, -89.999981276);
    CreateObject(1216, 185.3808, 1923.9442, 17.4, 0.000000, 0.0, 0.0);
    CreateObject(1505, -221.9176, 1404.6, 26.6, 0.000000, 0.000000, -90.00000); // Lil Probe Inn Door For Locker Room
    CreateObject(5822, 1150.8000488281, -1382.5999755859, 20.290000915527, 0, 0, 93.654907226563); // All Saints Stairs



    for(new i = 0; i < MAX_VEHICLES; i++)
    {
        Gas[i] = 100;
    }

    //LSPD
    CreateVehicle(523,1585.2291,-1676.4011,5.4624,270.0000,-1,-1,900); //police bike
    CreateVehicle(523,1585.2291,-1679.0729,5.4607,270.0000,-1,-1,900); //police bike
    CreateVehicle(596,1583.3301,-1710.1624,5.6129,0,-1,-1,900); //police lspd car
    CreateVehicle(598,1587.4896,-1710.1624,5.6129,0,-1,-1,900); //police lvpd car
    CreateVehicle(427,1558.7682,-1710.4094,6.0225,359.5701,-1,-1,900); //police enforcer
    CreateVehicle(596,1578.5399,-1710.1624,5.6129,0,-1,-1,900); //police lspd car
    CreateVehicle(596,1574.4989,-1710.1624,5.6129,0,-1,-1,900); //police lspd car
    CreateVehicle(596,1570.3170,-1710.1624,5.6129,0,-1,-1,900); //police lspd car
    CreateVehicle(596,1535.7517,-1678.2754,15.0000,0,-1,-1,900); //police lspd car
    CreateVehicle(497,1549.5,-1644.1257,33.0,90.0,0,1,900); // Roof Chopper
    CreateVehicle(497,1549.5,-1707.3848,33.0,90.0,0,1,900); // Roof Chopper
    CreateVehicle(601,1564.4753,-1711.6448,5.6510,5.6801,-1,-1,900); //swat tank
    CreateVehicle(528,1558.0299,-1694.0360,5.9432,180,-1,-1,900); //swat vehicle
    CreateVehicle(528,1561.2257,-1694.0164,5.9347,180,-1,-1,900); //swat vehicle 02
    CreateVehicle(598,1591.4315,-1710.1624,5.6255,0,-1,-1,900); //police lvpd car
    CreateVehicle(596,1601.8004,-1704.2368,5.6111,90,-1,-1,900); //police lspd car
    CreateVehicle(596,1601.8004,-1700.1127,5.6111,90,-1,-1,900); //police lspd car
    CreateVehicle(596,1601.8004,-1696.0378,5.6111,90,-1,-1,900); //police lspd car
    CreateVehicle(596,1601.8004,-1691.9602,5.6111,90,-1,-1,900); //police lspd car
    CreateVehicle(596, 1535.7517, -1668.5831, 13.1053, 360.0000, 0, 1, 900); // police lspd car
    CreateVehicle(599,1585.3041,-1671.7306,6.1209,269.1276,0,1,900); //police rancher car
    CreateVehicle(599,1585.5951,-1667.6407,6.0218,270.1369,0,1,900); //police rancher car
    CreateVehicle(598,1601.8846,-1683.9987,5.6107,89.8121,0,1,900); //police lvpd car
    CreateVehicle(598,1602.0452,-1687.9415,5.6112,90.9819,0,1,900); //police lvpd car
    CreateVehicle(523,1600.2445,-1711.6592,5.4535,44.0296,0,1,900); //police bike
    CreateVehicle(523,1602.6547,-1709.4182,5.4535,46.7312,0,1,900); //police bike
    CreateVehicle(598,1595.4485,-1710.2502,5.6096,359.5797,0,1,900); //police lvpd car
    //SPAWN CARS
    CreateVehicle(579,883.5909,-1658.0751,13.4765,180.1207,0,0,900); // Huntley
    CreateVehicle(421,870.3824,-1678.7533,13.4294,179.4584,1,1,900); // Washington
    CreateVehicle(445,892.5893,-1658.0291,13.4219,179.9542,35,35,900); // Admiral
    //HOSPITAL
    CreateVehicle(563, 1162.5315, -1373.2607, 32.3312, 270.1107, 3, 1, 900); // Raindance 1
    CreateVehicle(563, 1163.3928, -1357.1760, 32.3656, 269.4890, 3, 1, 900); //Raindance 2
    //AIRPORT
    CreateVehicle(519,1889.6531,-2629.1267,14.4657,0,-1,-1,900); // Shamal 1
    CreateVehicle(519,1823.1190,-2629.1267,14.4657,0,-1,-1,900); // Shamal 2
    CreateVehicle(519,1754.5325,-2629.1267,14.4657,0,-1,-1,900); // Shamal 3
    CreateVehicle(487,1964.2646,-2629.1267,13.7619,0,-1,-1,900); // Heli 1
    CreateVehicle(487,1944.7985,-2629.1267,13.7354,0,-1,-1,900); // Heli 2
    CreateVehicle(417,1765.6274,-2285.0801,26.8743,0,-1,-1,900); // Levi 1
    CreateVehicle(593,1616.7531,-2627.9131,14.0094,0,-1,-1,900); // Dodo 1
    CreateVehicle(593,1681.9587,-2627.9131,14.0094,0,-1,-1,900); // Dodo 2
    //BOATS
    CreateVehicle(430,2473.2754,-2716.4000,0,90,-1,-1,900); // LSPD 1
    CreateVehicle(430,2446.4270,-2716.4000,0,90,-1,-1,900); // LSPD 2
    //NEWS AGENCY
    CreateVehicle(582,755.2141,-1335.2787,13.5944,180,90,2,900); // NewsVan 1
    CreateVehicle(582,764.7657,-1335.2787,13.5944,180,90,2,900); // NewsVan 2
    CreateVehicle(582,760.1548,-1335.2787,13.5944,180,90,2,900); // NewsVan 3
    CreateVehicle(582,769.1149,-1335.2787,13.5944,180,90,2,900); // NewsVan 4
    CreateVehicle(488,742.3518,-1371.2245,25.8695,360,-1,-1,900); // Heli 4
    //COMMENTED
    /*PARAMEDICS
    CreateVehicle(416,1177.1511,-1308.8158,14.0000,-90,-1,-1,900); // Paramedic 1
    CreateVehicle(416,1177.1511,-1339.0392,14.0000,-90,-1,-1,900); // Paramedic 2
    CreateVehicle(416,2037.1144,-1427.5453,20.0000,0,-1,-1,900); // Paramedic 3
    CreateVehicle(416,2007.2174,-1410.5946,20.0000,90,-1,-1,900); // Paramedic 4
    CreateVehicle(407,1750.7942,-1455.4712,13.7848,269.8957,3,0,900); // Firetruck 1
    CreateVehicle(407,1706.6632,-1483.4213,13.6953,180.1329,3,0,900); // Firetruck 2
    */

    //BIKES
    CreateVehicle(481,1909.3695,-1416.4291,16.0000,90.0000,26,1,900); // Skatepark 1
    CreateVehicle(481,1927.2667,-1436.1995,16.0000,90.0000,26,1,900); // Skatepark 2
    //BOATS
    CreateVehicle(484,719.9970,-1696.9248,0.1500,180.0000,1,1,900); // Boat 1
    CreateVehicle(453,719.9970,-1626.4930,0.1500,180.0000,1,1,900); // Boat 2
    CreateVehicle(453,719.9970,-1638.4017,0.1500,180.0000,1,1,900); // Boat 3
    //STRANDEDCARS
    CreateVehicle(480,2493.5391,1239.4542,10.5939,0.1534,1,1,900); // Comet 1
    CreateVehicle(480,-1576.0280,-2728.5027,48.2507,144.9941,1,1,900); // Comet 2
    CreateVehicle(480,2441.3447,2017.1165,10.5276,270.8628,1,1,900); // Comet 3
    CreateVehicle(480,1117.5936,2069.2937,10.5276,181.1499,1,1,900); // Comet 4
    CreateVehicle(480,920.9744,2012.0786,10.8600,269.9051,1,1,900); // Comet 5
    //SPECIAL
    CreateVehicle(454,729.2374,-1496.4160,0.2745,179.2701,-1,-1,900); // boat1
    CreateVehicle(512,-1436.8271,-946.4916,201.3638,270.5414,-1,-1,900); // cropduster
    CreateVehicle(532,-346.0279,-1067.7395,60.5232,357.7303,-1,-1,900); // combineharvester
    CreateVehicle(442,930.0162,-1064.6062,24.1230,179.2080,0,0,900); // romero
    CreateVehicle(525, 2282.9084, -2351.3218, 13.4, 225.36, 1, 79, 900); // TowTruck Pos
    CreateVehicle(525, 2289.9924, -2344.1809, 13.4, 225.36, 1, 79, 900); // TowTruck Pos
    CreateVehicle(525, 2297.6077, -2336.4568, 13.4, 225.36, 1, 79, 900); // TowTruck Pos
    CreateVehicle(572,743.7960,-594.3464,16.9159,269.2212,3,3,900); // mower
    CreateVehicle(428,1385.0476,-1009.4760,27.3589,0.1330,-1,-1,900); // bankvan
    CreateVehicle(508,-89.3810,-1604.8574,2.9916,121.6778,-1,-1,900); // camper
    CreateVehicle(469,1291.3120,-789.5865,96.4699,359.3932,-1,-1,900); // heli
    CreateVehicle(495,452.7136,-1812.0624,5.8968,181.9573,-1,-1,900); // sandking1
    CreateVehicle(495,447.6973,-1812.1508,5.8961,181.4140,-1,-1,900); // sandking2
    CreateVehicle(553,2112.0979,-2422.7620,14.8796,177.6028,73,118,900); // nevada
    CreateVehicle(530,1083.8391,-1230.6941,15.5836,0.0,-1,-1,900); // forklift
    CreateVehicle(446,2106.2417,-94.8254,-0.3685,125.0311,-1,-1,900); // speedboat
    CreateVehicle(577,1585.6345,1188.1622,10.6200,180.0000,1,1,900); // lv plane
    CreateVehicle(470,1544.1649,16.5959,24.1309,99.8654,-1,-1,900); // partiot
    CreateVehicle(478,1535.5079,25.7885,24.1359,193.4562,-1,-1,900); // walton
    CreateVehicle(489,1547.9408,-20.5773,21.5223,270.9849,0,0,900); // rancher 1
    CreateVehicle(489,1520.1488,5.2112,24.1746,281.2211,0,0,900); // rancher 2
    //PRISON DODOS
    CreateVehicle(593,290.5624,2538.5356,17.2802,178.4264,58,8,900);
    CreateVehicle(593,325.2500,2545.2344,17.2693,178.9794,60,1,900);
    //FBI
    CreateVehicle(490,1759.6000,-1680.1136,16.0000,270.0000,0,0,900); // Rancher 1
    CreateVehicle(490,1759.6000,-1675.2715,16.0000,270.0000,0,0,900); // Rancher 2
    CreateVehicle(482,1759.6000,-1667.3435,16.0000,270.0000,0,0,900); // Burrito 1
    CreateVehicle(482,1759.6000,-1661.9944,16.0000,270.0000,0,0,900); // Burrito 2
    CreateVehicle(415,1775.1281,-1703.4574,16.0000,358.0000,0,0,900); // Cheetah 1
    CreateVehicle(415,1783.0220,-1703.4574,16.0000,358.0000,0,0,900); // Cheetah 2
    // TRASHMAN
    CreateVehicle(408, 2183.7778, -1989.2, 16.0, 0.0, 1, 1, 900); // Trashmaster #1
    CreateVehicle(408, 2188.0386, -1989.2, 16.0, 0.0, 1, 1, 900); // Trashmaster #2
    CreateVehicle(408, 2192.1223, -1989.2, 16.0, 0.0, 1, 1, 900); // Trashmaster #3
    CreateVehicle(574,2156.8496,-1970.3,16.0,0.0,1,1,900); // Sweeper #1
    CreateVehicle(574,2159.9492,-1970.3,16.0,0.0,1,1,900); // Sweeper #2
    CreateVehicle(574,2163.0276,-1970.3,16.0,0.0,1,1,900); // Sweeper #3
    CreateVehicle(574,2165.9788,-1970.3,16.0,0.0,1,1,900); // Sweeper #4
    //TAXI VEHICLES
    CreateVehicle(438,1732.7784,-1858.6791,16.000,270,-1,-1,900); // Oldschool Cab 1
    CreateVehicle(438,1755.5264,-1858.6791,16.000,270,-1,-1,900); // Oldschool Cab 2
    CreateVehicle(438,1802.4722,-1864.7412,13.5806,358.2501,-1,-1,900); // Oldschool Cab 3
    CreateVehicle(438,1798.2456,-1864.6693,13.5776,359.2436,-1,-1,900); // Oldschool Cab 4
    CreateVehicle(420,1749.4923,-1851.2766,16.000,90,-1,-1,900); // Taxi 1
    CreateVehicle(420,1730.4237,-1851.2766,16.000,90,-1,-1,900); // Taxi 2
    CreateVehicle(420,1791.7245,-1864.8146,13.3530,0,-1,-1,900); // Taxi 3
    //GROVE
    CreateVehicle(550,2489.4717,-1682.6398,13.1574,270.4214,86,86,900); // Sunrise 1
    CreateVehicle(550,2487.4917,-1655.0593,13.1558,90.0239,86,86,900); // Sunrise 2
    CreateVehicle(492,2506.0317,-1676.8611,13.1585,325.6313,86,36,900); // Greenwood 3
    CreateVehicle(492,2508.3210,-1666.6718,13.1791,13.1814,86,36,900); // Greenwood 4
    CreateVehicle(509,2525.9890,-1663.8104,16.0,90.0,86,36,900); // Grove Street LowRiderbike #1
    CreateVehicle(509,2527.8147,-1663.8104,16.0,90.0,86,36,900); // Grove Street LowRiderbike #2
    //BALLAS
    CreateVehicle(566,2015.3771,-1130.9552,24.7592,89.4981,85,85,900); // Tahoma 1
    CreateVehicle(566,1993.3444,-1130.9552,25.3730,89.4981,85,85,900); // Tahoma 2
    CreateVehicle(566,2013.4194,-1094.5210,24.4616,339.1252,85,85,900); // Tahoma 3
    CreateVehicle(566,2008.5813,-1092.7949,24.4593,339.3990,85,85,900); // Tahoma 4
    //TRAIN
    CreateVehicle(538,1700.7551,-1953.6531,14.8756,200.0,-1,-1,900); // Train
    //ATMS
    CreateObject(9833, 1479.86, -1640.36, 14.15, 0.00, 0.00, 0.00);
    CreateObject(2622, 1747.91, -1862.89, 13.41, 0.00, 0.00, 0.00);
    CreateObject(2942,1928.673461,-1783.487304,13.114453,0.000000,0.000000,90.431625); //atm object
    CreateObject(2942,2228.281982,-1710.821166,13.177772,0.000000,0.000000,269.949920); // atm object gym
    CreateObject(2618,2228.382324,-1710.860961,12.549647,0.000000,0.000000,269.315551); // atm protection gym

    AddPlayerClass(299,982.1890,-1624.2583,14.952,90,0,0,0,0,0,0);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)