19.04.2015, 15:21
Your code seems correct. Do you get the "you are not a member of..." message?
If you do, then OnPlayerEnterVehicle and ClearAnimations is not a good combination for players with reasonable lag. I'd try alternative methods such as OnPlayerStateChange and SetVehicleParams to lock vehicle doors.
EDIT: oh and change 'else if(IsCopCar' to just 'if(IsCopCar'
If you do, then OnPlayerEnterVehicle and ClearAnimations is not a good combination for players with reasonable lag. I'd try alternative methods such as OnPlayerStateChange and SetVehicleParams to lock vehicle doors.
EDIT: oh and change 'else if(IsCopCar' to just 'if(IsCopCar'