05.08.2015, 00:23
Okay, so I'm trying to get a police siren to a burrito vehicle and it seems like it doesn't work.
#include <ZCMD>
CMD:burrito(playerid, params[])
{
new
vehicleid = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(CreateObject(19419, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), vehicleid, 255.44949, 1774.31165, 14.43670, 0.0, 0.0, 0.0);
return 1;
}
---------- in the map editor
CreateObject(19419, 255.44949, 1774.31165, 14.43670, 0.00000, 0.00000, 0.00000);
CreateVehicle(482, 255.4524, 1773.3035, 13.5286, 0.0000, -1, -1, 100);
-----------
Can someone help me how to attach it? It seems the script works, as it shows no errors, no nothing, but it's still bugged I guess or the coordinates aren't good or something. Thank you.
P.S: This is in the gamemode, not in filterscript.
http://s29.postimg.org/wlj3x16s7/pol...ht_vehicle.png
#include <ZCMD>
CMD:burrito(playerid, params[])
{
new
vehicleid = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(CreateObject(19419, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), vehicleid, 255.44949, 1774.31165, 14.43670, 0.0, 0.0, 0.0);
return 1;
}
---------- in the map editor
CreateObject(19419, 255.44949, 1774.31165, 14.43670, 0.00000, 0.00000, 0.00000);
CreateVehicle(482, 255.4524, 1773.3035, 13.5286, 0.0000, -1, -1, 100);
-----------
Can someone help me how to attach it? It seems the script works, as it shows no errors, no nothing, but it's still bugged I guess or the coordinates aren't good or something. Thank you.
P.S: This is in the gamemode, not in filterscript.
http://s29.postimg.org/wlj3x16s7/pol...ht_vehicle.png