18.01.2019, 02:18
I'm using this "https://sampforum.blast.hk/showthread.php?tid=648101" editor, and the cars are added like this:
Is it wrong to do so or is it simply the same?
PHP код:
new g_Object[2];
new g_Vehicle[2];
g_Object[0] = CreateObject(18646, -1973.4848, 725.1199, 46.2467, 0.0000, 0.0000, -90.2997); //PoliceLight1
g_Object[1]= CreateObject(18646, -1942.7042, 723.6320, 46.0806, 0.0000, 0.0000, -91.9000); //PoliceLight1
g_Vehicle[0] = CreateVehicle(490, -1975.2310, 723.7282, 45.6867, -90.2997, 0, 0, -1); //FBI Rancher
g_Vehicle[1] = CreateVehicle(490, -1996.2443, 704.9424, 45.6868, -0.0998, 0, 0, -1); //FBI Rancher
AttachObjectToVehicle(g_Object[0], g_Vehicle[1], 0.0000, 1.7398, 0.5598, 0.0000, 0.0000, 0.0000);
AttachObjectToVehicle(g_Object[1, g_Vehicle[1], 0.0000, 1.2199, 0.2500, 0.0000, 0.0000, 0.0000);