[[[_vehicle] ,"vehicleAddAction.sqf"], "BIS_fnc_execVM", _id, false] spawn BIS_fnc_MP;
Nothing happens.
But when I have:
[[[_vehicle] ,"vehicleAddAction.sqf"], "BIS_fnc_execVM"] spawn BIS_fnc_MP;
It works.
The script where I am running it looks like this.
//onPlayerConnected.sqf
_uid = _this select 0;
_id = _this select 1;
_name = _this select 2;
{
_locName = (_x select 0);
_locName = toLower([_locName, " ", ""] call ED_strings_replace);
_locName = [_locName, "-", ""] call ED_strings_replace;
call compile format["%2 publicVariableClient ""%1"";
", _locName, _id];
} foreach RespawnLocations;
{
[[[_x] ,"vehicleAddAction.sqf"], "BIS_fnc_execVM", _id, false] spawn BIS_fnc_MP;
} foreach VehicleTrackArray; //An array containing vehicle objects