Cant open trunk of vehicle
#1

Here is the code, i cant open/close trunk of vehicle:

Код:
YCMD:opentrunk(playerid, params[], help)
{
	new string[100];
	format(string, sizeof(string), "%s closed trunk.", GetName(playerid));
	SendClientMessage(playerid, COLOR_WHITE, string);

	

	new engine, lights, alarm, doors, bonnet, boot, objective;
	GetVehicleParamsEx(TvornicaVozilo[0], engine, lights, alarm, doors, bonnet, boot, objective);
	SetVehicleParamsEx(TvornicaVozilo[0], engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_ON, objective); 
	return 1;
}
Reply
#2

Instead of VEHICLE_PARAMS_ON, put 1
Reply
#3

What ? How much do you need for it ?

Код:
new string[100];
format(string, sizeof(string), "%s closed trunk.", GetName(playerid));
SendClientMessage(playerid, COLOR_WHITE, string);
Reply
#4

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
Instead of VEHICLE_PARAMS_ON, put 1
I tried that but it wont work.
Reply
#5

What is TvornicaVozilo[0]

where did you define this
Reply
#6

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
What is TvornicaVozilo[0]

where did you define this
OnGameModeInit:

TvornicaVozilo[0] = AddStaticVehicleEx(482, 83.6974, -283.5037, 1.7032, 278.5536, 8, 8, 150);//Burrito
Reply
#7

I don't think a burrito's hood can be opened.
Reply
#8

Is there any list of vehicles that trunk cant be opened?
Reply
#9

U Can open the bonnet but not the trunk
Reply
#10

You can't open backdoors of vans, ambulance, you can open a box truck if I remember well, you can't open bullet trunk, not sure about cheetah.


Only way is to press G behind it...
Reply
#11

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
You can't open backdoors of vans, ambulance, you can open a box truck if I remember well, you can't open bullet trunk, not sure about cheetah.


Only way is to press G behind it...
Can I open doors of these vehicles:



Reply
#12


of this one yes as I know.



Boxville, nope.
Reply
#13

Your command is poorly scripted. Do you wanna open the trunk of vehicles or just the single one you've defined?
Reply
#14

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
Your command is poorly scripted. Do you wanna open the trunk of vehicles or just the single one you've defined?
I'm just doing test command, I will use opening trunk in another system I'm making.

I will try with another vehicle.
Reply
#15

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
Your command is poorly scripted. Do you wanna open the trunk of vehicles or just the single one you've defined?
I'm just doing test command, I will use opening trunk in another system I'm making.

I will try with another vehicle.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)