01.09.2017, 15:07
I was mapping admin base using MTA. i converted script and it works but only one problem: i edited all cars to be black but only police car became black, here is picture:
http://prntscr.com/gfusbx
ande here is script:
[/CODE] public OnGameModeInit()
{
AddStaticVehicleEx(451,1084.2000000,-1226.5000000,15.6000000,180.0000000,-1,-1,15); //Turismo
AddStaticVehicleEx(415,1093.5000000,-1226.3000000,15.7000000,180.0000000,-1,-1,15); //Cheetah
AddStaticVehicleEx(411,1098.5000000,-1226.2000000,15.6000000,180.0000000,-1,-1,15); //Infernus
AddStaticVehicleEx(411,1103.7000000,-1226.2000000,15.6000000,180.0000000,-1,-1,15); //Infernus
AddStaticVehicleEx(495,1108.9000000,-1226.0000000,16.4000000,180.0000000,-1,-1,15); //Sandking
AddStaticVehicleEx(522,1090.6000000,-1226.3000000,15.5000000,180.0000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(522,1087.6000000,-1225.5000000,15.5000000,180.0000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(522,1120.3000000,-1249.0000000,15.7000000,360.0000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(481,1083.9000000,-1219.6000000,17.4000000,270.0000000,-1,-1,15); //BMX
AddStaticVehicleEx(560,1110.2000000,-1249.5000000,15.6000000,0.0000000,-1,-1,15); //Sultan
AddStaticVehicleEx(560,1115.2000000,-1249.7000000,15.6000000,0.0000000,-1,-1,15); //Sultan
AddStaticVehicleEx(560,1105.2000000,-1249.5000000,15.6000000,0.0000000,-1,-1,15); //Sultan
AddStaticVehicleEx(560,1099.8000000,-1249.5000000,15.6000000,0.0000000,-1,-1,15); //Sultan
AddStaticVehicleEx(596,1094.0000000,-1249.2000000,15.6000000,0.0000000,-1,-1,15); //Police Car (LSPD)
AddStaticVehicleEx(567,1087.3000000,-1249.1000000,15.8000000,0.0000000,-1,-1,15); //Savanna
AddStaticVehicleEx(482,1086.8000000,-1194.2000000,18.4000000,180.0000000,-1,-1,15); //Burrito
AddStaticVehicleEx(487,1132.7000000,-1244.0000000,25.6000000,90.0000000,-1,-1,15); //Maverick
AddStaticVehicleEx(487,1132.3000000,-1223.0000000,25.6000000,90.0000000,-1,-1,15); //Maverick
CreateObject(2933,1118.9000000,-1160.2000000,24.3000000,0.0000000,0.0000000,0.0000 000); //object(pol_comp_gate) (2)
CreateObject(2933,1118.6000000,-1160.2000000,27.7000000,0.0000000,0.0000000,0.0000 000); //object(pol_comp_gate) (3)
CreateObject(3036,1138.1000000,-1204.5000000,19.6000000,0.0000000,0.0000000,40.000 0000); //object(ct_gatexr) (1)
CreateObject(8614,1123.1000000,-1254.5000000,22.8000000,0.0000000,0.0000000,270.00 00000); //object(vgssstairs01_lvs) (1)
CreateObject(3928,1132.0000000,-1223.0000000,24.3000000,0.0000000,0.0000000,0.0000 000); //object(helipad) (1)
CreateObject(3928,1131.0000000,-1263.6000000,20.5000000,0.0000000,0.0000000,0.0000 000); //object(helipad) (2)
CreateObject(3928,1132.5000000,-1244.1000000,24.3000000,0.0000000,0.0000000,0.0000 000); //object(helipad) (3)
return 1;
} [/CODE]
http://prntscr.com/gfusbx
ande here is script:
[/CODE] public OnGameModeInit()
{
AddStaticVehicleEx(451,1084.2000000,-1226.5000000,15.6000000,180.0000000,-1,-1,15); //Turismo
AddStaticVehicleEx(415,1093.5000000,-1226.3000000,15.7000000,180.0000000,-1,-1,15); //Cheetah
AddStaticVehicleEx(411,1098.5000000,-1226.2000000,15.6000000,180.0000000,-1,-1,15); //Infernus
AddStaticVehicleEx(411,1103.7000000,-1226.2000000,15.6000000,180.0000000,-1,-1,15); //Infernus
AddStaticVehicleEx(495,1108.9000000,-1226.0000000,16.4000000,180.0000000,-1,-1,15); //Sandking
AddStaticVehicleEx(522,1090.6000000,-1226.3000000,15.5000000,180.0000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(522,1087.6000000,-1225.5000000,15.5000000,180.0000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(522,1120.3000000,-1249.0000000,15.7000000,360.0000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(481,1083.9000000,-1219.6000000,17.4000000,270.0000000,-1,-1,15); //BMX
AddStaticVehicleEx(560,1110.2000000,-1249.5000000,15.6000000,0.0000000,-1,-1,15); //Sultan
AddStaticVehicleEx(560,1115.2000000,-1249.7000000,15.6000000,0.0000000,-1,-1,15); //Sultan
AddStaticVehicleEx(560,1105.2000000,-1249.5000000,15.6000000,0.0000000,-1,-1,15); //Sultan
AddStaticVehicleEx(560,1099.8000000,-1249.5000000,15.6000000,0.0000000,-1,-1,15); //Sultan
AddStaticVehicleEx(596,1094.0000000,-1249.2000000,15.6000000,0.0000000,-1,-1,15); //Police Car (LSPD)
AddStaticVehicleEx(567,1087.3000000,-1249.1000000,15.8000000,0.0000000,-1,-1,15); //Savanna
AddStaticVehicleEx(482,1086.8000000,-1194.2000000,18.4000000,180.0000000,-1,-1,15); //Burrito
AddStaticVehicleEx(487,1132.7000000,-1244.0000000,25.6000000,90.0000000,-1,-1,15); //Maverick
AddStaticVehicleEx(487,1132.3000000,-1223.0000000,25.6000000,90.0000000,-1,-1,15); //Maverick
CreateObject(2933,1118.9000000,-1160.2000000,24.3000000,0.0000000,0.0000000,0.0000 000); //object(pol_comp_gate) (2)
CreateObject(2933,1118.6000000,-1160.2000000,27.7000000,0.0000000,0.0000000,0.0000 000); //object(pol_comp_gate) (3)
CreateObject(3036,1138.1000000,-1204.5000000,19.6000000,0.0000000,0.0000000,40.000 0000); //object(ct_gatexr) (1)
CreateObject(8614,1123.1000000,-1254.5000000,22.8000000,0.0000000,0.0000000,270.00 00000); //object(vgssstairs01_lvs) (1)
CreateObject(3928,1132.0000000,-1223.0000000,24.3000000,0.0000000,0.0000000,0.0000 000); //object(helipad) (1)
CreateObject(3928,1131.0000000,-1263.6000000,20.5000000,0.0000000,0.0000000,0.0000 000); //object(helipad) (2)
CreateObject(3928,1132.5000000,-1244.1000000,24.3000000,0.0000000,0.0000000,0.0000 000); //object(helipad) (3)
return 1;
} [/CODE]