12.12.2017, 14:36 
	
	
	
		їHow do I put the siren of a patrol to a sultan?
Thanks in advance
	
	
	
	
Thanks in advance
	
	CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay, addsiren=1)
CMD:siren(playerid, params[])
{
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, ANY_COLOR, "You aren't inside a vehicle");
        new objectid = CreateObject(19620, 0, 0, 0, 0, 0, 0);
        AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.854999, 0.000000, 0.000000, 0.000000);
          return 1;
} 
| 
 PHP код: 
 | 
| 
 I know RogueDrifter, I added a small comment after the code and explained that, thanks anyway 
I prefer a command instead of addsiren parameter, because you don't need to recreate the vehicle in order to add a siren, you can do it while you're driving  | 
| 
 їThat's OK? 
SAPDVehicles[17] = AddStaticVehicleEx(560,1529.1791000,-1688.0699000,5.5119000,-90.0000000,0,0,TIME_RESPAWN, 1); //Sultan  | 
SAPDVehicles[17] =
CreateVehicle(560,1529.1791000,-1688.0699000,5.5119000,-90.0000000,0,0,TIME_RESPAWN, 1); //Sultan 
| 
 
					Originally Posted by Sew_Sumi 
Either way works fine. 
He doesn't need to follow your exact code.  |