09.05.2011, 17:36
I have this bug on vehicle 535 (slamvan) on other vehicles i didn't tested
1115 = chrome bullbar
1117 = chrome bumper
part 1115 is:
part 1117 is:
both parts on car is:
now...
GetVehicleComponentType(1115) = 10
GetVehicleComponentType(1117) = 10
server thinks that this parts from 1 slot, so:
code from OnPlayerText, problem in comments
BUT!
on vehicle will be both parts, 1115 and 1117
so... how can i spawn vehicle and tune it with parts 1115 and 1117 without any players in vehicle?
P.S. Even if player was in vehicle, after vehicle restream, on vehicle will be only 1 part
1115 = chrome bullbar
1117 = chrome bumper
part 1115 is:
part 1117 is:
both parts on car is:
now...
GetVehicleComponentType(1115) = 10
GetVehicleComponentType(1117) = 10
server thinks that this parts from 1 slot, so:
code from OnPlayerText, problem in comments
Code:
if (strcmp("/spawnvan", cmdtext, true) == 0) { new Float:x, Float:y, Float:z, vehicleid; GetPlayerPos(playerid, x, y, z); vehicleid = CreateVehicle(535, x, y, z, 0.0, 10, 10, 60); AddVehicleComponent(vehicleid,1115); //this will put 1115 on car AddVehicleComponent(vehicleid,1117); //this will REPLACE 1115 to 1117, so on car will be only part 1117 return 1; }
Code:
if (strcmp("/spawnvan", cmdtext, true) == 0) { new Float:x, Float:y, Float:z, vehicleid; GetPlayerPos(playerid, x, y, z); vehicleid = CreateVehicle(535, x, y, z, 0.0, 10, 10, 60); PutPlayerInVehicle(playerid, vehicleid, 0); AddVehicleComponent(vehicleid,1115); AddVehicleComponent(vehicleid,1117); return 1; }
so... how can i spawn vehicle and tune it with parts 1115 and 1117 without any players in vehicle?
P.S. Even if player was in vehicle, after vehicle restream, on vehicle will be only 1 part