Function DisableRemoteVehicleCollisions Not work in 0.3.7 -
OsmanMalagic - 02.05.2018
Function
DisableRemoteVehicleCollisions not work for me and also for other players.
My vehicle cannot pass through other car
Example of code:
PHP Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/collision", true))
{
new string[64];
format(string, sizeof(string), "Vehicle collision for you is now '%s'", (GetPVarInt(playerid, "vehCollision") != 1) ? ("Disabled") : ("Enabled"));
SendClientMessage(playerid, 0xFFFFFFFF, string);
SetPVarInt(playerid, "vehCollision", !GetPVarInt(playerid, "vehCollision"));
DisableRemoteVehicleCollisions(playerid, GetPVarInt(playerid, "vehCollision"));
return 1;
}
return 0;
}
My vehicle cannot pass through other car
I try to find any possible solution to fix this, and also all my Includes are updated to new version.
Any ideas for my next try are welcome
Re: Function DisableRemoteVehicleCollisions Not work in 0.3.7 -
NaS - 02.05.2018
Just making sure, do you refer to other occupied cars?
This function will only allow your car to pass through cars which are driven by other players or an NPC, however not through empty vehicles.
Re: Function DisableRemoteVehicleCollisions Not work in 0.3.7 -
OsmanMalagic - 02.05.2018
Quote:
Originally Posted by NaS
Just making sure, do you refer to other occupied cars?
This function will only allow your car to pass through cars which are driven by other players or an NPC, however not through empty vehicles.
|
I tried this with my friend, the command has been executed like normal, but nothing happened.
I was in the driver's seat as my friend and I hit his vehicle and I did not succeed, I refused..
I tried with the NPC car and now it works
Strange this function
Re: Function DisableRemoteVehicleCollisions Not work in 0.3.7 -
MaisterK - 28.07.2018
This function does not work for me either. It does not work on npcs or players, I use 0.3dl server
Does anyone know of any solution?