Function DisableRemoteVehicleCollisions Not work in 0.3.7
#1

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(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/collision"true))
    {
        new 
string[64];
 
        
format(stringsizeof(string), "Vehicle collision for you is now '%s'", (GetPVarInt(playerid"vehCollision") != 1) ? ("Disabled") : ("Enabled"));
        
SendClientMessage(playerid0xFFFFFFFFstring);
 
        
SetPVarInt(playerid"vehCollision", !GetPVarInt(playerid"vehCollision"));
 
        
DisableRemoteVehicleCollisions(playeridGetPVarInt(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
Reply
#2

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.
Reply
#3

Quote:
Originally Posted by NaS
View Post
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
Reply
#4

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?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)