Someone please write NOP for vehicle markers in SA-MP.
I think the best solution is to set the marker color ID to transparent. (500 ?= gray)
Or modify the parameters of the tie_marker_to_car function to prevent rendering the markers.
Code snippet from SA-MP 0.2.5:
I think the best solution is to set the marker color ID to transparent. (500 ?= gray)
Or modify the parameters of the tie_marker_to_car function to prevent rendering the markers.
Code snippet from SA-MP 0.2.5:
Code:
// Add or remove car scanning markers.
if(GetDistanceFromLocalPlayerPed() < CSCANNER_DISTANCE && !IsOccupied())
{
// SHOW IT
if(!m_dwMarkerID)
{
ScriptCommand(&tie_marker_to_car, m_dwGTAId, 1, 2, &m_dwMarkerID);
ScriptCommand(&set_marker_color,m_dwMarkerID,500);
}
}
else if(IsOccupied() || GetDistanceFromLocalPlayerPed() >= CSCANNER_DISTANCE)
{
// REMOVE IT
if(m_dwMarkerID) {
ScriptCommand(&disable_marker, m_dwMarkerID);
m_dwMarkerID = 0;
}
}