Cars not showing up in-game
#1

SO I put all these car lines under OnGameModeInit and they do not show up in-game at all.
Maybe I forgot something, idk?

Here's my whole OngameModeInit:

Код:
public OnGameModeInit()
{
	SetGameModeText("Amazing Stunting/DM");
	AddPlayerClass(0,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(1,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(2,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(7,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(9,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(10,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(11,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(12,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(13,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(14,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(15,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(16,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(17,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(18,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(19,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(20,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(21,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(22,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(23,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(24,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(25,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(26,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(27,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(28,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(29,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(30,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(31,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(32,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(33,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(34,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(35,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(36,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(37,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(38,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(39,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(40,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(41,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(42,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(43,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);  
  AddPlayerClass(44,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(45,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(46,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(47,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(48,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(49,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(50,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(51,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(52,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(53,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(54,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(55,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(56,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(57,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(58,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(59,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(60,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(61,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(62,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(63,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(64,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(65,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(66,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(67,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(68,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(69,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(70,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(71,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(72,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(73,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(74,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(75,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(76,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(78,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(79,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(80,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(81,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(82,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(83,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(84,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(86,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(87,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(88,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(89,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(90,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0); 
  AddPlayerClass(91,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(92,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(93,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(94,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(95,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(96,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(97,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(98,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(99,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(100,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(101,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(102,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(103,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(104,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(105,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(106,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(107,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(108,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(110,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(111,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(112,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(113,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(113,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(114,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(115,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(116,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(117,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(118,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(119,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(120,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(121,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(122,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(123,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(124,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(125,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(126,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(127,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(128,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(129,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(130,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(131,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(132,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(133,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(134,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(135,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(136,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(137,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(138,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(139,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(140,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(141,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(142,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(143,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(144,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(145,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(146,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(147,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(148,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(150,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(152,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(153,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(154,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(155,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(156,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(157,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(158,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(159,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(160,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(161,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(162,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(163,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(164,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(165,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(166,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(167,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(168,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(169,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(170,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(171,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(172,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(173,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(174,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  AddPlayerClass(175,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(176,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(177,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(178,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(179,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(180,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(181,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(182,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(183,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(184,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(185,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(186,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(187,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(188,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(189,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(190,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(191,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(192,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(193,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(194,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(195,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(196,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(197,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(198,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(199,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(200,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(201,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
  	AddPlayerClass(202,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
	AddStaticVehicleEx(415, -1409.3805,-229.5955,14.1484,321.6740, 0, 1, 5);
    AddStaticVehicleEx(415,1404.0255,-232.6355,14.1484,329.1940, 0, 1, 5);
    AddStaticVehicleEx(415,-1395.2367,-236.8811,14.1484,328.2540, 0, 1, 5);
    AddStaticVehicleEx(415, -1389.8711,-239.5804,14.1484,328.2540, 0, 1, 5);
    AddStaticVehicleEx(541, -1384.6807,-242.1953,14.1484,328.2540, 0, 1, 5);
    AddStaticVehicleEx(541, -1379.4590,-244.7483,14.1440,328.2540, 0, 6, 5);
    AddStaticVehicleEx(541, -1374.5664,-248.8551,14.1440,309.7672, 2, 8, 5);
	UsePlayerPedAnims();

	return 1;
}
Reply
#2

If the skins are invisible, change the camera position.

EDIT: Eh, didn't notice title.
Reply
#3

The skins are visible. I'm talking about the cars not the skins.
Reply
#4

I got it working.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)