local streamedInVehicles = { }
function onStreamIn ( )
if ( getElementType ( source ) == "vehicle" ) then
for index, vehicle in ipairs ( streamedInVehicles ) do
if ( isElementCollidableWith ( vehicle, source ) ) then
setElementCollidableWith ( vehicle, source, false )
end
end
table.insert ( streamedInVehicles, source )
end
end
addEventHandler ( "onClientElementStreamIn", resourceRoot, onStreamIn )
function onStreamOut ( )
if ( getElementType ( source ) == "vehicle" ) then
for index, vehicle in ipairs ( streamedInVehicles ) do
if ( source == vehicle ) then
table.remove ( streamedInVehicles, index )
end
end
end
end
addEventHandler ( "onClientElementStreamOut", resourceRoot, onStreamOut )
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach