Help with AttachObjectToVehicle
#1

Hi all. Have a problem with AttachObjectToVehicle. When I use my command, object does not appear. When I use command and then move on with car, then object appears. Why it does not appear when I just type my command? Why I need to move on with car? I tryed to change AttachObjectToVehicle and CreateObject to Dynamic, but still same.

Код:
CMD:taxi(playerid)
{
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, ""COL_ERROR"{ffffff}Need be in car!");

	new vehicleid = PI[playerid][car];

	Object[playerid] 		= CreateObject(19308, 0, 0, 0, 0, 0, 0);

	AttachObjectToVehicle(Object[playerid], vehicleid, 0.019999, -0.070000, 0.934999, -0.000000, 0.000000, -90.000000);
	return 1;
}
Reply


Messages In This Thread
Help with AttachObjectToVehicle - by ,TomY' - 24.11.2017, 06:35
Re: Help with AttachObjectToVehicle - by PaulDinam - 24.11.2017, 08:01
Re: Help with AttachObjectToVehicle - by Kane - 24.11.2017, 08:18
Re: Help with AttachObjectToVehicle - by ,TomY' - 24.11.2017, 08:29
Re: Help with AttachObjectToVehicle - by Kane - 24.11.2017, 08:39
Re: Help with AttachObjectToVehicle - by PaulDinam - 24.11.2017, 09:03

Forum Jump:


Users browsing this thread: 1 Guest(s)