Cant open trunk of vehicle -
Saddin - 10.04.2017
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;
}
Re: Cant open trunk of vehicle -
AndreiWow - 10.04.2017
Instead of VEHICLE_PARAMS_ON, put 1
Re: Cant open trunk of vehicle -
Bolex_ - 10.04.2017
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);
Re: Cant open trunk of vehicle -
Saddin - 10.04.2017
Quote:
Originally Posted by AndreiWow
Instead of VEHICLE_PARAMS_ON, put 1
|
I tried that but it wont work.
Re: Cant open trunk of vehicle -
AndreiWow - 10.04.2017
What is TvornicaVozilo[0]
where did you define this
Re: Cant open trunk of vehicle -
Saddin - 10.04.2017
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
Re: Cant open trunk of vehicle -
ISmokezU - 10.04.2017
I don't think a burrito's hood can be opened.
Re: Cant open trunk of vehicle -
Saddin - 10.04.2017
Is there any list of vehicles that trunk cant be opened?
Re: Cant open trunk of vehicle -
ISmokezU - 10.04.2017
U Can open the bonnet but not the trunk
Re: Cant open trunk of vehicle -
AndreiWow - 10.04.2017
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...
Re: Cant open trunk of vehicle -
Saddin - 10.04.2017
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:
Re: Cant open trunk of vehicle -
AndreiWow - 10.04.2017
of this one yes as I know.
Boxville, nope.
Re: Cant open trunk of vehicle -
Kane - 10.04.2017
Your command is poorly scripted. Do you wanna open the trunk of vehicles or just the single one you've defined?
Re: Cant open trunk of vehicle -
Saddin - 11.04.2017
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.
Re: Cant open trunk of vehicle -
Saddin - 11.04.2017
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.