you are probably fighting against the custom MTA SA element streamer in this situation that you describe. The MTA streamer does have it's own streaming distance settings. I am not sure how to adjust such properties or whether the MTA team did intend to have you look at vehicles from 1200 meters far away.
How can i set the vehicles draw distance to maximum (1200m) ? I tried with creating low lod for the vehicle, used "setVehiclesLODDistance" and set all the game settings to maximum but still have a draw distance for vehicles with the maximum of 300 m.
for i,v in ipairs(getElementsByType("vehicle")) do
local model = getElementModel(v)
local x,y,z = getElementPosition(v)
local rx,ry,rz = getElementRotation(v)
local objLowLOD = createObject ( model, x,y,z,rx,ry,rz,true )
setLowLODElement ( v, objLowLOD )
addEventHandler("onClientResourceStart", resourceRoot, lod)
setFarClipDistance( 9999 )
Nope, it does not. Maybe you used too much of the example code?
local messageNodes = xmlNodeGetChildren(xml)
local outputText = ""
for i,node in ipairs(messageNodes) do
outputText = outputText .. tostring(xmlNodeGetValue(node)) .. "\n"